0xF0c6969C2a554ddae639ba1Aa1d2fA11382CAb2B
.generate-genesis-validator
command, and a file containing the consensus public and private key is generated under the current directory, named priv_validator_key.json
.validator-address
is the one we get at step 1, and the consensus-pubkey
is the one we get at step 2.smartbchd start
command, you can use --mainnet-url
option to specify a bitcoincashnode's RPC endpoint, and use --home
option to specifiy another data directory other than ~/.smartbchd .your_validator_address
with your genesis validator address):--validator-key
with your validator private key, and repace the content after --staking-coin
with 1000000000000000000000
or even more you have.--your_tx_data
with what hex string get above):editValidator
transaction to staking contract. Check this transaction's receipt (replace your_tx_hash
with what the hex string you get above):status
is 0x1
, congratulations, your genesis validator is activated now../smartbchd add-genesis-validator
multiple times, one time with one hex string sent by one node. Finally you'll include all the validators' information in the genesis.json file.~/.smartbchd
directory, excluding the node_key.json
file.~/dot.smartbchd/config/config.toml
file.your_tx_data
with what hex string get above):createValidator
transaction to the staking contract. Check this transaction's receipt (replace your_tx_hash
with what the hex string you get in above command):status
is 0x1
, congratulations, your validator is created now, but it has no voting power now../pubkey.sh d4849694a7105200464dfc1160c95ed26664b556c3e468b03312ed9ebd937eb4-1-add
getblocktemplate
to specify the coinbase transaction for voting.your_tx_data
with what hex string get above):increaseMinGasPrice
transaction to the staking contract. Check this transaction's receipt (replace your_tx_hash
with what the hex string you get in above command):status
is 0x1
, congratulations, your update success.