From: Matt Corallo Date: Sat, 21 Oct 2023 22:12:02 +0000 (+0000) Subject: Drop unused `UtxoLookup` impl for `BitcoindClient` X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=7ef8932dc19e21ba2be0903d7a174d27de3f1989;p=ldk-sample Drop unused `UtxoLookup` impl for `BitcoindClient` --- diff --git a/src/bitcoind_client.rs b/src/bitcoind_client.rs index 9f28015..67b42ef 100644 --- a/src/bitcoind_client.rs +++ b/src/bitcoind_client.rs @@ -15,7 +15,6 @@ use bitcoin::{OutPoint, Script, TxOut, WPubkeyHash, XOnlyPublicKey}; use lightning::chain::chaininterface::{BroadcasterInterface, ConfirmationTarget, FeeEstimator}; use lightning::events::bump_transaction::{Utxo, WalletSource}; use lightning::log_error; -use lightning::routing::utxo::{UtxoLookup, UtxoResult}; use lightning::util::logger::Logger; use lightning_block_sync::http::HttpEndpoint; use lightning_block_sync::rpc::RpcClient; @@ -296,13 +295,6 @@ impl BroadcasterInterface for BitcoindClient { } } -impl UtxoLookup for BitcoindClient { - fn get_utxo(&self, _genesis_hash: &BlockHash, _short_channel_id: u64) -> UtxoResult { - // P2PGossipSync takes None for a UtxoLookup, so this will never be called. - todo!(); - } -} - impl WalletSource for BitcoindClient { fn list_confirmed_utxos(&self) -> Result, ()> { let utxos = tokio::task::block_in_place(move || {