Map EE calls on the PoS events defined in EIP-3675

This commit is contained in:
Mikhail Kalinin 2021-09-24 16:31:09 +06:00
parent 0e2eb50675
commit 11840ce51f
2 changed files with 4 additions and 0 deletions

View File

@ -273,6 +273,8 @@ The inputs to this function depend on the result of the state transition. A call
* `True` if `state_transition` function call succeeds
* `False` if `state_transition` function call fails
*Note*: The call of the `notify_consensus_validated` function with `valid = True` maps on the `POS_CONSENSUS_VALIDATED` event defined in the [EIP-3675](https://eips.ethereum.org/EIPS/eip-3675#definitions).
### Block processing
*Note*: The call to the `process_execution_payload` must happen before the call to the `process_randao` as the former depends on the `randao_mix` computed with the reveal of the previous block.

View File

@ -48,6 +48,8 @@ def notify_forkchoice_updated(self: ExecutionEngine, head_block_hash: Hash32, fi
...
```
*Note*: The call of the `notify_forkchoice_updated` function maps on the `POS_FORKCHOICE_UPDATED` event defined in the [EIP-3675](https://eips.ethereum.org/EIPS/eip-3675#definitions).
## Helpers
### `PowBlock`