Skip to content

Commit 6ce402a

Browse files
committed
f Stricter assertion on default channel type in test
1 parent 17c88ef commit 6ce402a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lightning/src/ln/channel.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13172,14 +13172,13 @@ mod tests {
1317213172
let node_id_a = PublicKey::from_secret_key(&secp_ctx, &SecretKey::from_slice(&[1; 32]).unwrap());
1317313173
let node_id_b = PublicKey::from_secret_key(&secp_ctx, &SecretKey::from_slice(&[2; 32]).unwrap());
1317413174

13175-
// Assert that we don't get the target channel type when the receiving node does not signal
13176-
// support.
13175+
// Assert that we get `static_remotekey` when no custom config is negotiated.
1317713176
let channel_a = OutboundV1Channel::<&TestKeysInterface>::new(
1317813177
&fee_estimator, &&keys_provider, &&keys_provider, node_id_b,
1317913178
&channelmanager::provided_init_features(&UserConfig::default()), 10000000, 100000, 42,
1318013179
&config, 0, 42, None, &logger
1318113180
).unwrap();
13182-
assert!(channel_a.funding.get_channel_type() != &expected_channel_type);
13181+
assert_eq!(channel_a.funding.get_channel_type(), &ChannelTypeFeatures::only_static_remote_key());
1318313182

1318413183
let mut channel_a = OutboundV1Channel::<&TestKeysInterface>::new(
1318513184
&fee_estimator, &&keys_provider, &&keys_provider, node_id_b,

0 commit comments

Comments
 (0)