Skip to content

Commit

Permalink
Do not panic on attempting to force-close a subchannel
Browse files Browse the repository at this point in the history
  • Loading branch information
klochowicz authored and luckysori committed Oct 24, 2023
1 parent 695cec5 commit ae947c0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion dlc-manager/src/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,13 @@ macro_rules! check_for_timed_out_channels {
let is_timed_out = timeout < $manager.time.unix_time_now();
if is_timed_out {
let sub_channel = if channel.is_sub_channel() {
unimplemented!();
log::info!(
"Skipping force-closure of subchannel {}: not supported",
bitcoin::hashes::hex::ToHex::to_hex(&channel.channel_id[..])
);
continue;

// TODO: Implement subchannel force closing
// let s = get_sub_channel_in_state!(
// $manager,
// channel.channel_id,
Expand Down

0 comments on commit ae947c0

Please sign in to comment.