mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-23 13:41:37 +00:00
core: remove genesis-specific header hash logic from init
The code below will do the same thing (via CreateGenesisBlock, but it doesn't matter) generically, so this branch is useless.
This commit is contained in:
parent
a43a87675d
commit
ff284d5d5c
1 changed files with 0 additions and 3 deletions
|
@ -425,9 +425,6 @@ func (bc *Blockchain) init() error {
|
|||
if err != nil {
|
||||
return fmt.Errorf("failed to retrieve current header info: %w", err)
|
||||
}
|
||||
if bc.storedHeaderCount == 0 && currHeaderHeight == 0 {
|
||||
bc.headerHashes = append(bc.headerHashes, currHeaderHash)
|
||||
}
|
||||
|
||||
// There is a high chance that the Node is stopped before the next
|
||||
// batch of 2000 headers was stored. Via the currentHeaders stored we can sync
|
||||
|
|
Loading…
Reference in a new issue