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

Commit 5fb6664

Browse files
committed
Fix parse_genesis_declaration.mk_genesis_data()
It was wrongly encoding difficulty/gasLimit as hex, but the other functions there (e.g. block_from_genesis_declaration) parse those as ints.
1 parent 827b118 commit 5fb6664

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ethereum/parse_genesis_declaration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ def mk_genesis_data(env, **kwargs):
6767
genesis_data = {
6868
"prevhash": kwargs.get('prevhash', encode_hex(env.config['GENESIS_PREVHASH'])),
6969
"coinbase": kwargs.get('coinbase', encode_hex(env.config['GENESIS_COINBASE'])),
70-
"difficulty": kwargs.get('difficulty', encode_hex(env.config['GENESIS_DIFFICULTY'])),
71-
"gas_limit": kwargs.get('gas_limit', encode_hex(env.config['GENESIS_GAS_LIMIT'])),
70+
"difficulty": kwargs.get('difficulty', env.config['GENESIS_DIFFICULTY']),
71+
"gas_limit": kwargs.get('gas_limit', env.config['GENESIS_GAS_LIMIT']),
7272
"timestamp": kwargs.get('timestamp', 0),
7373
"extra_data": kwargs.get('extra_data', encode_hex(env.config['GENESIS_EXTRA_DATA'])),
7474
"mixhash": kwargs.get('mixhash', encode_hex(env.config['GENESIS_MIXHASH'])),

0 commit comments

Comments
 (0)