mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-11 05:20:05 +00:00
parent
d5b51e15f5
commit
5db869236a
@ -1040,6 +1040,10 @@ func (hi *HeaderInserter) FeedHeaderPoS(db kv.GetPut, header *types.Header, hash
|
|||||||
return fmt.Errorf("[%s] failed to store header: %w", hi.logPrefix, err)
|
return fmt.Errorf("[%s] failed to store header: %w", hi.logPrefix, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if err = db.Put(kv.HeaderNumber, hash[:], dbutils.EncodeBlockNumber(blockHeight)); err != nil {
|
||||||
|
return fmt.Errorf("[%s] failed to store header: %w", hi.logPrefix, err)
|
||||||
|
}
|
||||||
|
|
||||||
hi.highest = blockHeight
|
hi.highest = blockHeight
|
||||||
hi.highestHash = hash
|
hi.highestHash = hash
|
||||||
hi.highestTimestamp = header.Time
|
hi.highestTimestamp = header.Time
|
||||||
|
Loading…
Reference in New Issue
Block a user