配置文件 Waykichain.conf 参数说明
Waykichain节点支持mainnet
、testnet
、regtest
不同的网络类型在配置文件 Waykichain.conf
中配置生效
配置文件参数说明
字段名 | 字段对应内容 | 备注 |
---|---|---|
nettype | main | test | regtest |
main : 主网 ; test: 测试网 ; regtest: 私有链 |
rpcuser | wiccuser | RPC 用户名 |
rpcpassword | wicc1000 | RPC 密码 |
debug | INFO | ERROR | DEBUG | WASM |
debug level; 可以单独或组合使用 |
logprinttoconsole | 0 | log print to console; 1:true,0:false |
logtimestamps | 1 | log print timestamps; 1:true,0:false |
logprinttofile | 1 | log print to file; 1:true,0:false |
logprintfileline | 1 | log print with fileline; 1:true,0:false |
rpcserver | 1 | RPC服务启用配置,不配置默认为启用,0:否,1:是 |
listen | 1 | RPC服务是否监听 |
rpcport | 6968 | RPC服务端口号 |
rpcallowip | 0.0.0.0/0 | 可具体配置允许访问RPC服务的IP,ip地址可以任意设定 |
disablesafemode | 1 | 是否关闭安全模式,当出现分叉时,关闭安全模式RPC接口将不可用 |
genblock | 0 | 是否开启出块线程,0: 不出块,1:出块(只有当前节点为BP节点时才有意义) |
genblocklimit | 10000000000 | 出块节点出块到指定高度后停止 ,仅RegTest网络下面调试使用,其余网络无需配置 |
rpcthreads | 8 | rpc请求的并发线程数 |
genreceipt | 0 | 调用gettxdetail 时是否显示交易收据 1: 显示 ;0 :不显示 ,显示会消耗较大硬盘存储 |
rpcwhitelistcmd | 命令名 | 仅设置的白名单命令有效,其他均被禁止。 例如:rpcwhitelistcmd=getinfo,则coind getinfo有效,使用其他命令被禁止 |
rpcblacklistcmd | 命令名 | 仅设置的黑名单命令禁止,其他均有效。例如:rpcblacklistcmd=getinfo,则coind getinfo被禁止,使用其他命令有效 |
contracts_console | 1 | 是否显示wasm打印的日志。 1:显示; 0:不显示 |
注意:
1、若同时设置白名单和黑名单,如遇冲突状态,以白名单优先
2、若需要设置多个命令为白名单或黑名单,请设置多行 rpcwhitelistcmd=$name 。例如:
rpcwhitelistcmd=getinfo
rpcwhitelistcmd=stop
example
主网:mainnet
#nettype=main|test|regtest
nettype=main
rpcserver=1
rpcallowip=0.0.0.0/0
rpcport=6968
rpcuser=wiccuser
rpcpassword=wicc1000
rpcthreads=8
logprinttoconsole=0
debuglogfile=1
logprintfileline=1
logtimestamps=1
listen=1
disablesafemode=1
genblock=0
genblocklimit=1000000
debug=INFO
测试网:testnet
#nettype=main|test|regtest
nettype=test
rpcserver=1
rpcallowip=0.0.0.0/0
rpcport=6968
rpcuser=wiccuser
rpcpassword=wicc1000
rpcthreads=8
logprinttoconsole=0
debuglogfile=1
logprintfileline=1
logtimestamps=1
listen=1
disablesafemode=1
genblock=0
genblocklimit=1000000
debug=INFO
私有链:regtest
#nettype=main|test|regtest
nettype=regtest
rpcserver=1
rpcallowip=0.0.0.0/0
rpcport=6968
rpcuser=wiccuser
rpcpassword=wicc1000
rpcthreads=8
logprinttoconsole=0
debuglogfile=1
logprintfileline=1
logtimestamps=1
listen=1
disablesafemode=1
genblock=0
genblocklimit=1000000
debug=INFO