Skip to content

Commit

Permalink
revert(wallet)!: rm Wallet::unbroadcast_transactions
Browse files Browse the repository at this point in the history
This is no longer relevant as we direct callers to only insert tx into
the wallet after a successful broadcast.
  • Loading branch information
evanlinjin authored and ValuedMammal committed Nov 5, 2024
1 parent 200a16d commit 00c568d
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions crates/wallet/src/wallet/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 00c568d

Please sign in to comment.