This repository was archived by the owner on May 23, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1181,6 +1181,9 @@ def initialize(self, parent):
1181
1181
self .set_storage_data (utils .normalize_address (self .config ["METROPOLIS_BLOCKHASH_STORE" ]),
1182
1182
self .number % self .config ["METROPOLIS_WRAPAROUND" ],
1183
1183
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 ))
1184
1187
1185
1188
def finalize (self ):
1186
1189
"""Apply rewards and commit."""
Original file line number Diff line number Diff line change 1
- import pytest
2
-
3
1
from ethereum import blocks , utils , db
4
2
from ethereum .exceptions import VerificationFailed , InvalidTransaction
5
3
import rlp
6
4
from rlp .utils import decode_hex , encode_hex , str_to_bytes
7
5
from rlp import DecodingError , DeserializationError
8
- import os
9
6
import sys
10
7
import ethereum .testutils as testutils
11
8
import copy
@@ -44,7 +41,7 @@ def valueconv(k, v):
44
41
return v
45
42
46
43
47
- def run_block_test (params , config_overrides = {}):
44
+ def run_block_test (params , config_overrides = {}):
48
45
b = blocks .genesis (env , start_alloc = params ["pre" ])
49
46
gbh = params ["genesisBlockHeader" ]
50
47
b .bloom = utils .scanners ['int256b' ](gbh ["bloom" ])
You can’t perform that action at this time.
0 commit comments