-
Notifications
You must be signed in to change notification settings - Fork 58
Testnet
CLAM has its own testnet. It differs from mainnet in the following ways:
- The coins are intended to worthless, for testing only.
- Coins only take 10 blocks to mature instead of 500 on mainnet.
- Coins only have to be idle for 30 minutes before they can stake instead of 4 hours on mainnet.
- The initial distribution was created by 300 proof-of-work blocks each creating 5000 CLAMs; this gives a total money supply of 1.5 million.
- The P2P network connects on port 35714, instead of 31174.
- The RPC client connects on port 35715, instead of 30174.
Make a folder testnet
inside the folder that holds your regular CLAM wallet.
Make a file in there called clam.conf
, as follows (the daemon=1
is optional, but useful if you're running clamd instead of clam-qt):
testnet=1
rpcuser=clamrpc
rpcpassword=<your password here>
port=35714
rpcport=35715
addnode=54.247.189.77:35714
addnode=khashier.com:35714
daemon=1
Then run:
clam-qt -conf=testnet/clam.conf
to have it use that clam.conf
file.
Each time you use clamd
to interact with a running testnet server you will need to specify the -conf
flag so it knows you want to talk to the testnet server not the mainnet one:
clamd -conf=testnet/clam.conf getinfo
You may find it convenient to set up an alias, for example:
alias cct='clamd -conf=testnet/clam.conf'
cct getinfo
Staking is enabled by default. You can disable it with:
staking=0
in testnet/clam.conf
.
If you want to create your own testnet chain from scratch, you'll need to proof-of-work mine the first 300 blocks. Testnet PoW blocks are worth 5000 CLAMs each.
https://github.com/pooler/cpuminer is capable of mining CLAM PoW blocks on your CPU:
Build the miner, and run it like this:
./minerd --no-gbt --url http://127.0.0.1:35715 --user <user> --pass <pass> -a scrypt -D
where <user>
and <pass>
are your username and password from your clam.conf file.