mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-25 15:20:24 +01:00
Fix two compiler warnings introduced in a51dbb4a4d
This commit is contained in:
parent
90816dd9d8
commit
f2280e580a
1 changed files with 2 additions and 2 deletions
|
@ -4471,7 +4471,7 @@ mod tests {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_update_fee_that_funder_cannot_afford() {
|
fn test_update_fee_that_funder_cannot_afford() {
|
||||||
let mut nodes = create_network(2);
|
let nodes = create_network(2);
|
||||||
let channel_value = 1888;
|
let channel_value = 1888;
|
||||||
let chan = create_announced_chan_between_nodes_with_value(&nodes, 0, 1, channel_value, 700000);
|
let chan = create_announced_chan_between_nodes_with_value(&nodes, 0, 1, channel_value, 700000);
|
||||||
let channel_id = chan.2;
|
let channel_id = chan.2;
|
||||||
|
@ -4506,7 +4506,7 @@ mod tests {
|
||||||
|
|
||||||
let update2_msg = get_htlc_update_msgs!(nodes[0], nodes[1].node.get_our_node_id());
|
let update2_msg = get_htlc_update_msgs!(nodes[0], nodes[1].node.get_our_node_id());
|
||||||
|
|
||||||
nodes[1].node.handle_update_fee(&nodes[0].node.get_our_node_id(), &update2_msg.update_fee.unwrap());
|
nodes[1].node.handle_update_fee(&nodes[0].node.get_our_node_id(), &update2_msg.update_fee.unwrap()).unwrap();
|
||||||
|
|
||||||
//While producing the commitment_signed response after handling a received update_fee request the
|
//While producing the commitment_signed response after handling a received update_fee request the
|
||||||
//check to see if the funder, who sent the update_fee request, can afford the new fee (funder_balance >= fee+channel_reserve)
|
//check to see if the funder, who sent the update_fee request, can afford the new fee (funder_balance >= fee+channel_reserve)
|
||||||
|
|
Loading…
Add table
Reference in a new issue