Skip to content

eth/txpool, backend: backend returns txpool's error through rpc resp and success rpc resp for tx already tracked #31528

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

Conversation

zouxyan
Copy link

@zouxyan zouxyan commented Mar 30, 2025

please check issue#31527 😊

@zouxyan zouxyan force-pushed the feat/api-backend/failed-tx-error-inside-resp-if-locals-on branch from 637308f to 4e55cf0 Compare March 30, 2025 10:09
@zouxyan zouxyan changed the title eth/txpool, backend: txtracker tracks no repeated tx and return txpool's error through rpc resp eth/txpool, backend: backend returns txpool's error through rpc resp and success rpc resp for tx already tracked Mar 30, 2025
@rjl493456442
Copy link
Member

What kind of error did you get? We had a fix for the stale transactions #31473, probably it's enough for your case?

@zouxyan
Copy link
Author

zouxyan commented Mar 31, 2025

What kind of error did you get? We had a fix for the stale transactions #31473, probably it's enough for your case?

No, #31473 not enough 😫.

I described the specific scenario here #31527 . I sent a transaction when my account has not enough ether to pay the transaction gas. But 1.15.5 geth node has no error inside rpc response. I thought my transaction sent well. After a while I found no transaction has been sent and nothing found on Etherscan. And then I found that no error comes back with rpc eth_sendRawTransaction response if geth has locals on. 🤔

Over here discards the error from txpool when locals is on :

if err != nil && locals == nil {

@MariusVanDerWijden
Copy link
Member

Yeah thats kind of a philosophical question. Are you expecting your transaction to be executed at some point once your account is funded? If so, our behavior is expected. Are you expecting to be notified if your transaction can not be executed RIGHT NOW, then our behavior is unexpected. It looks like some people expect the former while others expect the latter. Maybe we should discuss in triage

@zouxyan
Copy link
Author

zouxyan commented Apr 1, 2025

Yeah thats kind of a philosophical question. Are you expecting your transaction to be executed at some point once your account is funded? If so, our behavior is expected. Are you expecting to be notified if your transaction can not be executed RIGHT NOW, then our behavior is unexpected. It looks like some people expect the former while others expect the latter. Maybe we should discuss in triage

🙋I'm expecting the latter.

From version 1.15.4, geth returns no rpc error from txpool's stateful validation with locals tracker on. Before that version, rpc client received a specific invalid error from geth. And I think it's kinda an Inappropriate rpc interface behavior change.

image

So maybe we can find a way to straight it up. 🙏

@rjl493456442
Copy link
Member

This pull request is outdated. Please check the latest master branch to see if your issue has been resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants