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,
|
suggested_fee_recipient,
|
||||||
};
|
};
|
||||||
|
|
||||||
engine
|
let response = engine
|
||||||
.notify_forkchoice_updated(
|
.notify_forkchoice_updated(
|
||||||
fork_choice_state,
|
fork_choice_state,
|
||||||
Some(payload_attributes),
|
Some(payload_attributes),
|
||||||
self.log(),
|
self.log(),
|
||||||
)
|
)
|
||||||
.await
|
.await?;
|
||||||
.map(|response| response.payload_id)?
|
|
||||||
.ok_or_else(|| {
|
match response.payload_id {
|
||||||
|
Some(payload_id) => payload_id,
|
||||||
|
None => {
|
||||||
error!(
|
error!(
|
||||||
self.log(),
|
self.log(),
|
||||||
"Exec engine unable to produce payload";
|
"Exec engine unable to produce payload";
|
||||||
"msg" => "No payload ID, the engine is likely syncing. \
|
"msg" => "No payload ID, the engine is likely syncing. \
|
||||||
This has the potential to cause a missed block \
|
This has the potential to cause a missed block \
|
||||||
proposal.",
|
proposal.",
|
||||||
|
"status" => ?response.payload_status
|
||||||
);
|
);
|
||||||
|
return Err(ApiError::PayloadIdUnavailable);
|
||||||
ApiError::PayloadIdUnavailable
|
}
|
||||||
})?
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
engine
|
engine
|
||||||
|
Loading…
Reference in New Issue
Block a user