Skip to content

Commit 342698f

Browse files
authored
Merge pull request #1485 from ViktorTigerstrom/2022-05-add-force-close-param
Add missing `counterparty_node_id` in `force_close_channel` calls
2 parents a5629e5 + d543ac0 commit 342698f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lightning/src/ln/functional_tests.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2178,7 +2178,7 @@ fn channel_monitor_network_test() {
21782178
send_payment(&nodes[0], &vec!(&nodes[1], &nodes[2], &nodes[3], &nodes[4])[..], 8000000);
21792179

21802180
// Simple case with no pending HTLCs:
2181-
nodes[1].node.force_close_channel(&chan_1.2).unwrap();
2181+
nodes[1].node.force_close_channel(&chan_1.2, &nodes[0].node.get_our_node_id()).unwrap();
21822182
check_added_monitors!(nodes[1], 1);
21832183
check_closed_broadcast!(nodes[1], true);
21842184
{
@@ -2199,7 +2199,7 @@ fn channel_monitor_network_test() {
21992199

22002200
// Simple case of one pending HTLC to HTLC-Timeout (note that the HTLC-Timeout is not
22012201
// broadcasted until we reach the timelock time).
2202-
nodes[1].node.force_close_channel(&chan_2.2).unwrap();
2202+
nodes[1].node.force_close_channel(&chan_2.2, &nodes[2].node.get_our_node_id()).unwrap();
22032203
check_closed_broadcast!(nodes[1], true);
22042204
check_added_monitors!(nodes[1], 1);
22052205
{
@@ -2238,7 +2238,7 @@ fn channel_monitor_network_test() {
22382238

22392239
// nodes[3] gets the preimage, but nodes[2] already disconnected, resulting in a nodes[2]
22402240
// HTLC-Timeout and a nodes[3] claim against it (+ its own announces)
2241-
nodes[2].node.force_close_channel(&chan_3.2).unwrap();
2241+
nodes[2].node.force_close_channel(&chan_3.2, &nodes[3].node.get_our_node_id()).unwrap();
22422242
check_added_monitors!(nodes[2], 1);
22432243
check_closed_broadcast!(nodes[2], true);
22442244
let node2_commitment_txid;

0 commit comments

Comments
 (0)