-
-
Notifications
You must be signed in to change notification settings - Fork 275
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EIP-4844: Force ExternalData arg in state transition fn (#4846)
* Add ExternalData to state transition function * Explicitly state validation rules * Fix tests * Fix unit test types
- Loading branch information
Showing
16 changed files
with
170 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/** | ||
* Should emulate the return value of `ExecutionEngine.notifyNewPayload()`, such that: | ||
* | ||
* Returns ``True`` iff ``execution_payload`` is valid with respect to ``self.execution_state``. | ||
* | ||
* Note: `processExecutionPayload()` depends on process_randao function call as it retrieves the most recent randao | ||
* mix from the state. Implementations that are considering parallel processing of execution payload with respect to | ||
* beacon chain state transition function should work around this dependency. | ||
*/ | ||
export enum ExecutionPayloadStatus { | ||
preMerge = "preMerge", | ||
invalid = "invalid", | ||
valid = "valid", | ||
} | ||
|
||
export enum DataAvailableStatus { | ||
preEIP4844 = "preEIP4844", | ||
notAvailable = "notAvailable", | ||
available = "available", | ||
} | ||
|
||
export interface BlockExternalData { | ||
executionPayloadStatus: ExecutionPayloadStatus; | ||
dataAvailableStatus: DataAvailableStatus; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.