Commit 6fc64144 authored by jiangpeng's avatar jiangpeng

add p2p shard config doc

parent f8ae6100
-- "a/\345\210\206\347\211\207\351\205\215\347\275\256.md" ++ /dev/null
[blockchain]
# 分片存储中每个大块包含的区块数,固定参数
chunkblockNum=1000
# blockchain模块保留的区块数,指定最新的reservedBlockNum个区块不参与分片
reservedBlockNum=300000
# 是否禁止分片功能,默认开启分片功能
disableShard=false
# 使能从P2pStore中获取数据
enableFetchP2pstore=true
[p2p]
# 分片需要基于dht网络
types=["dht"]
# dht子配置
[p2p.sub.dht]
# 分片全节点模式,即分片模式下保留所有分片数据
isFullNode=false
# 分片数据保存比例, 默认30%, 最低10%, 最高100%
Percentage=30
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment