Skip to content

Commit

Permalink
Merge pull request #2720 from paulhauner/patch-34
Browse files Browse the repository at this point in the history
Remove `difficulty` from `PowBlock`
  • Loading branch information
djrtwo authored Nov 18, 2021
2 parents 140f30d + 79f1f16 commit dc14b79
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ def sundry_functions(cls) -> str:
def get_pow_block(hash: Bytes32) -> Optional[PowBlock]:
return PowBlock(block_hash=hash, parent_hash=Bytes32(), total_difficulty=uint256(0), difficulty=uint256(0))
return PowBlock(block_hash=hash, parent_hash=Bytes32(), total_difficulty=uint256(0))
def get_execution_state(execution_state_root: Bytes32) -> ExecutionState:
Expand Down
1 change: 0 additions & 1 deletion specs/merge/fork-choice.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ class PowBlock(Container):
block_hash: Hash32
parent_hash: Hash32
total_difficulty: uint256
difficulty: uint256
```

### `get_pow_block`
Expand Down
1 change: 0 additions & 1 deletion tests/core/pyspec/eth2spec/test/helpers/pow_block.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ def prepare_random_pow_block(spec, rng=Random(3131)):
block_hash=spec.Hash32(spec.hash(bytearray(rng.getrandbits(8) for _ in range(32)))),
parent_hash=spec.Hash32(spec.hash(bytearray(rng.getrandbits(8) for _ in range(32)))),
total_difficulty=uint256(0),
difficulty=uint256(0)
)


Expand Down

0 comments on commit dc14b79

Please sign in to comment.