Skip to content

fix: stop withdrawal status regressions after scheduling and in the confirmation monitor - #667

Merged
Jossec101 merged 1 commit into
mainfrom
wallet-events/fix-withdrawal-state
Nov 12, 2026
Merged

Jossec101 merged 1 commit into
mainfrom
wallet-events/fix-withdrawal-state

Conversation

@Jossec101

@Jossec101 Jossec101 commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Stack: 1/4 (bottom, on main) · next #668

What

  • Withdrawals page (CreateJob) and Transfer funds modal (CreateJobForFunds) no longer call Update with their copy of the request after scheduling PerformWithdrawalJob
  • MonitorWithdrawalsJob skips a withdrawal whose tx NBXplorer does not know (evicted/replaced) and logs per-request errors instead of throwing JobExecutionException

Why

  • The job can already have written FinalizingPSBT or the broadcast TxId; the stale write (loaded before scheduling, nothing new to persist) reverted the status and wiped the TxId
  • A null GetTransactionAsync result threw a NullReferenceException, and the rethrow aborted the run for every remaining withdrawal, so none of them got confirmed
  • The wallet event stream (SubscribeWalletEvents streams a wallet's withdrawal events over gRPC #668) would surface both as events going backwards or never arriving

Tested

…onfirmation monitor

- Withdrawals page and Transfer funds modal no longer persist their copy of the request after scheduling
  PerformWithdrawalJob; the job could already have written FinalizingPSBT or the broadcast TxId, which that
  stale write reverted.
- MonitorWithdrawalsJob skips a withdrawal whose tx NBXplorer does not know (evicted/replaced) and logs
  per-request errors instead of aborting the run for every remaining withdrawal.
@Jossec101
Jossec101 merged commit 9243415 into main Nov 12, 2026
6 checks passed
@Jossec101
Jossec101 deleted the wallet-events/fix-withdrawal-state branch November 12, 2026 09:31
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