Skip to content

Commit

Permalink
add config
Browse files Browse the repository at this point in the history
  • Loading branch information
yxq committed Jul 6, 2020
1 parent e9e43cb commit 7e23d49
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions chain33.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,15 @@ enableReExecLocal=true
enableReduceLocaldb=true
enablePushSubscribe=false

# 关闭分片存储,默认false为开启分片存储;平行链不需要分片需要修改此默认参数为true
disableShard=false
# 分片存储中每个大块包含的区块数
chunkblockNum=1000
# 使能从P2pStore中获取数据
enableFetchP2pstore=false
# 使能假设已删除已归档数据后,获取数据情况
enableIfDelLocalChunk=false

[p2p]
# p2p类型
types=["dht", "gossip"]
Expand All @@ -70,6 +79,16 @@ useGithub=true
innerBounds=300

[p2p.sub.dht]
seeds=[]
port=13803
maxConnectNum=100
# 禁止通过局域网发现节点
disableFindLANPeers=false
# 配置为全节点模式,全节点保存所有分片数据
isFullNode=true
# 若本节点不是全节点,则需要配置全节点地址,当在分片网络中查不到数据时,会到全节点上获取数据
# 格式: "/ip4/139.196.46.175/tcp/13803/p2p/16Uiu2HAkvnDRF8HQTTU5Uu5GmtbLDrgPxCwgVsn2QQ9VEU7Eiwjw"
fullNodes=[]



Expand Down

0 comments on commit 7e23d49

Please sign in to comment.