Skip to content

Commit bc20768

Browse files
committed
fix: wait for snapshot root is ready
1 parent beaa453 commit bc20768

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

core/state/state_sizer.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -360,11 +360,6 @@ wait:
360360
done chan buildResult
361361
)
362362

363-
// Add snapshot root to updates map when snapshot completes
364-
if root := rawdb.ReadSnapshotRoot(t.db); root != (common.Hash{}) {
365-
updates[root] = &stateUpdate{root: root}
366-
}
367-
368363
for {
369364
select {
370365
case u := <-t.updateCh:

0 commit comments

Comments
 (0)