projects
/
ldk-sample
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
878c70a
)
Drop unused `UtxoLookup` impl for `BitcoindClient`
author
Matt Corallo
<git@bluematt.me>
Sat, 21 Oct 2023 22:12:02 +0000
(22:12 +0000)
committer
Matt Corallo
<git@bluematt.me>
Mon, 13 Nov 2023 23:02:34 +0000
(23:02 +0000)
src/bitcoind_client.rs
patch
|
blob
|
history
diff --git
a/src/bitcoind_client.rs
b/src/bitcoind_client.rs
index 9f28015cf5ed0326190ac88b79b67f736c8de4a0..67b42ef6c5a82b69aad12e10110ed8d4f989a2d4 100644
(file)
--- 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::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;
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<Vec<Utxo>, ()> {
let utxos = tokio::task::block_in_place(move || {
impl WalletSource for BitcoindClient {
fn list_confirmed_utxos(&self) -> Result<Vec<Utxo>, ()> {
let utxos = tokio::task::block_in_place(move || {