We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
spend_spendable_outputs
1 parent a7a979c commit d476470Copy full SHA for d476470
1 file changed
src/sweep.rs
@@ -286,7 +286,7 @@ where
286
if height >= bcast_height + REGENERATE_SPEND_THRESHOLD {
287
let output_descriptors = vec![output_info.descriptor.clone()];
288
match self.get_spending_tx(&output_descriptors, height) {
289
- Ok(Some(spending_tx)) => {
+ Ok(spending_tx) => {
290
if let Some(filter) = self.chain_source.as_ref() {
291
if let Some(tx_out) = spending_tx.output.first() {
292
filter.register_tx(&spending_tx.txid(), &tx_out.script_pubkey);
@@ -305,13 +305,6 @@ where
305
}
306
307
308
- Ok(None) => {
309
- log_debug!(
310
- self.logger,
311
- "Omitted spending static outputs: {:?}",
312
- output_descriptors
313
- );
314
- }
315
Err(err) => {
316
log_error!(self.logger, "Error spending outputs: {:?}", err);
317
0 commit comments