File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -4886,6 +4886,11 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
4886
4886
4887
4887
let next_channel_type = get_initial_channel_type(user_config, &eligible_features);
4888
4888
4889
+ // Note that we can't get `anchor_zero_fee_commitments` type here, which requires zero
4890
+ // fees, because we downgrade from this channel type first. If there were a superior
4891
+ // channel type that downgrades to `anchor_zero_fee_commitments`, we'd need to handle
4892
+ // fee setting differently here.
4893
+ assert!(!next_channel_type.supports_anchor_zero_fee_commitments());
4889
4894
let conf_target = if next_channel_type.supports_anchors_zero_fee_htlc_tx() {
4890
4895
ConfirmationTarget::AnchorChannelFee
4891
4896
} else {
You can’t perform that action at this time.
0 commit comments