Skip to content

Treat None as transient in BtcCancelled - #1232

Draft
binarybaron wants to merge 2 commits into
masterfrom
fix/bob-refund-stale-lock-status
Draft

binarybaron wants to merge 2 commits into
masterfrom
fix/bob-refund-stale-lock-status

Conversation

@binarybaron

@binarybaron binarybaron commented Oct 13, 2026 •

Copy link
Copy Markdown

In swap/src/protocol/bob/swap.rs, next_state can panic in BobState::BtcCancelled before it publishes the BTC refund. Separate wallet reads can report a confirmed tx_cancel and a stale tx_lock status. current_epoch then returns ExpiredTimelocks::None, which causes a permanent error and a panic in .expect(...).

Update current_epoch to recognize confirmed tx_cancel as proof that the cancel timelock expired. Treat None as transient in BtcCancelled, and propagate retry errors instead of calling .expect(...).

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

Deploying eigenwallet-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 4210314
Status: ✅  Deploy successful!
Preview URL: https://0648de3c.eigenwallet-docs.pages.dev
Branch Preview URL: https://fix-bob-refund-stale-lock-st.eigenwallet-docs.pages.dev

View logs

This branch has not been deployed

No deployments
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.

1 participant