Skip to content

Commit 8b7505d

Browse files
committed
Remove unused muts in channel tests
1 parent 3d6f509 commit 8b7505d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lightning/src/ln/channel.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -10311,7 +10311,7 @@ mod tests {
1031110311
// Make sure A's dust limit is as we expect.
1031210312
let open_channel_msg = node_a_chan.get_open_channel(ChainHash::using_genesis_block(network));
1031310313
let node_b_node_id = PublicKey::from_secret_key(&secp_ctx, &SecretKey::from_slice(&[7; 32]).unwrap());
10314-
let mut node_b_chan = InboundV1Channel::<&TestKeysInterface>::new(&feeest, &&keys_provider, &&keys_provider, node_b_node_id, &channelmanager::provided_channel_type_features(&config), &channelmanager::provided_init_features(&config), &open_channel_msg, 7, &config, 0, &&logger, /*is_0conf=*/false).unwrap();
10314+
let node_b_chan = InboundV1Channel::<&TestKeysInterface>::new(&feeest, &&keys_provider, &&keys_provider, node_b_node_id, &channelmanager::provided_channel_type_features(&config), &channelmanager::provided_init_features(&config), &open_channel_msg, 7, &config, 0, &&logger, /*is_0conf=*/false).unwrap();
1031510315

1031610316
// Node B --> Node A: accept channel, explicitly setting B's dust limit.
1031710317
let mut accept_channel_msg = node_b_chan.accept_inbound_channel();
@@ -10443,7 +10443,7 @@ mod tests {
1044310443
// Create Node B's channel by receiving Node A's open_channel message
1044410444
let open_channel_msg = node_a_chan.get_open_channel(chain_hash);
1044510445
let node_b_node_id = PublicKey::from_secret_key(&secp_ctx, &SecretKey::from_slice(&[7; 32]).unwrap());
10446-
let mut node_b_chan = InboundV1Channel::<&TestKeysInterface>::new(&feeest, &&keys_provider, &&keys_provider, node_b_node_id, &channelmanager::provided_channel_type_features(&config), &channelmanager::provided_init_features(&config), &open_channel_msg, 7, &config, 0, &&logger, /*is_0conf=*/false).unwrap();
10446+
let node_b_chan = InboundV1Channel::<&TestKeysInterface>::new(&feeest, &&keys_provider, &&keys_provider, node_b_node_id, &channelmanager::provided_channel_type_features(&config), &channelmanager::provided_init_features(&config), &open_channel_msg, 7, &config, 0, &&logger, /*is_0conf=*/false).unwrap();
1044710447

1044810448
// Node B --> Node A: accept channel
1044910449
let accept_channel_msg = node_b_chan.accept_inbound_channel();
@@ -10630,7 +10630,7 @@ mod tests {
1063010630
// Make sure A's dust limit is as we expect.
1063110631
let open_channel_msg = node_a_chan.get_open_channel(ChainHash::using_genesis_block(network));
1063210632
let node_b_node_id = PublicKey::from_secret_key(&secp_ctx, &SecretKey::from_slice(&[7; 32]).unwrap());
10633-
let mut node_b_chan = InboundV1Channel::<&TestKeysInterface>::new(&feeest, &&keys_provider, &&keys_provider, node_b_node_id, &channelmanager::provided_channel_type_features(&config), &channelmanager::provided_init_features(&config), &open_channel_msg, 7, &config, 0, &&logger, /*is_0conf=*/false).unwrap();
10633+
let node_b_chan = InboundV1Channel::<&TestKeysInterface>::new(&feeest, &&keys_provider, &&keys_provider, node_b_node_id, &channelmanager::provided_channel_type_features(&config), &channelmanager::provided_init_features(&config), &open_channel_msg, 7, &config, 0, &&logger, /*is_0conf=*/false).unwrap();
1063410634

1063510635
// Node B --> Node A: accept channel, explicitly setting B's dust limit.
1063610636
let mut accept_channel_msg = node_b_chan.accept_inbound_channel();
@@ -11810,7 +11810,7 @@ mod tests {
1181011810

1181111811
let open_channel_msg = node_a_chan.get_open_channel(ChainHash::using_genesis_block(network));
1181211812
let node_b_node_id = PublicKey::from_secret_key(&secp_ctx, &SecretKey::from_slice(&[7; 32]).unwrap());
11813-
let mut node_b_chan = InboundV1Channel::<&TestKeysInterface>::new(
11813+
let node_b_chan = InboundV1Channel::<&TestKeysInterface>::new(
1181411814
&feeest,
1181511815
&&keys_provider,
1181611816
&&keys_provider,

0 commit comments

Comments
 (0)