What is wrong?
- After London changes, certain genesis header params became unconfigurable. Introduce back the ability to configure
block_number. See eth-tester issue #225.
How can it be fixed
-
fill_header_params_from_parent()needs the ability to pass in ablock_numberkwarg to be configurable again. This call is made from the create_header_from_parent() method in the header classes. -
block_numbershould be a parameter in the fill_header_params_from_parent() method that can be configured but should still keep the current default toGENESIS_BLOCK_NUMBERif the parent is None or to the parentblock_number+ 1 if the parent exists.
At a quick glance I believe this is the only change necessary. Testing should be added as well.
