常用指令

常用指令

节点管理

查看信息


# node id
gaiad tendermint show-node-id --home /home/user1/gaiad/nodes/node1

# 查询节点公钥 | 实际值是 priv_validator_key.json 中的 pub_key.value
gaiad tendermint show-validator --home=/home/user1/gaiad/nodes/node2

管理

# 初始化一个节点
gaiad init node1 --chain-id=chain-1 --home=/home/user1/gaiad/nodes/node1


# 清理节点全部数据, 回到创世时的第0个块状态
gaiad tendermint unsafe-reset-all --home ./nodes/node1
最后更新于