This commit is contained in:
zerone 2024-11-03 13:48:22 +08:00
parent 0cfcec8969
commit 52b9eb9c9a
3 changed files with 8 additions and 5 deletions

1
.gitignore vendored
View File

@ -7,3 +7,4 @@ node_modules
coverage.txt
build
cantod
frpc*

View File

@ -36,17 +36,16 @@ cantod init $MONIKER --chain-id $CHAINID
# cantod collect-gentxs 2>&1 | jq '.app_message.genutil.gen_txs[0].body.memo'
if [[ "$OSTYPE" == "darwin"* ]]; then
sed -i '' 's/minimum-gas-prices = "0acanto"/minimum-gas-prices = "0.0001acanto"/g' $HOME/.cantod/config/app.toml
sed -i '' 's/persistent_peers = ""/persistent_peers = "11b2090f74bf024cc3170738da6edfbacf9ba311@43.136.90.48:26656"/g' $HOME/.cantod/config/config.toml
sed -i '' 's/persistent_peers = ""/persistent_peers = "a4eec64d88314553eee08206d8e2a986562ef310@193.200.130.186:26656"/g' $HOME/.cantod/config/config.toml
else
sed -i 's/minimum-gas-prices = "0acanto"/minimum-gas-prices = "0.0001acanto"/g' $HOME/.cantod/config/app.toml
sed -i 's/persistent_peers = ""/persistent_peers = "11b2090f74bf024cc3170738da6edfbacf9ba311@43.136.90.48:26656"/g' $HOME/.cantod/config/config.toml
sed -i 's/persistent_peers = ""/persistent_peers = "a4eec64d88314553eee08206d8e2a986562ef310@193.200.130.186:26656"/g' $HOME/.cantod/config/config.toml
fi
rm $HOME/.cantod/config/genesis.json
cp genesis.json $HOME/.cantod/config
# 强制覆盖
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

View File

@ -116,6 +116,9 @@ if [[ $1 == "pending" ]]; then
echo "pending mode is on, please wait for the first block committed."
fi
cp -f $HOME/.cantod/config/genesis.json genesis.json
# Start the node (remove the --pruning=nothing flag if historical queries are not needed)
#cantod start --pruning=nothing --trace --log_level trace --minimum-gas-prices=1.000acanto --json-rpc.api eth,txpool,personal,net,debug,web3 --rpc.laddr "tcp://0.0.0.0:26657" --api.enable true --api.enabled-unsafe-cors true