From c8b49e9dd698b04d8928741469e7d98aaf6216bb Mon Sep 17 00:00:00 2001 From: TaprootFreak <142087526+TaprootFreak@users.noreply.github.com> Date: Wed, 4 Mar 2026 20:35:59 +0100 Subject: [PATCH] fix: sync spark wallet leaves before transaction lookup (#3355) Payout completion check calls isTxComplete() which uses getTransaction() without syncing leaves first. This causes wallet.getTransfer() to fail silently, leaving PayoutOrders stuck in PayoutPending status indefinitely. --- src/integration/blockchain/spark/spark-client.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/integration/blockchain/spark/spark-client.ts b/src/integration/blockchain/spark/spark-client.ts index 704a4f4741..73f29e4b12 100644 --- a/src/integration/blockchain/spark/spark-client.ts +++ b/src/integration/blockchain/spark/spark-client.ts @@ -81,6 +81,9 @@ export class SparkClient extends BlockchainClient { async getTransaction(txId: string): Promise { const wallet = await this.wallet; + + await this.syncLeaves(wallet); + const transfer = await wallet.getTransfer(txId); if (!transfer) {