mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-06 18:21:45 +00:00
Permit a null LVH from an INVALID response to newPayload (#4037)
## Issue Addressed NA ## Proposed Changes As discovered in #4034, Lighthouse is not accepting `latest_valid_hash == None` in an `INVALID` response to `newPayload`. The `null`/`None` response *was* illegal at one point, however it was added in https://github.com/ethereum/execution-apis/pull/254. This PR brings Lighthouse in line with the standard and should fix the root cause of what #4034 patched around. ## Additional Info NA
This commit is contained in:
@@ -427,7 +427,16 @@ impl<E: GenericExecutionEngine> TestRig<E> {
|
||||
.notify_new_payload(&invalid_payload)
|
||||
.await
|
||||
.unwrap();
|
||||
assert!(matches!(status, PayloadStatus::InvalidBlockHash { .. }));
|
||||
assert!(matches!(
|
||||
status,
|
||||
PayloadStatus::InvalidBlockHash { .. }
|
||||
// Geth is returning `INVALID` with a `null` LVH to indicate it
|
||||
// does not know the invalid ancestor.
|
||||
| PayloadStatus::Invalid {
|
||||
latest_valid_hash: None,
|
||||
..
|
||||
}
|
||||
));
|
||||
|
||||
/*
|
||||
* Execution Engine A:
|
||||
|
||||
Reference in New Issue
Block a user