You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Stop relying on the *Features::known method in lightning-invoice
As we move towards specify supported/required feature bits in the
module(s) where they are supported, the global `known` feature set
constructors no longer make sense.
Here we stop relying on the `known` method in the
`lightning-invoice` crate.
fee_msat:100_000_001,// Our default max-HTLC-value is 10% of the channel value, which this is one more than
2226
2227
cltv_expiry_delta:100,
2227
2228
}],
@@ -2271,38 +2272,38 @@ mod tests {
2271
2272
let node_chanmgrs = create_node_chanmgrs(3,&node_cfgs,&[None,None,None]);
2272
2273
let nodes = create_network(3,&node_cfgs,&node_chanmgrs);
2273
2274
2274
-
let chan_1_scid = create_announced_chan_between_nodes_with_value(&nodes,0,1,10_000_000,0,InitFeatures::known(),InitFeatures::known()).0.contents.short_channel_id;
2275
-
let chan_2_scid = create_announced_chan_between_nodes_with_value(&nodes,1,2,10_000_000,0,InitFeatures::known(),InitFeatures::known()).0.contents.short_channel_id;
2275
+
let chan_1_scid = create_announced_chan_between_nodes_with_value(&nodes,0,1,10_000_000,0,channelmanager::provided_init_features(),channelmanager::provided_init_features()).0.contents.short_channel_id;
2276
+
let chan_2_scid = create_announced_chan_between_nodes_with_value(&nodes,1,2,10_000_000,0,channelmanager::provided_init_features(),channelmanager::provided_init_features()).0.contents.short_channel_id;
0 commit comments