Skip to content

Commit 5b8d1b1

Browse files
committed
fix: add log when resolving
1 parent 28d628f commit 5b8d1b1

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

src/commands.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
#[cfg(feature = "silent-payments")]
1717
use {crate::utils::parse_sp_code_value_pairs, bdk_sp::encoding::SilentPaymentCode};
1818

19-
2019
use bdk_wallet::bitcoin::{
2120
Address, Network, OutPoint, ScriptBuf,
2221
bip32::{DerivationPath, Xpriv},

src/handlers.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ use crate::utils::*;
2525
#[cfg(feature = "redb")]
2626
use bdk_redb::Store as RedbStore;
2727
use bdk_wallet::bip39::{Language, Mnemonic};
28-
use bdk_wallet::bitcoin::ScriptBuf;
2928
use bdk_wallet::bitcoin::base64::Engine;
3029
use bdk_wallet::bitcoin::base64::prelude::BASE64_STANDARD;
3130
use bdk_wallet::bitcoin::{
@@ -552,13 +551,14 @@ pub async fn handle_offline_wallet_subcommand(
552551
tx_builder.drain_wallet().drain_to(recipients[0].0.clone());
553552
} else {
554553
#[allow(unused_mut)]
555-
let mut recipients: Vec<(ScriptBuf, Amount)> = recipients
554+
let mut recipients: Vec<_> = recipients
556555
.into_iter()
557556
.map(|(script, amount)| (script, Amount::from_sat(amount)))
558557
.collect();
559558

560559
#[cfg(feature = "dns_payment")]
561560
for recipient in dns_recipients {
561+
println!("Resolving DNS instructions for recipient {}", recipient.0);
562562
let amount = Amount::from_sat(recipient.1);
563563
let (resolver, instructions) =
564564
parse_dns_instructions(&recipient.0, cli_opts.network, &dns_resolver)

0 commit comments

Comments
 (0)