From b82374823e4c801c8920b3786dacbf668d3b2ddc Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Sun, 20 Nov 2022 20:55:51 +0300 Subject: [PATCH] core: increase persist batch size for reset storage changes --- pkg/core/blockchain.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/core/blockchain.go b/pkg/core/blockchain.go index aa8957ad9..1c48946c4 100644 --- a/pkg/core/blockchain.go +++ b/pkg/core/blockchain.go @@ -792,7 +792,7 @@ func (bc *Blockchain) resetStateInternal(height uint32, stage stateChangeStage) mgmtContractPrefix[4] = native.PrefixContract cs := new(state.Contract) - const persistBatchSize = 10000 + const persistBatchSize = 200000 var ( seekErr error cnt int