mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
Revert "eth: ignore genesis block on importChain (#27956)"
This reverts commit f2b58906fb.
This commit is contained in:
parent
8ee11d5657
commit
725d0336c8
1 changed files with 0 additions and 4 deletions
|
|
@ -118,10 +118,6 @@ func (api *AdminAPI) ImportChain(file string) (bool, error) {
|
||||||
} else if err != nil {
|
} else if err != nil {
|
||||||
return false, fmt.Errorf("block %d: failed to parse: %v", index, err)
|
return false, fmt.Errorf("block %d: failed to parse: %v", index, err)
|
||||||
}
|
}
|
||||||
// ignore the genesis block when importing blocks
|
|
||||||
if block.NumberU64() == 0 {
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
blocks = append(blocks, block)
|
blocks = append(blocks, block)
|
||||||
index++
|
index++
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue