We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 49eb5ee commit 77dcbc4Copy full SHA for 77dcbc4
src/types.rs
@@ -632,6 +632,13 @@ impl ChannelDetails {
632
ReserveType::Adaptive
633
}
634
} else {
635
+ // Edge case: if `AnchorChannelsConfig` was previously set and later
636
+ // removed, we can no longer distinguish whether this anchor channel's
637
+ // reserve was `Adaptive` or `TrustedPeersNoReserve`. We default to
638
+ // `Adaptive` here, which may incorrectly override a prior
639
+ // `TrustedPeersNoReserve` designation. This is acceptable since
640
+ // unsetting `AnchorChannelsConfig` on a node with existing anchor
641
+ // channels is not an expected operation.
642
643
644
0 commit comments