比特股全节点witness_node参数翻译

引用 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个
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 158,736评论 4 362
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 67,167评论 1 291
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 108,442评论 0 243
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 43,902评论 0 204
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 52,302评论 3 287
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 40,573评论 1 216
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 31,847评论 2 312
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 30,562评论 0 197
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 34,260评论 1 241
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 30,531评论 2 245
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 32,021评论 1 258
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 28,367评论 2 253
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 33,016评论 3 235
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 26,068评论 0 8
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 26,827评论 0 194
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 35,610评论 2 274
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 35,514评论 2 269

推荐阅读更多精彩内容