py-evm icon indicating copy to clipboard operation
py-evm copied to clipboard

Parse genesis file to create a Chain object

Open carver opened this issue 4 years ago • 2 comments

What is wrong?

Would be ideal to be able to create a Chain object from a genesis file. This implementation already exists in Trinity, but more reasonably belongs in py-evm. Tools like eth-tester would benefit from this functionality. See user request at: https://github.com/ethereum/web3.py/issues/1677 (inspired by desire to set the chain ID for an eth-tester chain)

How can it be fixed

Import the same logic from Trinity's trinity/_utils/eip1085.py. (and presumably there are tests in Trinity that can be ported in)

carver avatar Aug 27 '21 00:08 carver

@kclowes I guess you're probably blocked on Felipe for London work anyway, so maybe you could start on this?

carver avatar Aug 27 '21 01:08 carver

I'll take a look on Monday!

kclowes avatar Aug 27 '21 18:08 kclowes