eth_getTransactionCount is able to respond at a block that is not even mined yet #4514
Closed
1 task done
Labels
C-bug
An unexpected or incorrect behavior
Describe the bug
A script is written to keep polling the transaction count of a particular contract address on the next block. The script should expect the node to return an error before the block is mined. For Quicknode/Erigon, this is indeed the case. However, for RETH, the script can return an answer 8 seconds before the block is mined.
Steps to reproduce
Run the following python script
Run it against RETH, one will find out it is returning the answer before the block is mined, i.e. the latency is negative.
Run it against Quicknode/Erigon, one will find out it is returning the answer after the block is mined, i.e. the latency is positive.
Note that if the address is an EOA. The latency will be a positive number.
Node logs
No response
Platform(s)
Linux (x86)
What version/commit are you on?
reth 0.1.0-alpha.8 (cd71f68)
What database version are you on?
If you've built Reth from source, provide the full command you used
RUSTFLAGS="-C target-cpu=native" cargo build --profile maxperf --features jemalloc
Code of Conduct
The text was updated successfully, but these errors were encountered: