From: Sonkeng Maldini Date: Tue, 26 May 2026 11:14:17 +0000 (+0100) Subject: fix: add log when resolving X-Git-Url: http://internal-gitweb-vhost/blockdata/script/encode/-script/display/struct.ScriptHash.html?a=commitdiff_plain;h=6ea1b217a695ba4bb9f1a27b4b2ca1e49fc68801;p=bdk-cli fix: add log when resolving --- diff --git a/src/commands.rs b/src/commands.rs index 49a74f1..6e509f8 100644 --- a/src/commands.rs +++ b/src/commands.rs @@ -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}, diff --git a/src/handlers.rs b/src/handlers.rs index d472de5..68b1afc 100644 --- a/src/handlers.rs +++ b/src/handlers.rs @@ -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)