引用 http://docs.bitshares.org/apps/node.html?highlight=witness_node
一 命令行参数
./witness_node -h
Graphene Witness Node:=》石墨烯见证人节点参数
-h [ --help ] Print this help message and exit.
-d [ --data-dir ] arg (="witness_node_data_dir")
Directory containing databases,
configuration file, etc.
=>保存见证节点的数据库,配置文件目录
--create-genesis-json arg Path to create a Genesis State at. If a
well-formed JSON file exists at the
path, it will be parsed and any missing
fields in a Genesis State will be
added, and any unknown fields will be
removed. If no file or an invalid file
is found, it will be replaced with an
example Genesis State.
=>创世状态的json文件目录,如果json文件存在,就解析创世状态,未知的节点将删除。如果没有文件存在或文件是不合法的。就会替换一个例子创世状态
--replay-blockchain Rebuild object graph by replaying all blocks
=>重建所有图,通过重发区块的方式
--resync-blockchain Delete all blocks and re-sync with network from scratch
=>删除所有区块,重新在网络同步
--force-validate Force validation of all transactions
=>强制验证所有交易
--genesis-timestamp arg Replace timestamp from genesis.json
with current time plus this many
seconds (experts only!)
=>用当前时间加上那么多秒,替换genesis.json的时间戳(仅专家使用)
--p2p-endpoint arg Endpoint for P2P node to listen on
=》p2p网络监听节点,表示启动监听服务端ip端口
-s [ --seed-node ] arg P2P nodes to connect to on startup (may specify multiple times)
=》p2p网络启动时监听节点(可重复定义),表示要连接的服务端ip端口
--seed-nodes arg JSON array of P2P nodes to connect to on startup
=》p2p网络启动时监听节点的JSON数组,表示要连接的服务端ip端口
-c [ --checkpoint ] arg Pairs of [BLOCK_NUM,BLOCK_ID] that
should be enforced as checkpoints.
=》应该执行检查点
--rpc-endpoint [=arg(=127.0.0.1:8090)]
Endpoint for websocket RPC to listen on
=》给延迟节点,钱包节点使用的的rpc地址端口
--rpc-tls-endpoint [=arg(=127.0.0.1:8089)]
Endpoint for TLS websocket RPC to
listen on
=》启动安全的,给延迟节点,钱包节点使用的的rpc地址端口
-p [ --server-pem ] [=arg(=server.pem)]
The TLS certificate file for this
server
=》服务器证书
-P [ --server-pem-password ] arg Password for this certificate
=》服务器密码
--genesis-json arg File to read Genesis State from
=》创世状态的json文件
--dbg-init-key arg Block signing key to use for init witnesses, overrides genesis file
=》区块签名,初始化见证节点,覆盖创世文件
--api-access arg JSON file specifying API permissions
=》API权限描述JSON文件
Options for plugin witness:=》见证人参数
--enable-stale-production Enable block production, even if the chain is stale.
=>启动区块生成,即使链是旧的
--required-participation Percent of witnesses (0-99) that must
be participating in order to produce
blocks
=》产生区块必须达到的见证人参与百分比
-w [ --witness-id ] arg ID of witness controlled by this node
(e.g. "1.6.5", quotes are required, may
specify multiple times)
=》见证人id,可重复定义
--private-key arg (=["BTS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV","5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3"])
Tuple of [PublicKey, WIF private key]
(may specify multiple times)
私钥,元组[公钥,私钥],可重复定义
Options for plugin account_history:=》账户历史参数
--track-account arg Account ID to track history for (may
specify multiple times)
=》可追踪历史的账户ID,可重复定义
--partial-operations arg Keep only those operations in memory
that are related to account history
tracking
=》在内存中保存,可追踪历史账户ID的操作
--max-ops-per-account arg Maximum number of operations per
account will be kept in memory
=》每个账户在内存中保存的最大操作个数
Options for plugin market_history:=》市场历史参数
--bucket-size arg (=[15,60,300,3600,86400])
Track market history by grouping orders
into buckets of equal size measured in
seconds specified as a JSON array of
numbers
=》将订单分组为相等大小的桶来跟踪市场历史记录,每秒json数组的个数
--history-per-size arg (=1000) How far back in time to track history
for each bucket size, measured in the
number of buckets (default: 1000)
=》可追踪历史的桶的个数,默认1000个
二 config.ini分析
* p2p-endpoint
Endpoint for P2P node to listen on=》p2p网络监听节点服务器端配置,表示本地监听的ip端口
* seed-node
P2P nodes to connect to on startup (may specify multiple times)=》p2p网络启动连接节点客户端配置,表示要连接的服务端ip端口
* checkpoint
Pairs of [BLOCK_NUM,BLOCK_ID] that should be enforced as checkpoints.=》检查点
* rpc-endpoint
Endpoint for websocket RPC to listen on (e.g. 0.0.0.0:8090)=》给延迟节点,钱包节点使用的的rpc地址端口
* rpc-tls-endpoint
Endpoint for TLS websocket RPC to listen on=》启动安全的,给延迟节点,钱包节点使用的rpc地址端口
* server-pem
The TLS certificate file for this server=》启动安全的证书
* server-pem-password
Password for this certificate=》启动安全的证书密码
* genesis-json
File to read Genesis State from=》创世状态json文件路径
* api-access
JSON file specifying API permissions=》api权限描述json文件
* enable-stale-production
Enable block production, even if the chain is stale. (unless for private testnets should be false)=》启动区块产生标识,(隐私模式下应设置为假)
* required-participation
Percent of witnesses (0-99) that must be participating in order to produce blocks=》要求产生的区块时,见证人的必须达到的参与百分比
* allow-consecutive
Allow block production, even if the last block was produced by the same witness.=》允许块产生,甚至每一块都是同一个见证人(允许连续)
* witness-id
ID of witness controlled by this node (e.g. “1.6.5”, quotes are required, may specify multiple times)=》见证人的ID(例如“1.6.5”,双引号是必须的,可重复定义)
* private-key
Tuple of [PublicKey, WIF private key] (may specify multiple times)=》私钥(可重复定义)
* track-account
Account ID to track history for (may specify multiple times)=》要追踪历史的账户ID(可重复定义)
* bucket-size
Track market history by grouping orders into buckets of equal size measured in seconds specified as a JSON array of numbers=》将订单分组为相等大小的桶来跟踪市场历史记录,每秒json数组的个数
* history-per-size
How far back in time to track history for each bucket size, measured in the number of buckets (default: 1000)=》可追踪历史的桶的个数,默认1000个
网友评论