Skip to content

Commit

Permalink
Add difficulty field to PowBlock
Browse files Browse the repository at this point in the history
  • Loading branch information
mkalinin committed Jun 8, 2021
1 parent 038edb5 commit 6350e27
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ def sundry_functions(cls) -> str:
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:
Expand Down
1 change: 1 addition & 0 deletions specs/merge/fork-choice.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ class PowBlock(object):
is_processed: boolean
is_valid: boolean
total_difficulty: uint256
difficulty: uint256
```

### `get_pow_block`
Expand Down

0 comments on commit 6350e27

Please sign in to comment.