mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-23 21:26:42 +00:00
fix: wait for snapshot root is ready
This commit is contained in:
parent
f1cb76d0f2
commit
e1469bc414
1 changed files with 0 additions and 5 deletions
|
|
@ -360,11 +360,6 @@ wait:
|
||||||
done chan buildResult
|
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 {
|
for {
|
||||||
select {
|
select {
|
||||||
case u := <-t.updateCh:
|
case u := <-t.updateCh:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue