mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-25 13:07:17 +00:00
parent
925d17a238
commit
4928de2280
@ -697,7 +697,7 @@ func (hi *HeaderInserter) FeedHeader(db ethdb.StatelessRwTx, header *types.Heade
|
||||
}
|
||||
// Parent's total difficulty
|
||||
parentTd, err := rawdb.ReadTd(db, header.ParentHash, blockHeight-1)
|
||||
if err != nil {
|
||||
if err != nil || parentTd == nil {
|
||||
return fmt.Errorf("[%s] parent's total difficulty not found with hash %x and height %d for header %x %d: %v", hi.logPrefix, header.ParentHash, blockHeight-1, hash, blockHeight, err)
|
||||
}
|
||||
// Calculate total difficulty of this header using parent's total difficulty
|
||||
|
Loading…
Reference in New Issue
Block a user