Log out response status when we hit PayloadIdUnavailable
(#3190)
## Issue Addressed @z3n-chada is currently getting a `PayloadIdUnavailable` error when connecting lighthouse to Erigon and it's difficult to discern why so this just logs out the response status from the EE when we hit an `PayloadIdUnavailable` error Co-authored-by: realbigsean <sean@sigmaprime.io>
This commit is contained in:
parent
695f415590
commit
54b58fdc01
@ -660,25 +660,28 @@ impl ExecutionLayer {
|
||||
suggested_fee_recipient,
|
||||
};
|
||||
|
||||
engine
|
||||
let response = engine
|
||||
.notify_forkchoice_updated(
|
||||
fork_choice_state,
|
||||
Some(payload_attributes),
|
||||
self.log(),
|
||||
)
|
||||
.await
|
||||
.map(|response| response.payload_id)?
|
||||
.ok_or_else(|| {
|
||||
.await?;
|
||||
|
||||
match response.payload_id {
|
||||
Some(payload_id) => payload_id,
|
||||
None => {
|
||||
error!(
|
||||
self.log(),
|
||||
"Exec engine unable to produce payload";
|
||||
"msg" => "No payload ID, the engine is likely syncing. \
|
||||
This has the potential to cause a missed block \
|
||||
proposal.",
|
||||
"status" => ?response.payload_status
|
||||
);
|
||||
|
||||
ApiError::PayloadIdUnavailable
|
||||
})?
|
||||
return Err(ApiError::PayloadIdUnavailable);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
engine
|
||||
|
Loading…
Reference in New Issue
Block a user