moonbeam icon indicating copy to clipboard operation
moonbeam copied to clipboard

Calling eth_getBlockByHash with event log transaction hash race condition

Open kev1n-peters opened this issue 1 year ago • 5 comments

eth_getBlockByHash sometimes returns "not found" when called with the transaction hash from a smart contract event log. It's hard to reproduce consistently which leads us to believe that there might be a race condition causing it in the moonbeam node.

kev1n-peters avatar Mar 17 '23 14:03 kev1n-peters

Thank you @kev1n-peters, can you give us more information ? Is this on a local node or in a public RPC node ? What configuration is used ?

crystalin avatar Mar 17 '23 16:03 crystalin

A local node, version 0.30.0, happens sometimes when making the RPC call through a WebSocket.

kev1n-peters avatar Mar 17 '23 16:03 kev1n-peters

Hey @kev1n-peters I think this PR should fix the issue -> https://github.com/paritytech/frontier/pull/1030

albertov19 avatar Mar 30 '23 12:03 albertov19

@albertov19 do you perhaps have any info on when we might expect that to be merged?

aadam-10 avatar Apr 14 '23 13:04 aadam-10

@crystalin what do you think? It has not been merged upstream in Frontier so it might not make it to client v0.31.0 right?

albertov19 avatar Apr 14 '23 14:04 albertov19