ethereum / py-geth

Python wrapping for running Go-Ethereum as a subprocess
MIT License
99 stars 218 forks source link

Properly fill `genesis_data` defaults #215

Closed pacrob closed 3 months ago

pacrob commented 3 months ago

What was wrong?

Filling geth_kwargs defaults by just creating a model from the dict works fine because its only member that is a dict (suffix_kwargs) defaults to None. genesis_data["config"] does have default values, so just creating a GenesisData model from the dict does not fill the sub-dict properly.

How was it fixed?

Added a fill_default_genesis_data function and test.

Todo:

Cute Animal Picture

image