Compare commits

..

No commits in common. "bed9f23d6706aa48ac067838af19de017dfa7a92" and "d4f2a89eb34e80bb7aeb347670c2eba577890270" have entirely different histories.

4 changed files with 5 additions and 29 deletions

View File

@ -47,7 +47,7 @@ else
fi fi
# 强制覆盖 # 强制覆盖
cp -f config/genesis.json $HOME/.cantod/config/genesis.json cp -f genesis.json $HOME/.cantod/config/genesis.json
# cantod start --pruning=nothing $TRACE --log_level info --minimum-gas-prices=0.0001acanto --json-rpc.ws-address '0.0.0.0:8546' --json-rpc.address '0.0.0.0:8545' --json-rpc.api eth,txpool,personal,net,debug,web3 --rpc.laddr 'tcp://0.0.0.0:26657' --api.enable --chain-id canto_1264-1 # cantod start --pruning=nothing $TRACE --log_level info --minimum-gas-prices=0.0001acanto --json-rpc.ws-address '0.0.0.0:8546' --json-rpc.address '0.0.0.0:8545' --json-rpc.api eth,txpool,personal,net,debug,web3 --rpc.laddr 'tcp://0.0.0.0:26657' --api.enable --chain-id canto_1264-1

View File

@ -103,44 +103,20 @@ echo $KEYRING
echo $KEY1 echo $KEY1
# Sign genesis transaction # Sign genesis transaction
mkdir $HOME/.cantod/config/gentx mkdir $HOME/.cantod/config/gentx
# 生成创世交易(抵押金额最低一百万: 1000000stake)
cantod gentx $KEY1 900000000000000000000000acanto --keyring-backend $KEYRING --chain-id $CHAINID --output-document $HOME/.cantod/config/gentx/gentx-1.json cantod gentx $KEY1 900000000000000000000000acanto --keyring-backend $KEYRING --chain-id $CHAINID --output-document $HOME/.cantod/config/gentx/gentx-1.json
#cantod gentx $KEY2 1000000000000000000000acanto --keyring-backend $KEYRING --chain-id $CHAINID #cantod gentx $KEY2 1000000000000000000000acanto --keyring-backend $KEYRING --chain-id $CHAINID
# 将node1/2/3的gentx目录下的json文件移动到node0节点的gentx目录下(文件名最好改成对应节点名)
# $ cp -f /data/coeus/node1/config/gentx/*.json /data/coeus/node0/config/gentx
# $ cp -f /data/coeus/node2/config/gentx/*.json /data/coeus/node0/config/gentx
# $ cp -f /data/coeus/node3/config/gentx/*.json /data/coeus/node0/config/gentx
# Collect genesis tx # Collect genesis tx
# 将创世交易收集到节点的genesis.json文件中
# $ cantod collect-gentxs --home /data/coeus/node0 2>&1 | jq
cantod collect-gentxs cantod collect-gentxs
# # Run this to ensure everything worked and that the genesis file is setup correctly # Run this to ensure everything worked and that the genesis file is setup correctly
# cantod validate-genesis
# 验证创世配置文件是否正确
cantod validate-genesis cantod validate-genesis
echo "File at $HOME/.cantod/config/genesis.json is a valid genesis file"
if [[ $1 == "pending" ]]; then if [[ $1 == "pending" ]]; then
echo "pending mode is on, please wait for the first block committed." echo "pending mode is on, please wait for the first block committed."
fi fi
# 将node0的聚合genesis.json文件覆盖node1/2/3三个节点的genesis.json文件 cp -f $HOME/.cantod/config/genesis.json genesis.json
cp -f $HOME/.cantod/config/genesis.json config/genesis.json
# 将node1/2/3的gentx目录下的json文件移动到node0节点的gentx目录下(文件名最好改成对应节点名)
cp -rf $HOME/.cantod/config/gentx config
# 将node0的聚合genesis.json文件覆盖node1/2/3三个节点的genesis.json文件
# Start the node (remove the --pruning=nothing flag if historical queries are not needed) # Start the node (remove the --pruning=nothing flag if historical queries are not needed)

View File

@ -46,7 +46,7 @@ else
fi fi
# 强制覆盖 # 强制覆盖
cp -f config/genesis.json $HOME/.cantod/config/genesis.json cp -f genesis.json $HOME/.cantod/config/genesis.json
# cantod start --pruning=nothing $TRACE --log_level info --minimum-gas-prices=0.0001acanto --json-rpc.ws-address '0.0.0.0:8546' --json-rpc.address '0.0.0.0:8545' --json-rpc.api eth,txpool,personal,net,debug,web3 --rpc.laddr 'tcp://0.0.0.0:26657' --api.enable --chain-id canto_1264-1 # cantod start --pruning=nothing $TRACE --log_level info --minimum-gas-prices=0.0001acanto --json-rpc.ws-address '0.0.0.0:8546' --json-rpc.address '0.0.0.0:8545' --json-rpc.api eth,txpool,personal,net,debug,web3 --rpc.laddr 'tcp://0.0.0.0:26657' --api.enable --chain-id canto_1264-1