Add difficulty field to PowBlock

This commit is contained in:
Mikhail Kalinin 2021-06-08 17:26:09 +06:00
parent 038edb5b34
commit 6350e27366
2 changed files with 2 additions and 1 deletions

View File

@ -509,7 +509,7 @@ ExecutionState = Any
def get_pow_block(hash: Bytes32) -> PowBlock:
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:

View File

@ -85,6 +85,7 @@ class PowBlock(object):
is_processed: boolean
is_valid: boolean
total_difficulty: uint256
difficulty: uint256
```
### `get_pow_block`