]> Untitled Git - bdk-cli/commitdiff
fix: add log when resolving
authorSonkeng Maldini <sdmg15@pm.me>
Tue, 26 May 2026 11:14:17 +0000 (12:14 +0100)
committerVihiga Tyonum <withtvpeter@gmail.com>
Wed, 8 Jul 2026 08:13:16 +0000 (09:13 +0100)
src/commands.rs
src/handlers.rs

index 49a74f16512fb71485aa81b585e5e7c4cd20e6aa..6e509f8cca9a4eb298e29543d86d9a59b3768d89 100644 (file)
@@ -16,7 +16,6 @@
 #[cfg(feature = "silent-payments")]
 use {crate::utils::parse_sp_code_value_pairs, bdk_sp::encoding::SilentPaymentCode};
 
-
 use bdk_wallet::bitcoin::{
     Address, Network, OutPoint, ScriptBuf,
     bip32::{DerivationPath, Xpriv},
index d472de558d76b8576a24636863829e8726560e0f..68b1afca81fc0885cc3235cc5ccc600010730052 100644 (file)
@@ -25,7 +25,6 @@ use crate::utils::*;
 #[cfg(feature = "redb")]
 use bdk_redb::Store as RedbStore;
 use bdk_wallet::bip39::{Language, Mnemonic};
-use bdk_wallet::bitcoin::ScriptBuf;
 use bdk_wallet::bitcoin::base64::Engine;
 use bdk_wallet::bitcoin::base64::prelude::BASE64_STANDARD;
 use bdk_wallet::bitcoin::{
@@ -558,13 +557,14 @@ pub async fn handle_offline_wallet_subcommand(
                 }
             } else {
                 #[allow(unused_mut)]
-                let mut recipients: Vec<(ScriptBuf, Amount)> = recipients
+                let mut recipients: Vec<_> = recipients
                     .into_iter()
                     .map(|(script, amount)| (script, Amount::from_sat(amount)))
                     .collect();
 
                 #[cfg(feature = "dns_payment")]
                 for recipient in dns_recipients {
+                    println!("Resolving DNS instructions for recipient {}", recipient.0);
                     let amount = Amount::from_sat(recipient.1);
                     let (resolver, instructions) =
                         parse_dns_instructions(&recipient.0, cli_opts.network, &dns_resolver)