core/rawdb: fix typo

This commit is contained in:
Gary Rong 2024-03-04 18:43:37 +08:00
parent baf8ccf6f6
commit be4d6bdaaa

View file

@ -179,7 +179,7 @@ func (f *chainFreezer) freeze(db ethdb.KeyValueStore) {
var ( var (
start = time.Now() start = time.Now()
first = frozen // the first block to freeze first = frozen // the first block to freeze
last = threshold // the last block to freezer last = threshold // the last block to freeze
) )
if last-first+1 > freezerBatchLimit { if last-first+1 > freezerBatchLimit {
last = freezerBatchLimit + first - 1 last = freezerBatchLimit + first - 1