Skip to content

Commit 2eea1fe

Browse files
committed
f Drop unnecessary trait impls
1 parent 3a5cefa commit 2eea1fe

File tree

1 file changed

+1
-28
lines changed

1 file changed

+1
-28
lines changed

src/access.rs

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use lightning::chain::chaininterface::{BroadcasterInterface, ConfirmationTarget,
99
use lightning::chain::WatchedOutput;
1010
use lightning::chain::{Confirm, Filter};
1111

12-
use bdk::blockchain::{Blockchain, EsploraBlockchain, GetBlockHash, GetHeight, GetTx};
12+
use bdk::blockchain::{Blockchain, EsploraBlockchain};
1313
use bdk::database::BatchDatabase;
1414
use bdk::wallet::AddressIndex;
1515
use bdk::{SignOptions, SyncOptions};
@@ -317,33 +317,6 @@ where
317317
}
318318
}
319319

320-
impl<D> GetHeight for LdkLiteChainAccess<D>
321-
where
322-
D: BatchDatabase,
323-
{
324-
fn get_height(&self) -> Result<u32, bdk::Error> {
325-
self.blockchain.get_height()
326-
}
327-
}
328-
329-
impl<D> GetBlockHash for LdkLiteChainAccess<D>
330-
where
331-
D: BatchDatabase,
332-
{
333-
fn get_block_hash(&self, height: u64) -> Result<BlockHash, bdk::Error> {
334-
self.blockchain.get_block_hash(height)
335-
}
336-
}
337-
338-
impl<D> GetTx for LdkLiteChainAccess<D>
339-
where
340-
D: BatchDatabase,
341-
{
342-
fn get_tx(&self, txid: &Txid) -> Result<Option<Transaction>, bdk::Error> {
343-
self.blockchain.get_tx(txid)
344-
}
345-
}
346-
347320
fn num_blocks_from_conf_target(confirmation_target: ConfirmationTarget) -> usize {
348321
match confirmation_target {
349322
ConfirmationTarget::Background => 12,

0 commit comments

Comments
 (0)