core: increase persist batch size for reset storage changes

This commit is contained in:
Anna Shaleva 2022-11-20 20:55:51 +03:00
parent bdc42cd595
commit b82374823e

View file

@ -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