File tree 1 file changed +4
-4
lines changed 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -864,8 +864,8 @@ impl Node {
864
864
pub fn send_to_onchain_address (
865
865
& self , address : & bitcoin:: Address , amount_sats : u64 ,
866
866
) -> Result < Txid , Error > {
867
- let runtime_lock = self . running . read ( ) . unwrap ( ) ;
868
- if runtime_lock . is_none ( ) {
867
+ let rt_lock = self . runtime . read ( ) . unwrap ( ) ;
868
+ if rt_lock . is_none ( ) {
869
869
return Err ( Error :: NotRunning ) ;
870
870
}
871
871
@@ -879,8 +879,8 @@ impl Node {
879
879
880
880
/// Send an on-chain payment to the given address, draining all the available funds.
881
881
pub fn send_all_to_onchain_address ( & self , address : & bitcoin:: Address ) -> Result < Txid , Error > {
882
- let runtime_lock = self . running . read ( ) . unwrap ( ) ;
883
- if runtime_lock . is_none ( ) {
882
+ let rt_lock = self . runtime . read ( ) . unwrap ( ) ;
883
+ if rt_lock . is_none ( ) {
884
884
return Err ( Error :: NotRunning ) ;
885
885
}
886
886
You can’t perform that action at this time.
0 commit comments