Skip to content

Commit

Permalink
fix initial snapshot generate error in rocksdb
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-wjhan authored and sadoci committed Jan 27, 2023
1 parent 18e1b1f commit 53d0c1f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/state/snapshot/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,8 @@ func generateAccounts(ctx *generatorContext, dl *diskLayer, accMarker []byte) er
// If the iterated account is the contract, create a further loop to
// verify or regenerate the contract storage.
if acc.Root == emptyRoot {
ctx.removeStorageAt(account)
log.Debug("removeStorageAt skip for rocksdb")
// ctx.removeStorageAt(account)
} else {
var storeMarker []byte
if accMarker != nil && bytes.Equal(account[:], accMarker) && len(dl.genMarker) > common.HashLength {
Expand Down

0 comments on commit 53d0c1f

Please sign in to comment.