Skip to content

Commit 00c568d

Browse files
evanlinjinValuedMammal
authored andcommitted
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.
1 parent 200a16d commit 00c568d

File tree

1 file changed

+1
-9
lines changed
  • crates/wallet/src/wallet

1 file changed

+1
-9
lines changed

crates/wallet/src/wallet/mod.rs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ use bdk_chain::{
2929
FullScanRequest, FullScanRequestBuilder, FullScanResult, SyncRequest, SyncRequestBuilder,
3030
SyncResult,
3131
},
32-
tx_graph::{CalculateFeeError, CanonicalTx, TxGraph, TxNode, TxUpdate},
32+
tx_graph::{CalculateFeeError, CanonicalTx, TxGraph, TxUpdate},
3333
BlockId, ChainPosition, ConfirmationBlockTime, DescriptorExt, FullTxOut, Indexed,
3434
IndexedTxGraph, Merge,
3535
};
@@ -2323,14 +2323,6 @@ impl Wallet {
23232323
self.indexed_graph.graph()
23242324
}
23252325

2326-
/// Iterate over transactions in the wallet that are unseen and unanchored likely
2327-
/// because they haven't been broadcast.
2328-
pub fn unbroadcast_transactions(
2329-
&self,
2330-
) -> impl Iterator<Item = TxNode<'_, Arc<Transaction>, ConfirmationBlockTime>> {
2331-
self.tx_graph().txs_with_no_anchor_or_last_seen()
2332-
}
2333-
23342326
/// Get a reference to the inner [`KeychainTxOutIndex`].
23352327
pub fn spk_index(&self) -> &KeychainTxOutIndex<KeychainKind> {
23362328
&self.indexed_graph.index

0 commit comments

Comments
 (0)