Skip to content

Commit e9f4f35

Browse files
committed
f - proper return values
1 parent b3453b7 commit e9f4f35

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lightning/src/ln/channel.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9180,8 +9180,8 @@ impl<SP: Deref> FundedChannel<SP> where
91809180
return Ok(self.get_announcement_sigs(node_signer, chain_hash, user_config, best_block.height, logger));
91819181
}
91829182

9183-
// TODO: Close channel?
9184-
return Ok(None);
9183+
let err = "unknown splice funding txid";
9184+
return Err(ChannelError::close(err.to_string()));
91859185
}
91869186
}
91879187

lightning/src/ln/channelmanager.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9669,7 +9669,7 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
96699669
},
96709670
};
96719671

9672-
Err(MsgHandleErrInternal::send_err_msg_no_close("TODO(splicing): Splicing is not implemented (splice_locked)".to_owned(), msg.channel_id))
9672+
Ok(())
96739673
}
96749674

96759675
/// Process pending events from the [`chain::Watch`], returning whether any events were processed.

0 commit comments

Comments
 (0)