PR feedback from @ppopth

This commit is contained in:
Hsiao-Wei Wang 2023-05-23 15:16:12 +08:00
parent 0b2f604f86
commit 3247bcf8f7
No known key found for this signature in database
GPG Key ID: AE3D6B174F971DE4
2 changed files with 2 additions and 17 deletions

View File

@ -330,7 +330,7 @@ The Engine API may be used to implement this and similarly defined functions via
```python
def notify_new_payload(self: ExecutionEngine, new_payload_request: NewPayloadRequest) -> bool:
"""
Return ``True`` if and only if ``execution_payload`` is valid with respect to ``self.execution_state``.
Return ``True`` if and only if ``new_payload_request`` is valid with respect to ``self.execution_state``.
"""
...
```

View File

@ -30,7 +30,6 @@
- [Modified `NewPayloadRequest`](#modified-newpayloadrequest)
- [Engine APIs](#engine-apis)
- [Modified `notify_new_payload`](#modified-notify_new_payload)
- [Block processing](#block-processing)
- [Execution payload](#execution-payload)
- [`process_execution_payload`](#process_execution_payload)
- [Testing](#testing)
@ -182,25 +181,11 @@ class NewPayloadRequest(object):
```python
def notify_new_payload(self: ExecutionEngine, new_payload_request: NewPayloadRequest) -> bool:
"""
Return ``True`` if and only if ``execution_payload`` is valid with respect to ``self.execution_state``.
Return ``True`` if and only if ``new_payload_request`` is valid with respect to ``self.execution_state``.
"""
...
```
### Block processing
```python
def process_block(state: BeaconState, block: BeaconBlock) -> None:
process_block_header(state, block)
if is_execution_enabled(state, block.body):
process_withdrawals(state, block.body.execution_payload)
process_execution_payload(state, block.body, EXECUTION_ENGINE) # [Modified in Deneb]
process_randao(state, block.body)
process_eth1_data(state, block.body)
process_operations(state, block.body)
process_sync_aggregate(state, block.body.sync_aggregate)
```
#### Execution payload
##### `process_execution_payload`