Skip to content
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

Replacement transaction underpriced #45

Open
piwonskp opened this issue Oct 29, 2023 · 1 comment
Open

Replacement transaction underpriced #45

piwonskp opened this issue Oct 29, 2023 · 1 comment

Comments

@piwonskp
Copy link

piwonskp commented Oct 29, 2023

I'm using tx-fuzz through kurtosis and generating a lot of transactions. When there's too many transactions sent tx-fuzz crashes displaying Replacement transaction underpriced. It seems to be the problem with setting nonce when a transaction from previous iteration is still pending. In that case NonceAt may return a nonce of a pending transaction.

I see two potential fixes here:

  • Track nonce locally instead of making rpc call each time a transaction is created
  • Recover from crashes: ignore errors thrown by node and keep fuzzing

The third, and imo the best, would be a hybrid approach: tracking nonce locally and falling back to rpc method when an exception

@aodhgan
Copy link

aodhgan commented Jan 2, 2025

also seeing this

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

No branches or pull requests

2 participants