You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One can query the logs of a specific block using eth_getLogs with the blockhash filter.
The results of this query on the relay node unexpectedly also contain logs from other blocks.
Steps to reproduce
set BASE_URL "http://localhost:7546"set BLOCK_HASH 0xc28a3f6447377809b1ecf7cf5ea252bfd3d0da593ef4d75539907f0e46b20193
set ADDRESS 0x0000000000000000000000000000000002bcc93e
curl -X POST $BASE_URL \
-H 'Content-Type: application/json' \
-d "{\"id\":\"2\",\"jsonrpc\":\"2.0\",\"method\":\"eth_getLogs\",\"params\":[{\"blockhash\":\"$BLOCK_HASH\", \"address\":\"$ADDRESS\"}]}"
NOTE: you might need to retry the request in case of a 500 :)
Additional context
Response of the above curl, notice that it contains logs from block 0x01b75faf6be6e191dc6251cd7ab7f88e6a038f6767e1da9b06db245a615d2729 which violates the filter
The relay expects the filter to be passed in camel case notation: blockHash. I opened a ticket to update the rpc specification, since this filter is not documented.
Description
One can query the logs of a specific block using
eth_getLogs
with theblockhash
filter.The results of this query on the relay node unexpectedly also contain logs from other blocks.
Steps to reproduce
NOTE: you might need to retry the request in case of a 500 :)
Additional context
Response of the above curl, notice that it contains logs from block
0x01b75faf6be6e191dc6251cd7ab7f88e6a038f6767e1da9b06db245a615d2729
which violates the filterRelay logs:
Hedera network
testnet
Version
main branch
Operating system
Linux
The text was updated successfully, but these errors were encountered: