From 00c568d4c5e020439c7f586075d3aa2003cd4b10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BF=97=E5=AE=87?= Date: Wed, 9 Oct 2024 14:19:58 +0000 Subject: [PATCH] revert(wallet)!: rm `Wallet::unbroadcast_transactions` This is no longer relevant as we direct callers to only insert tx into the wallet after a successful broadcast. --- crates/wallet/src/wallet/mod.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/crates/wallet/src/wallet/mod.rs b/crates/wallet/src/wallet/mod.rs index a5178eb9e..7df48f071 100644 --- a/crates/wallet/src/wallet/mod.rs +++ b/crates/wallet/src/wallet/mod.rs @@ -29,7 +29,7 @@ use bdk_chain::{ FullScanRequest, FullScanRequestBuilder, FullScanResult, SyncRequest, SyncRequestBuilder, SyncResult, }, - tx_graph::{CalculateFeeError, CanonicalTx, TxGraph, TxNode, TxUpdate}, + tx_graph::{CalculateFeeError, CanonicalTx, TxGraph, TxUpdate}, BlockId, ChainPosition, ConfirmationBlockTime, DescriptorExt, FullTxOut, Indexed, IndexedTxGraph, Merge, }; @@ -2323,14 +2323,6 @@ impl Wallet { self.indexed_graph.graph() } - /// Iterate over transactions in the wallet that are unseen and unanchored likely - /// because they haven't been broadcast. - pub fn unbroadcast_transactions( - &self, - ) -> impl Iterator, ConfirmationBlockTime>> { - self.tx_graph().txs_with_no_anchor_or_last_seen() - } - /// Get a reference to the inner [`KeychainTxOutIndex`]. pub fn spk_index(&self) -> &KeychainTxOutIndex { &self.indexed_graph.index