File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -705,7 +705,6 @@ impl Node {
705
705
Ok ( funding_address)
706
706
}
707
707
708
- #[ cfg( test) ]
709
708
/// Retrieve the current on-chain balance.
710
709
pub fn on_chain_balance ( & mut self ) -> Result < bdk:: Balance , Error > {
711
710
self . wallet . get_balance ( )
@@ -787,7 +786,9 @@ impl Node {
787
786
}
788
787
}
789
788
790
- #[ cfg( test) ]
789
+ /// Sync the LDK and BDK wallets with the current chain state.
790
+ ///
791
+ /// Note that the wallets will be also synced regularly in the background.
791
792
pub fn sync_wallets ( & self ) -> Result < ( ) , Error > {
792
793
let runtime_lock = self . running . read ( ) . unwrap ( ) ;
793
794
if runtime_lock. is_none ( ) {
Original file line number Diff line number Diff line change @@ -164,7 +164,6 @@ where
164
164
Ok ( address_info. address )
165
165
}
166
166
167
- #[ cfg( any( test) ) ]
168
167
pub ( crate ) fn get_balance ( & self ) -> Result < bdk:: Balance , Error > {
169
168
Ok ( self . inner . lock ( ) . unwrap ( ) . get_balance ( ) ?)
170
169
}
You can’t perform that action at this time.
0 commit comments