Remove `prepare_payload` leftover

This commit is contained in:
Hsiao-Wei Wang 2021-10-19 15:30:49 +08:00
parent d5be6b5d68
commit 34335e0334
No known key found for this signature in database
GPG Key ID: 1111A8A81778319E
2 changed files with 1 additions and 8 deletions

View File

@ -533,13 +533,6 @@ class NoopExecutionEngine(ExecutionEngine):
payload_attributes: Optional[PayloadAttributes]) -> None: payload_attributes: Optional[PayloadAttributes]) -> None:
pass pass
def prepare_payload(self: ExecutionEngine,
parent_hash: Hash32,
timestamp: uint64,
random: Bytes32,
feeRecipient: ExecutionAddress) -> PayloadId:
raise NotImplementedError("no default block production")
def get_payload(self: ExecutionEngine, payload_id: PayloadId) -> ExecutionPayload: def get_payload(self: ExecutionEngine, payload_id: PayloadId) -> ExecutionPayload:
raise NotImplementedError("no default block production") raise NotImplementedError("no default block production")

View File

@ -100,7 +100,7 @@ avoid requiring simple serialize hashing capabilities in the Execution Layer.
### `ExecutionEngine` ### `ExecutionEngine`
*Note*: `prepare_payload` and `get_payload` functions are added to the `ExecutionEngine` protocol for use as a validator. *Note*: `get_payload` function is added to the `ExecutionEngine` protocol for use as a validator.
The body of each of these functions is implementation dependent. The body of each of these functions is implementation dependent.
The Engine API may be used to implement them with an external execution engine. The Engine API may be used to implement them with an external execution engine.