Skip to content

Commit 9312dfb

Browse files
committed
f fixes
1 parent b4f7fdf commit 9312dfb

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lightning/src/ln/channel.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11384,12 +11384,12 @@ where
1138411384
} else {
1138511385
debug_assert!(false);
1138611386
}
11387-
if self.context.minimum_depth(&self.funding).expect("set for a ready channel") > 1 {
11387+
if self.context.minimum_depth(&self.funding).expect("set for a ready channel") > 0 {
1138811388
// Reset the original short_channel_id so that we'll generate a closure
1138911389
// `channel_update` broadcast event.
1139011390
self.funding.short_channel_id = original_scid;
11391-
let err_reason = format!("Funding transaction was un-confirmed. Locked at {} confs, now have {} confs.",
11392-
self.context.minimum_depth.unwrap(), funding_tx_confirmations);
11391+
let err_reason = format!("Funding transaction was un-confirmed, originally locked at {} confs.",
11392+
self.context.minimum_depth.unwrap());
1139311393
return Err(ClosureReason::ProcessingError { err: err_reason });
1139411394
}
1139511395
}

lightning/src/ln/reorg_tests.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -386,9 +386,9 @@ fn do_test_unconf_chan(reload_node: bool, reorg_after_reload: bool, use_funding_
386386
assert_eq!(txn.len(), 1);
387387
}
388388

389-
let expected_err = "Funding transaction was un-confirmed. Locked at 6 confs, now have 0 confs.";
389+
let expected_err = "Funding transaction was un-confirmed, originaly locked at 6 confs.";
390390
if reorg_after_reload || !reload_node {
391-
handle_announce_close_broadcast_events(&nodes, 0, 1, true, "Channel closed because of an exception: Funding transaction was un-confirmed. Locked at 6 confs, now have 0 confs.");
391+
handle_announce_close_broadcast_events(&nodes, 0, 1, true, "Channel closed because of an exception: Funding transaction was un-confirmed, originally locked at 6 confs");
392392
check_added_monitors!(nodes[1], 1);
393393
let reason = ClosureReason::CounterpartyForceClosed { peer_msg: UntrustedString(format!("Channel closed because of an exception: {}", expected_err)) };
394394
check_closed_event(&nodes[1], 1, reason, &[nodes[0].node.get_our_node_id()], 100000);

0 commit comments

Comments
 (0)