flashbots / mev-inspect-py

🔎 an MEV inspector for Ethereum 🔎
MIT License
826 stars 258 forks source link

running inspect on post-merge blocks fails #318

Open pintail-xyz opened 2 years ago

pintail-xyz commented 2 years ago

mev-inspect-py is unable to process any blocks since the merge. The reason seems to be that the 'miner' of each block is determined by looking for a trace of type reward. Presumably since there is no block subsidy post-merge, there are no longer any traces of this type.

Accordingly _get_miner_address_from_traces returns None and so create_block_from_number fails.

This could be easily fixed by getting the 'miner' from w3.eth.get_block(block_number), which returns the fee recipient for post-merge blocks.

arsenius-clbs commented 1 year ago

@pintail-xyz , hey. Is the fix going to be integrated into the master anytime soon?

J1a-wei commented 1 year ago

This problem is fixed?