Skip to content

Commit cf044ac

Browse files
committed
Read even bits to check the anchor channel type
1 parent 195df39 commit cf044ac

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ impl ChannelDetails {
649649
value: LdkChannelDetails, anchor_channels_config: &AnchorChannelsConfig,
650650
) -> Self {
651651
let reserve_type = value.channel_type.as_ref().map(|channel_type| {
652-
if channel_type.supports_anchors_zero_fee_htlc_tx() {
652+
if channel_type.requires_anchors_zero_fee_htlc_tx() {
653653
if anchor_channels_config
654654
.trusted_peers_no_reserve
655655
.contains(&value.counterparty.node_id)

0 commit comments

Comments
 (0)