mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-03 09:37:38 +00:00
fixed finalized portion (#4181)
This commit is contained in:
parent
eb614bca88
commit
01a98a4582
@ -470,14 +470,20 @@ func (s *EthBackendServer) EngineForkChoiceUpdatedV1(ctx context.Context, req *r
|
||||
}, nil
|
||||
}
|
||||
|
||||
log.Trace("[ForkChoiceUpdated] sending forkChoiceMessage", "head", forkChoice.HeadBlockHash)
|
||||
s.requestList.AddForkChoiceRequest(&forkChoice)
|
||||
payloadStatus := PayloadStatus{
|
||||
Status: remote.EngineStatus_VALID,
|
||||
}
|
||||
|
||||
payloadStatus := <-s.statusCh
|
||||
log.Trace("[ForkChoiceUpdated] got reply", "payloadStatus", payloadStatus)
|
||||
if (forkChoice.HeadBlockHash != common.Hash{} || forkChoice.HeadBlockHash != common.Hash{}) {
|
||||
log.Trace("[ForkChoiceUpdated] sending forkChoiceMessage", "head", forkChoice.HeadBlockHash)
|
||||
s.requestList.AddForkChoiceRequest(&forkChoice)
|
||||
|
||||
if payloadStatus.CriticalError != nil {
|
||||
return nil, payloadStatus.CriticalError
|
||||
payloadStatus = <-s.statusCh
|
||||
log.Trace("[ForkChoiceUpdated] got reply", "payloadStatus", payloadStatus)
|
||||
|
||||
if payloadStatus.CriticalError != nil {
|
||||
return nil, payloadStatus.CriticalError
|
||||
}
|
||||
}
|
||||
|
||||
// No need for payload building
|
||||
|
Loading…
Reference in New Issue
Block a user