forked from bitcoin/bitcoin
ubtc with smart contract feature public beta testnet guideline
Gage edited this page Jul 26, 2018
·
25 revisions
We have deployed a public beta testnet of ubtc, with smart contract feature.
- this is testnet, please don't import your private keys in mainnet to testnet's node
- Sometimes We may replace the testnet's all chain data or restart a new testnet. So if something went wrong when you use the testnet, you can try re-download the testnet program, drop all testnet chaindata and restart the node following this wiki.
- The system we recommend is
ubuntu 16.04 x64
- If you use ubuntu, run these commands below to install dependencies
apt update -y
apt install -y software-properties-common
add-apt-repository -y ppa:bitcoin/bitcoin
apt update -y
apt install -y libboost1.58-all-dev libminiupnpc-dev libssl-dev libevent-dev libzmq3-dev
apt install -y libdb4.8-dev libdb4.8++-dev
You can clone the contract
branch and build it from source manually, or download the testnet program from the links(If you use Linux):
ubcd-test and ubc-cli-test. Last updated on 2018.7.18, and program file names maybe need to be changed to ubcd-test and ubc-cli-test.
You can refer to link How-to-build-ubtc-contract-local-testnet to build the ubtc from source code by yourself.
- cd to the directory where
ubcd-test
exists - Run
mkdir ./testdata
- Run
./ubcd-test -datadir=./testdata -rpcuser=user -rpcpassword=password -rpcport=60000 -rpcallowip=127.0.0.1/32 -port=18333 -testnet -txindex -server -contractprint
If you want to run in daemon, just add argument-daemon
to this command - Run these commands below to connect to seed nodes
./ubc-cli-test -rpcuser=user -rpcpassword=password -rpcport=60000 addnode 13.251.64.171:18333 add
./ubc-cli-test -rpcuser=user -rpcpassword=password -rpcport=60000 addnode 13.209.29.62:18333 add
./ubc-cli-test -rpcuser=user -rpcpassword=password -rpcport=60000 addnode 18.182.0.202:18333 add
./ubc-cli-test -rpcuser=user -rpcpassword=password -rpcport=60000 addnode 132.232.11.13:18333 add
- Wait some minutes to sync chain data from the ubtc testnet. and you can
./ubc-cli-test -rpcuser=user -rpcpassword=password -rpcport=60000 getblockcount
to the the current block count of you node - Now you joined the testnet of ubtc successfully.
- If you want to get some coins on ubtc testnet, you can visit http://13.251.64.171:3000/ to request some coins on testnet.
- You can refer to the documentations in the wiki to test.