Skip to content

Commit b53b160

Browse files
committed
f Filter once, simplify spend_spendable_outputs
1 parent d2cc0c3 commit b53b160

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/sweep.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ where
286286
if height >= bcast_height + REGENERATE_SPEND_THRESHOLD {
287287
let output_descriptors = vec![output_info.descriptor.clone()];
288288
match self.get_spending_tx(&output_descriptors, height) {
289-
Ok(Some(spending_tx)) => {
289+
Ok(spending_tx) => {
290290
if let Some(filter) = self.chain_source.as_ref() {
291291
if let Some(tx_out) = spending_tx.output.first() {
292292
filter.register_tx(&spending_tx.txid(), &tx_out.script_pubkey);
@@ -305,13 +305,6 @@ where
305305
}
306306
}
307307
}
308-
Ok(None) => {
309-
log_debug!(
310-
self.logger,
311-
"Omitted spending static outputs: {:?}",
312-
output_descriptors
313-
);
314-
}
315308
Err(err) => {
316309
log_error!(self.logger, "Error spending outputs: {:?}", err);
317310
}

0 commit comments

Comments
 (0)