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

Commit 8df6b41

Browse files
committed
HF state changes + PEP8
1 parent 04ae408 commit 8df6b41

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ethereum/blocks.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1181,6 +1181,9 @@ def initialize(self, parent):
11811181
self.set_storage_data(utils.normalize_address(self.config["METROPOLIS_BLOCKHASH_STORE"]),
11821182
self.number % self.config["METROPOLIS_WRAPAROUND"],
11831183
self.prevhash)
1184+
if self.number == self.config['DAO_FORK_BLKNUM']:
1185+
for acct in self.config['CHILD_DAO_LIST']:
1186+
self.transfer_value(acct, self.config['DAO_WITHDRAWER'], self.get_balance(acct))
11841187

11851188
def finalize(self):
11861189
"""Apply rewards and commit."""

ethereum/tests/test_blocks.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
import pytest
2-
31
from ethereum import blocks, utils, db
42
from ethereum.exceptions import VerificationFailed, InvalidTransaction
53
import rlp
64
from rlp.utils import decode_hex, encode_hex, str_to_bytes
75
from rlp import DecodingError, DeserializationError
8-
import os
96
import sys
107
import ethereum.testutils as testutils
118
import copy
@@ -44,7 +41,7 @@ def valueconv(k, v):
4441
return v
4542

4643

47-
def run_block_test(params, config_overrides = {}):
44+
def run_block_test(params, config_overrides={}):
4845
b = blocks.genesis(env, start_alloc=params["pre"])
4946
gbh = params["genesisBlockHeader"]
5047
b.bloom = utils.scanners['int256b'](gbh["bloom"])

0 commit comments

Comments
 (0)