mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-25 13:07:17 +00:00
This reverts commit df80b0d915
.
This commit is contained in:
parent
4a5f97527b
commit
dce6ac22d0
@ -418,22 +418,6 @@ func handleNewPayload(
|
||||
return err
|
||||
}
|
||||
|
||||
isCanonicalHeader, err := rawdb.IsCanonicalHash(tx, headerHash)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
// If we already processed this block as canonical we return VALID and skip it.
|
||||
if isCanonicalHeader {
|
||||
if requestStatus == engineapi.New {
|
||||
cfg.hd.PayloadStatusCh <- privateapi.PayloadStatus{
|
||||
Status: remote.EngineStatus_VALID,
|
||||
LatestValidHash: rawdb.ReadHeadBlockHash(tx),
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
if existingCanonicalHash != (common.Hash{}) && headerHash == existingCanonicalHash {
|
||||
log.Info(fmt.Sprintf("[%s] New payload: previously received valid header", s.LogPrefix()))
|
||||
cfg.hd.BeaconRequestList.Remove(requestId)
|
||||
|
Loading…
Reference in New Issue
Block a user