@@ -9,7 +9,7 @@ use lightning::chain::chaininterface::{BroadcasterInterface, ConfirmationTarget,
99use lightning:: chain:: WatchedOutput ;
1010use lightning:: chain:: { Confirm , Filter } ;
1111
12- use bdk:: blockchain:: { Blockchain , EsploraBlockchain , GetBlockHash , GetHeight , GetTx } ;
12+ use bdk:: blockchain:: { Blockchain , EsploraBlockchain } ;
1313use bdk:: database:: BatchDatabase ;
1414use bdk:: wallet:: AddressIndex ;
1515use 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-
347320fn num_blocks_from_conf_target ( confirmation_target : ConfirmationTarget ) -> usize {
348321 match confirmation_target {
349322 ConfirmationTarget :: Background => 12 ,
0 commit comments