package
0.0.0-20220418144517-db1de1c3ed5d
Repository: https://github.com/232425wxy/bft.git
Documentation: pkg.go.dev

# Functions

AddNodeFlags 在命令行中暴露了一些常见的配置选项,这些是为了方便嵌入SRBFT节点的命令而公开的: - name : variable receiver : usage - "moniker" : config.Moniker : "节点名字" - "priv_validator_laddr" : config.PrivValidatorListenAddr : "套接字地址,用于监听来自外部priv_validator进程的连接" - "fast_sync" : config.FastSyncMode : "区块链快速同步" - "consensus.double_sign_check_height" : config.Consensus.DoubleSignCheckHeight : "在加入共识之前,需要回顾多少块来检查节点的共识投票是否存在" - "proxy_app" : config.ProxyApp : "代理应用的地址,或者以下几种代理应用:" "kvstore" "persistent_kvstore" "counter" "counter_serial" - "rpc.laddr" : config.RPC.ListenAddress : "RPC 的监听地址,例如:127.0.0.1:26657" - "rpc.unsafe" : config.RPC.Unsafe : "启用不安全RPC方法".
NewRunNodeCmd returns the command that allows the CLI to start a node.
ParseConfig retrieves the default environment configuration, sets up the SRBFT root and ensures that the root exists.

# Variables

InitFilesCmd initialises a fresh SRBFT Core instance.
RootCmd is the root command for SRBFT core.
TestnetFilesCmd allows initialisation of files for a SRBFT testnet.