Skip to content

Conversation

@jayantk
Copy link
Contributor

@jayantk jayantk commented Jul 18, 2025

Summary

We are seeing high latency on blast responses. After investigating, @tejasbadadare and I determined that the root cause is that we are incorrectly incrementing the local nonce on occasions where we do not send the transaction to the RPC. This specifically happens when a transaction reverts -- we are incrementing the nonce before identifying that the tx reverts.

This PR adds an estimate_gas call to catch reverts prior to filling the nonce in the transaction.

How has this been tested?

  • Current tests cover my changes
  • Added new tests
  • Manually tested the code

@jayantk jayantk requested a review from tejasbadadare as a code owner July 18, 2025 18:55
@vercel
Copy link

vercel bot commented Jul 18, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
api-reference ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 18, 2025 7:03pm
component-library ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 18, 2025 7:03pm
developer-hub ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 18, 2025 7:03pm
entropy-debugger ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 18, 2025 7:03pm
entropy-explorer ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 18, 2025 7:03pm
insights ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 18, 2025 7:03pm
proposals ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 18, 2025 7:03pm
staking ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 18, 2025 7:03pm

match self {
SubmitTxError::GasUsageEstimateError(e) => {
write!(f, "Error estimating gas for reveal: {e:?}")
SubmitTxError::GasUsageEstimateError(tx, e) => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

drive-by for easier debugging

@tejasbadadare tejasbadadare merged commit af5d5f8 into main Jul 18, 2025
11 checks passed
@tejasbadadare tejasbadadare deleted the fortuna_blast_fix branch July 18, 2025 20:12
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.

2 participants