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

fix(sidecar): bundle verification logic #179

Merged
merged 1 commit into from
Aug 1, 2024

Conversation

thedevbirb
Copy link
Contributor

@thedevbirb thedevbirb commented Aug 1, 2024

In the sidecar we've recently introduced bundle support, which need special nonce and balance checks when verified.

In particular, when processing the next transaction in the bundle we should increment the user nonce and decrease its balance, however this operationis done before the transaction validation and not at the end of the loop, causing an off-by-one error in nonce checks (NonceTooLow)

@merklefruit
Copy link
Collaborator

merklefruit commented Aug 1, 2024

Great catch! (Pic unrelated)

Off_By_One

@merklefruit merklefruit added C: bolt-sidecar Component: bolt-sidecar T: bug Type: Bug labels Aug 1, 2024
@thedevbirb
Copy link
Contributor Author

Proof of ItWorks™️ https://dora.helder-devnets.xyz/slot/296234: three preconfs from the same address

@thedevbirb thedevbirb merged commit 368983d into unstable Aug 1, 2024
2 checks passed
@thedevbirb thedevbirb deleted the fix/sidecar/bundle-validation-logic branch August 1, 2024 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: bolt-sidecar Component: bolt-sidecar T: bug Type: Bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fix(sidecar): investigate NonceTooLow error when sending requests with RPC through Metamask
2 participants