Skip to content
This repository was archived by the owner on May 23, 2023. It is now read-only.

Commit dd4eda3

Browse files
committed
Add EIP150 config and processing conditional #413
1 parent c2666d9 commit dd4eda3

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

ethereum/config.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@
6363
DAO_FORK_BLKNUM=1920000,
6464
CHILD_DAO_LIST=map(utils.normalize_address, child_dao_list),
6565
DAO_WITHDRAWER=utils.normalize_address('0xbf4ed7b27f1d666546e30d74d50d173d20bca754'),
66+
# Anti-DoS fork
67+
ANTI_DOS_FORK_BLKNUM=2457000,
68+
CLEARING_FORK_BLKNUM=2 ** 98,
6669
)
6770
assert default_config['NEPHEW_REWARD'] == \
6871
default_config['BLOCK_REWARD'] // 32

ethereum/processblock.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ def __init__(self, block, tx):
249249
self.msg = lambda msg: _apply_msg(self, msg, self.get_code(msg.code_address))
250250
self.account_exists = block.account_exists
251251
self.post_homestead_hardfork = lambda: block.number >= block.config['HOMESTEAD_FORK_BLKNUM']
252+
self.post_anti_dos_hardfork = lambda: block.number >= block.config['ANTI_DOS_FORK_BLKNUM']
252253

253254

254255
def apply_msg(ext, msg):

0 commit comments

Comments
 (0)