1
0

bityuan.toml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. Title="bityuan"
  2. FixTime=false
  3. [log]
  4. # 日志级别,支持debug(dbug)/info/warn/error(eror)/crit
  5. loglevel = "debug"
  6. logConsoleLevel = "info"
  7. # 日志文件名,可带目录,所有生成的日志文件都放到此目录下
  8. logFile = "logs/chain33.log"
  9. # 单个日志文件的最大值(单位:兆)
  10. maxFileSize = 1
  11. # 最多保存的历史日志文件个数
  12. maxBackups = 1
  13. # 最多保存的历史日志消息(单位:天)
  14. maxAge = 1
  15. # 日志文件名是否使用本地事件(否则使用UTC时间)
  16. localTime = true
  17. # 历史日志文件是否压缩(压缩格式为gz)
  18. compress = true
  19. # 是否打印调用源文件和行号
  20. callerFile = false
  21. # 是否打印调用方法
  22. callerFunction = false
  23. [blockchain]
  24. dbPath="datadir"
  25. dbCache=64
  26. batchsync=false
  27. isRecordBlockSequence=false
  28. enableTxQuickIndex=true
  29. # 升级storedb是否重新执行localdb,bityuan主链升级不需要开启,平行链升级需要开启
  30. enableReExecLocal=false
  31. # 使能精简localdb
  32. enableReduceLocaldb=true
  33. # 是否禁止分片功能,默认开启分片功能
  34. disableShard=false
  35. # 使能从P2pStore中获取数据
  36. enableFetchP2pstore=true
  37. [p2p]
  38. types=["dht"]
  39. dbPath="datadir/addrbook"
  40. dbCache=4
  41. grpcLogFile="grpc33.log"
  42. #waitPid 等待seed导入
  43. waitPid=false
  44. [p2p.sub.gossip]
  45. port=13802
  46. seeds=[]
  47. isSeed=false
  48. innerSeedEnable=true
  49. useGithub=true
  50. innerBounds=300
  51. [p2p.sub.dht]
  52. #可以自定义设置连接节点
  53. seeds=[]
  54. port=13803
  55. maxConnectNum=40
  56. # 是否配置为全节点模式,全节点保存所有分片数据,种子节点应配置为true
  57. isFullNode=false
  58. [p2p.sub.dht.pubsub]
  59. gossipSubDlo=7
  60. gossipSubD=10
  61. gossipSubDhi=20
  62. gossipSubHeartbeatInterval=900
  63. gossipSubHistoryGossip=2
  64. gossipSubHistoryLength=7
  65. [rpc]
  66. jrpcBindAddr="localhost:8801"
  67. grpcBindAddr="localhost:8802"
  68. whitelist=["127.0.0.1"]
  69. jrpcFuncWhitelist=["*"]
  70. grpcFuncWhitelist=["*"]
  71. enableTLS=false
  72. certFile="cert.pem"
  73. keyFile="key.pem"
  74. [rpc.sub.eth]
  75. enable=true
  76. httpAddr="localhost:8546"
  77. httpApi=["eth","web3","personal","admin","net"]
  78. # websocket 绑定地址
  79. wsAddr="localhost:8547"
  80. wsApi=["eth","web3","personal","admin","net"]
  81. [mempool]
  82. maxTxNumPerAccount=100
  83. [store]
  84. dbPath="datadir/mavltree"
  85. dbCache=128
  86. [store.sub.mavl]
  87. enableMavlPrefix=true
  88. enableMVCC=false
  89. enableMavlPrune=true
  90. pruneHeight=10000
  91. enableMemTree=true
  92. enableMemVal=true
  93. # 缓存close ticket数目,该缓存越大同步速度越快,最大设置到1500000,默认200000
  94. tkCloseCacheLen=200000
  95. [store.sub.kvmvccmavl]
  96. enableMVCCIter=true
  97. enableMavlPrefix=true
  98. enableMVCC=false
  99. enableMavlPrune=true
  100. pruneMavlHeight=10000
  101. enableMVCCPrune=false
  102. pruneMVCCHeight=10000
  103. enableMemTree=true
  104. enableMemVal=true
  105. # 缓存close ticket数目,该缓存越大同步速度越快,最大设置到1500000,默认200000
  106. tkCloseCacheLen=200000
  107. [wallet]
  108. dbPath="datadir/wallet"
  109. dbCache=16
  110. [wallet.sub.ticket]
  111. minerdisable=false
  112. minerwhitelist=["*"]
  113. [exec]
  114. enableStat=false
  115. enableMVCC=false
  116. [exec.sub.token]
  117. saveTokenTxList=false
  118. [metrics]
  119. #是否使能发送metrics数据的发送
  120. enableMetrics=false
  121. #数据保存模式
  122. dataEmitMode="influxdb"
  123. [metrics.sub.influxdb]
  124. #以纳秒为单位的发送间隔
  125. duration=1000000000
  126. url="http://influxdb:8086"
  127. database="chain33metrics"
  128. username=""
  129. password=""
  130. namespace=""