Update helper.go (#3737)

This commit is contained in:
ledgerwatch 2022-03-19 02:36:35 +00:00 committed by GitHub
parent a6ff889db9
commit 4f7f1554c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -99,7 +99,7 @@ func CreateStateReader(ctx context.Context, tx kv.Tx, blockNrOrHash rpc.BlockNum
}
stateReader = state.NewCachedReader2(cacheView, tx)
} else {
stateReader = state.NewPlainState(tx, blockNumber)
stateReader = state.NewPlainState(tx, blockNumber+1)
}
return stateReader, nil
}