@@ -120,20 +120,20 @@ def generate_genesis_state_for_keys(account_keys, overrides=None):
120
120
121
121
def get_default_genesis_params (overrides = None ):
122
122
default_genesis_params = {
123
- "bloom" : 0 ,
123
+ # "bloom": 0,
124
124
"coinbase" : GENESIS_COINBASE ,
125
125
"difficulty" : GENESIS_DIFFICULTY ,
126
126
"extra_data" : GENESIS_EXTRA_DATA ,
127
127
"gas_limit" : GENESIS_GAS_LIMIT ,
128
- "gas_used" : 0 ,
128
+ # "gas_used": 0,
129
129
"mix_hash" : GENESIS_MIX_HASH ,
130
130
"nonce" : GENESIS_NONCE ,
131
- "block_number" : GENESIS_BLOCK_NUMBER ,
132
- "parent_hash" : GENESIS_PARENT_HASH ,
131
+ # "block_number": GENESIS_BLOCK_NUMBER,
132
+ # "parent_hash": GENESIS_PARENT_HASH,
133
133
"receipt_root" : BLANK_ROOT_HASH ,
134
134
"timestamp" : int (time .time ()),
135
135
"transaction_root" : BLANK_ROOT_HASH ,
136
- "uncles_hash" : EMPTY_RLP_LIST_HASH
136
+ # "uncles_hash": EMPTY_RLP_LIST_HASH
137
137
}
138
138
if overrides is not None :
139
139
genesis_params = merge_genesis_overrides (default_genesis_params , overrides = overrides )
@@ -156,8 +156,8 @@ def setup_tester_chain(
156
156
from eth .db import get_db_backend
157
157
158
158
if vm_configuration is None :
159
- from eth .vm .forks import BerlinVM
160
- no_proof_vms = ((0 , BerlinVM .configure (consensus_class = NoProofConsensus )),)
159
+ from eth .vm .forks import LondonVM
160
+ no_proof_vms = ((0 , LondonVM .configure (consensus_class = NoProofConsensus )),)
161
161
else :
162
162
consensus_applier = ConsensusApplier (NoProofConsensus )
163
163
no_proof_vms = consensus_applier .amend_vm_configuration (vm_configuration )
@@ -178,6 +178,10 @@ def create_header_from_parent(self, parent_header, **header_params):
178
178
if genesis_state :
179
179
num_accounts = len (genesis_state )
180
180
181
+ # TODO: maybe the below?
182
+ # if genesis_params["block_number"] >= 12965000:
183
+ # genesis_params["base_fee_per_gas"] = 1000000000
184
+
181
185
account_keys = get_default_account_keys (quantity = num_accounts )
182
186
183
187
if genesis_state is None :
@@ -435,7 +439,7 @@ def _normalize_transaction(self, transaction, block_number='latest'):
435
439
if 'data' not in transaction :
436
440
yield 'data' , b''
437
441
if 'gas_price' not in transaction :
438
- yield 'gas_price' , 1
442
+ yield 'gas_price' , 1000000000
439
443
if 'value' not in transaction :
440
444
yield 'value' , 0
441
445
if 'to' not in transaction :
0 commit comments