mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-01-20 07:29:02 +00:00
Add difficulty field to PowBlock
This commit is contained in:
parent
038edb5b34
commit
6350e27366
2
setup.py
2
setup.py
@ -509,7 +509,7 @@ ExecutionState = Any
|
|||||||
|
|
||||||
def get_pow_block(hash: Bytes32) -> PowBlock:
|
def get_pow_block(hash: Bytes32) -> PowBlock:
|
||||||
return PowBlock(block_hash=hash, is_valid=True, is_processed=True,
|
return PowBlock(block_hash=hash, is_valid=True, is_processed=True,
|
||||||
total_difficulty=uint256(0))
|
total_difficulty=uint256(0), difficulty=uint256(0))
|
||||||
|
|
||||||
|
|
||||||
def get_execution_state(execution_state_root: Bytes32) -> ExecutionState:
|
def get_execution_state(execution_state_root: Bytes32) -> ExecutionState:
|
||||||
|
@ -85,6 +85,7 @@ class PowBlock(object):
|
|||||||
is_processed: boolean
|
is_processed: boolean
|
||||||
is_valid: boolean
|
is_valid: boolean
|
||||||
total_difficulty: uint256
|
total_difficulty: uint256
|
||||||
|
difficulty: uint256
|
||||||
```
|
```
|
||||||
|
|
||||||
### `get_pow_block`
|
### `get_pow_block`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user