-
Notifications
You must be signed in to change notification settings - Fork 20.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Transaction lookup using eth_getTransactionReceipt returns the wrong information after reorg #28885
Comments
Thanks for filing this. I think you are correct and we'll try to get that PR merged in. |
after upgrade to geth version 1.13.11-stable-8f7eb9cc. i encountered same problems when chain reorged. geth log.
my program can't get right receipt, and wrong receipt can't automatically recover. always wrong. now, my program stucked, can't proceed.
|
update: this is my command arguments.
|
Any chance this might see a fix before the Sepolia hardfork? 🙏 Thanks 🙏 |
I've observed this issue manifesting in various edge cases. It appears to be linked to the current design of the |
There is no guarantee the side blocks along with their data(e.g. receipts) will be stored. We don't really want to provide an API to retrieve something which may or may not exist. |
This issue is fixed by #28865, will be shipped by the next release. Sorry for the chaos. |
@rjl493456442 As a result of this fix, would an Archival node that was previously running v1.13.11, and synced an incorrect txn receipt, fix its history? Or do I need to resync Archival nodes from the moment of upgrading to v1.13.11? 😬 |
System information
Geth version:
Geth/v1.13.11-stable-8f7eb9cc/linux-amd64/go1.20.7
CL client & version:
[email protected]
OS & Version: Linux
Expected behaviour
eth_getTransactionReceipt
returns the right receipt information including block hash, number, e.t.c. Even when a reorg occurs on that block and the transaction is mined in another block.Actual behaviour
eth_getTransactionReceipt
sometimes returns the receipt with information from the reorg'd block. This causes our internal systems to fail. This is especially observed in the sepolia/holesky testnets since 1.13.11 is required for the upcoming hardfork.Steps to reproduce the behaviour
Backtrace
Logs that had reorg
When submitting logs: please submit them as text and not screenshots.
The text was updated successfully, but these errors were encountered: