Skip to content

Commit 67bc568

Browse files
souradeep-dasSamWilsn
authored andcommitted
fix block difficulty calc frontier
1 parent 19591bd commit 67bc568

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ethereum/frontier/fork.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,7 @@ def calculate_block_difficulty(
768768
# See https://github.com/ethereum/go-ethereum/pull/1588
769769
num_bomb_periods = (int(block_number) // 100000) - 2
770770
if num_bomb_periods >= 0:
771-
difficulty += 2**num_bomb_periods
771+
difficulty += Uint(2**num_bomb_periods)
772772

773773
# Some clients raise the difficulty to `MINIMUM_DIFFICULTY` prior to adding
774774
# the bomb. This bug does not matter because the difficulty is always much

0 commit comments

Comments
 (0)