mirror of
https://github.com/ethereum/consensus-specs.git
synced 2026-02-02 09:35:00 -05:00
Standardise PowBlock between fork-choice and validator
This commit is contained in:
@@ -30,6 +30,7 @@ This is the modification of the fork choice according to the executable beacon c
|
||||
|
||||
```python
|
||||
class PowBlock(Container):
|
||||
block_hash: Bytes32
|
||||
is_processed: boolean
|
||||
is_valid: boolean
|
||||
total_difficulty: uint256
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
- [Block proposal](#block-proposal)
|
||||
- [Constructing the `BeaconBlockBody`](#constructing-the-beaconblockbody)
|
||||
- [Application Payload](#application-payload)
|
||||
- [`PowBlock`](#powblock)
|
||||
- [`get_pow_chain_head`](#get_pow_chain_head)
|
||||
- [`produce_application_payload`](#produce_application_payload)
|
||||
|
||||
@@ -43,13 +42,6 @@ All validator responsibilities remain unchanged other than those noted below. Na
|
||||
|
||||
##### Application Payload
|
||||
|
||||
###### `PowBlock`
|
||||
```python
|
||||
class PowBlock(Container):
|
||||
block_hash: Bytes32
|
||||
total_difficulty: uint256
|
||||
```
|
||||
|
||||
###### `get_pow_chain_head`
|
||||
|
||||
Let `get_pow_chain_head() -> PowBlock` be the function that returns the head of the PoW chain. The body of the function is implementation specific.
|
||||
|
||||
Reference in New Issue
Block a user