]> Untitled Git - bdk/commitdiff
revert(wallet)!: rm `Wallet::unbroadcast_transactions`
author志宇 <hello@evanlinjin.me>
Wed, 9 Oct 2024 14:19:58 +0000 (14:19 +0000)
committervalued mammal <valuedmammal@protonmail.com>
Tue, 5 Nov 2024 19:14:36 +0000 (14:14 -0500)
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

index a5178eb9e4822f84635db32598c5a5d68ab95dd3..7df48f0716cd57c42e2d8132012e7e44e1c91a15 100644 (file)
@@ -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<Item = TxNode<'_, Arc<Transaction>, ConfirmationBlockTime>> {
-        self.tx_graph().txs_with_no_anchor_or_last_seen()
-    }
-
     /// Get a reference to the inner [`KeychainTxOutIndex`].
     pub fn spk_index(&self) -> &KeychainTxOutIndex<KeychainKind> {
         &self.indexed_graph.index