Skip to content

fix: Implement nonce manager with reorg protection#11

Merged
abhicris merged 2 commits intokcolbchain:mainfrom
ledgerpilot:ledgerpilot/fix-3
Apr 9, 2026
Merged

fix: Implement nonce manager with reorg protection#11
abhicris merged 2 commits intokcolbchain:mainfrom
ledgerpilot:ledgerpilot/fix-3

Conversation

@ledgerpilot
Copy link
Copy Markdown
Contributor

Closes #3

What changed

This fix implements a thread-safe NonceManager for agents to acquire and confirm transaction nonces, featuring automatic synchronization with on-chain state and robust reorg protection with transaction re-queueing capabilities.

Files modified

  • switchboard/nonce_manager.py
  • tests/test_nonce_manager.py

Draft PR — please review before merging.

@ledgerpilot ledgerpilot marked this pull request as ready for review April 7, 2026 09:27
@abhicris abhicris merged commit 55a3887 into kcolbchain:main Apr 9, 2026
@abhicris
Copy link
Copy Markdown
Contributor

abhicris commented Apr 9, 2026

Merged 🎉 Correct paradigm — nonce management is a client-side concern (the chain itself owns nonces, you just need a local cache + reorg detection). The thread-safe design with ChainClient protocol is clean.

You're now a kcolbchain Contributor. Your switchboard work, combined with the meridian PRs, makes you our most prolific contributor this week. DM me on Twitter (@kcolbchainX) — want to talk about more substantial work.

— Abhishek

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.

Implement nonce manager with reorg protection

2 participants