PBFT共識打包時間配置
考慮到PBFT模塊打包太快會導致某些區塊中僅打包1到2個很少的交易,浪費存盤空間,FISCO BCOS v2.0.0-rc2在群組可變配置group.group_id.ini的[consensus]下引入min_block_generation_time配置項來控制PBFT共識打包的最短時間,即:共識節點打包時間超過min_block_generation_time且打包的交易數大于0才會開始共識流程,處理打包生成的新區塊,
重要
min_block_generation_time默認為500ms- 共識節點最長打包時間為1000ms,若超過1000ms新區塊中打包到的交易數仍為0,共識模塊會進入出空塊邏輯,空塊并不落盤;
min_block_generation_time不可超過出空塊時間1000ms,若設定值超過1000ms,系統默認min_block_generation_time為500ms
; the ttl for broadcasting pbft message
[consensus]
ttl=2
參考官方檔案:
https://fisco-bcos-documentation.readthedocs.io/zh_CN/latest/docs/manual/configuration.html?highlight=%E5%85%B1%E8%AF%86%E6%89%93%E5%8C%85%E6%97%B6%E9%97%B4%E9%85%8D%E7%BD%AE#id27
轉載請註明出處,本文鏈接:https://www.uj5u.com/qukuanlian/255587.html
標籤:區塊鏈
