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