From 3dad87e9e7396874850c81d499331b4cd133b5e9 Mon Sep 17 00:00:00 2001 From: Borja Castellano Date: Fri, 16 Oct 2026 05:25:47 -0700 Subject: [PATCH] feat(key-wallet): make ManagedWalletInfo::transaction_is_settled public Lets a consumer tell whether a transaction it sent has landed: settled means in a block, chainlocked or InstantSend-locked, which a transaction the network never accepted never becomes. Co-Authored-By: Claude Opus 5.5 --- key-wallet/src/wallet/managed_wallet_info/helpers.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/key-wallet/src/wallet/managed_wallet_info/helpers.rs b/key-wallet/src/wallet/managed_wallet_info/helpers.rs index 2c92810b2..0fbfe62aa 100644 --- a/key-wallet/src/wallet/managed_wallet_info/helpers.rs +++ b/key-wallet/src/wallet/managed_wallet_info/helpers.rs @@ -207,7 +207,7 @@ impl ManagedWalletInfo { /// set and the live record have to be consulted. Keys-only accounts are /// included: they hold records too, and a settled record there is just as /// authoritative. - fn transaction_is_settled(&self, txid: &Txid) -> bool { + pub fn transaction_is_settled(&self, txid: &Txid) -> bool { self.accounts.all_accounts().into_iter().any(|account| { account.transaction_is_finalized(txid) || account