mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-25 15:20:24 +01:00
Merge pull request #1485 from ViktorTigerstrom/2022-05-add-force-close-param
Add missing `counterparty_node_id` in `force_close_channel` calls
This commit is contained in:
commit
342698fe5a
1 changed files with 3 additions and 3 deletions
|
@ -2178,7 +2178,7 @@ fn channel_monitor_network_test() {
|
||||||
send_payment(&nodes[0], &vec!(&nodes[1], &nodes[2], &nodes[3], &nodes[4])[..], 8000000);
|
send_payment(&nodes[0], &vec!(&nodes[1], &nodes[2], &nodes[3], &nodes[4])[..], 8000000);
|
||||||
|
|
||||||
// Simple case with no pending HTLCs:
|
// Simple case with no pending HTLCs:
|
||||||
nodes[1].node.force_close_channel(&chan_1.2).unwrap();
|
nodes[1].node.force_close_channel(&chan_1.2, &nodes[0].node.get_our_node_id()).unwrap();
|
||||||
check_added_monitors!(nodes[1], 1);
|
check_added_monitors!(nodes[1], 1);
|
||||||
check_closed_broadcast!(nodes[1], true);
|
check_closed_broadcast!(nodes[1], true);
|
||||||
{
|
{
|
||||||
|
@ -2199,7 +2199,7 @@ fn channel_monitor_network_test() {
|
||||||
|
|
||||||
// Simple case of one pending HTLC to HTLC-Timeout (note that the HTLC-Timeout is not
|
// Simple case of one pending HTLC to HTLC-Timeout (note that the HTLC-Timeout is not
|
||||||
// broadcasted until we reach the timelock time).
|
// broadcasted until we reach the timelock time).
|
||||||
nodes[1].node.force_close_channel(&chan_2.2).unwrap();
|
nodes[1].node.force_close_channel(&chan_2.2, &nodes[2].node.get_our_node_id()).unwrap();
|
||||||
check_closed_broadcast!(nodes[1], true);
|
check_closed_broadcast!(nodes[1], true);
|
||||||
check_added_monitors!(nodes[1], 1);
|
check_added_monitors!(nodes[1], 1);
|
||||||
{
|
{
|
||||||
|
@ -2238,7 +2238,7 @@ fn channel_monitor_network_test() {
|
||||||
|
|
||||||
// nodes[3] gets the preimage, but nodes[2] already disconnected, resulting in a nodes[2]
|
// nodes[3] gets the preimage, but nodes[2] already disconnected, resulting in a nodes[2]
|
||||||
// HTLC-Timeout and a nodes[3] claim against it (+ its own announces)
|
// HTLC-Timeout and a nodes[3] claim against it (+ its own announces)
|
||||||
nodes[2].node.force_close_channel(&chan_3.2).unwrap();
|
nodes[2].node.force_close_channel(&chan_3.2, &nodes[3].node.get_our_node_id()).unwrap();
|
||||||
check_added_monitors!(nodes[2], 1);
|
check_added_monitors!(nodes[2], 1);
|
||||||
check_closed_broadcast!(nodes[2], true);
|
check_closed_broadcast!(nodes[2], true);
|
||||||
let node2_commitment_txid;
|
let node2_commitment_txid;
|
||||||
|
|
Loading…
Add table
Reference in a new issue