Skip to content

Commit ebfb6cf

Browse files
committed
f: Include 0fc channels in ReserveType checks
1 parent 3bc0b46 commit ebfb6cf

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/types.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,9 @@ impl ChannelDetails {
599599
value: LdkChannelDetails, anchor_channels_config: Option<&AnchorChannelsConfig>,
600600
) -> Self {
601601
let reserve_type = value.channel_type.as_ref().map(|channel_type| {
602-
if channel_type.supports_anchors_zero_fee_htlc_tx() {
602+
if channel_type.supports_anchors_zero_fee_htlc_tx()
603+
|| channel_type.supports_anchor_zero_fee_commitments()
604+
{
603605
if let Some(config) = anchor_channels_config {
604606
if config.trusted_peers_no_reserve.contains(&value.counterparty.node_id) {
605607
ReserveType::TrustedPeersNoReserve

0 commit comments

Comments
 (0)