引用 http://docs.bitshares.org/apps/node.html?highlight=witness_node
一 命令行參數(shù)
./witness_node -h
Graphene Witness Node:=》石墨烯見證人節(jié)點(diǎn)參數(shù)
-h [ --help ] Print this help message and exit.
-d [ --data-dir ] arg (="witness_node_data_dir")
Directory containing databases,
configuration file, etc.
=>保存見證節(jié)點(diǎn)的數(shù)據(jù)庫夫偶,配置文件目錄
--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.
=>創(chuàng)世狀態(tài)的json文件目錄界睁,如果json文件存在,就解析創(chuàng)世狀態(tài)兵拢,未知的節(jié)點(diǎn)將刪除翻斟。如果沒有文件存在或文件是不合法的。就會(huì)替換一個(gè)例子創(chuàng)世狀態(tài)
--replay-blockchain Rebuild object graph by replaying all blocks
=>重建所有圖说铃,通過重發(fā)區(qū)塊的方式
--resync-blockchain Delete all blocks and re-sync with network from scratch
=>刪除所有區(qū)塊访惜,重新在網(wǎng)絡(luò)同步
--force-validate Force validation of all transactions
=>強(qiáng)制驗(yàn)證所有交易
--genesis-timestamp arg Replace timestamp from genesis.json
with current time plus this many
seconds (experts only!)
=>用當(dāng)前時(shí)間加上那么多秒,替換genesis.json的時(shí)間戳(僅專家使用)
--p2p-endpoint arg Endpoint for P2P node to listen on
=》p2p網(wǎng)絡(luò)監(jiān)聽節(jié)點(diǎn)腻扇,表示啟動(dòng)監(jiān)聽服務(wù)端ip端口
-s [ --seed-node ] arg P2P nodes to connect to on startup (may specify multiple times)
=》p2p網(wǎng)絡(luò)啟動(dòng)時(shí)監(jiān)聽節(jié)點(diǎn)(可重復(fù)定義)债热,表示要連接的服務(wù)端ip端口
--seed-nodes arg JSON array of P2P nodes to connect to on startup
=》p2p網(wǎng)絡(luò)啟動(dòng)時(shí)監(jiān)聽節(jié)點(diǎn)的JSON數(shù)組,表示要連接的服務(wù)端ip端口
-c [ --checkpoint ] arg Pairs of [BLOCK_NUM,BLOCK_ID] that
should be enforced as checkpoints.
=》應(yīng)該執(zhí)行檢查點(diǎn)
--rpc-endpoint [=arg(=127.0.0.1:8090)]
Endpoint for websocket RPC to listen on
=》給延遲節(jié)點(diǎn)幼苛,錢包節(jié)點(diǎn)使用的的rpc地址端口
--rpc-tls-endpoint [=arg(=127.0.0.1:8089)]
Endpoint for TLS websocket RPC to
listen on
=》啟動(dòng)安全的阳柔,給延遲節(jié)點(diǎn),錢包節(jié)點(diǎn)使用的的rpc地址端口
-p [ --server-pem ] [=arg(=server.pem)]
The TLS certificate file for this
server
=》服務(wù)器證書
-P [ --server-pem-password ] arg Password for this certificate
=》服務(wù)器密碼
--genesis-json arg File to read Genesis State from
=》創(chuàng)世狀態(tài)的json文件
--dbg-init-key arg Block signing key to use for init witnesses, overrides genesis file
=》區(qū)塊簽名蚓峦,初始化見證節(jié)點(diǎn)舌剂,覆蓋創(chuàng)世文件
--api-access arg JSON file specifying API permissions
=》API權(quán)限描述JSON文件
Options for plugin witness:=》見證人參數(shù)
--enable-stale-production Enable block production, even if the chain is stale.
=>啟動(dòng)區(qū)塊生成济锄,即使鏈?zhǔn)桥f的
--required-participation Percent of witnesses (0-99) that must
be participating in order to produce
blocks
=》產(chǎn)生區(qū)塊必須達(dá)到的見證人參與百分比
-w [ --witness-id ] arg ID of witness controlled by this node
(e.g. "1.6.5", quotes are required, may
specify multiple times)
=》見證人id,可重復(fù)定義
--private-key arg (=["BTS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV","5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3"])
Tuple of [PublicKey, WIF private key]
(may specify multiple times)
私鑰霍转,元組[公鑰荐绝,私鑰],可重復(fù)定義
Options for plugin account_history:=》賬戶歷史參數(shù)
--track-account arg Account ID to track history for (may
specify multiple times)
=》可追蹤歷史的賬戶ID避消,可重復(fù)定義
--partial-operations arg Keep only those operations in memory
that are related to account history
tracking
=》在內(nèi)存中保存低滩,可追蹤歷史賬戶ID的操作
--max-ops-per-account arg Maximum number of operations per
account will be kept in memory
=》每個(gè)賬戶在內(nèi)存中保存的最大操作個(gè)數(shù)
Options for plugin market_history:=》市場(chǎng)歷史參數(shù)
--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
=》將訂單分組為相等大小的桶來跟蹤市場(chǎng)歷史記錄,每秒json數(shù)組的個(gè)數(shù)
--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)
=》可追蹤歷史的桶的個(gè)數(shù)岩喷,默認(rèn)1000個(gè)
二 config.ini分析
* p2p-endpoint
Endpoint for P2P node to listen on=》p2p網(wǎng)絡(luò)監(jiān)聽節(jié)點(diǎn)服務(wù)器端配置恕沫,表示本地監(jiān)聽的ip端口
* seed-node
P2P nodes to connect to on startup (may specify multiple times)=》p2p網(wǎng)絡(luò)啟動(dòng)連接節(jié)點(diǎn)客戶端配置,表示要連接的服務(wù)端ip端口
* checkpoint
Pairs of [BLOCK_NUM,BLOCK_ID] that should be enforced as checkpoints.=》檢查點(diǎn)
* rpc-endpoint
Endpoint for websocket RPC to listen on (e.g. 0.0.0.0:8090)=》給延遲節(jié)點(diǎn)纱意,錢包節(jié)點(diǎn)使用的的rpc地址端口
* rpc-tls-endpoint
Endpoint for TLS websocket RPC to listen on=》啟動(dòng)安全的婶溯,給延遲節(jié)點(diǎn),錢包節(jié)點(diǎn)使用的rpc地址端口
* server-pem
The TLS certificate file for this server=》啟動(dòng)安全的證書
* server-pem-password
Password for this certificate=》啟動(dòng)安全的證書密碼
* genesis-json
File to read Genesis State from=》創(chuàng)世狀態(tài)json文件路徑
* api-access
JSON file specifying API permissions=》api權(quán)限描述json文件
* enable-stale-production
Enable block production, even if the chain is stale. (unless for private testnets should be false)=》啟動(dòng)區(qū)塊產(chǎn)生標(biāo)識(shí)偷霉,(隱私模式下應(yīng)設(shè)置為假)
* required-participation
Percent of witnesses (0-99) that must be participating in order to produce blocks=》要求產(chǎn)生的區(qū)塊時(shí)迄委,見證人的必須達(dá)到的參與百分比
* allow-consecutive
Allow block production, even if the last block was produced by the same witness.=》允許塊產(chǎn)生,甚至每一塊都是同一個(gè)見證人(允許連續(xù))
* 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”,雙引號(hào)是必須的类少,可重復(fù)定義)
* private-key
Tuple of [PublicKey, WIF private key] (may specify multiple times)=》私鑰(可重復(fù)定義)
* track-account
Account ID to track history for (may specify multiple times)=》要追蹤歷史的賬戶ID(可重復(fù)定義)
* bucket-size
Track market history by grouping orders into buckets of equal size measured in seconds specified as a JSON array of numbers=》將訂單分組為相等大小的桶來跟蹤市場(chǎng)歷史記錄叙身,每秒json數(shù)組的個(gè)數(shù)
* history-per-size
How far back in time to track history for each bucket size, measured in the number of buckets (default: 1000)=》可追蹤歷史的桶的個(gè)數(shù),默認(rèn)1000個(gè)