fix: wait for snapshot root is ready

This commit is contained in:
jsvisa 2025-08-26 06:31:36 +08:00 committed by Gary Rong
parent f1cb76d0f2
commit e1469bc414

View file

@ -360,11 +360,6 @@ wait:
done chan buildResult
)
// Add snapshot root to updates map when snapshot completes
if root := rawdb.ReadSnapshotRoot(t.db); root != (common.Hash{}) {
updates[root] = &stateUpdate{root: root}
}
for {
select {
case u := <-t.updateCh: