We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1b2fcd0 commit 6ede18aCopy full SHA for 6ede18a
1 file changed
src/types.rs
@@ -677,6 +677,13 @@ impl ChannelDetails {
677
ReserveType::Adaptive
678
}
679
} else {
680
+ // Edge case: if `AnchorChannelsConfig` was previously set and later
681
+ // removed, we can no longer distinguish whether this anchor channel's
682
+ // reserve was `Adaptive` or `TrustedPeersNoReserve`. We default to
683
+ // `Adaptive` here, which may incorrectly override a prior
684
+ // `TrustedPeersNoReserve` designation. This is acceptable since
685
+ // unsetting `AnchorChannelsConfig` on a node with existing anchor
686
+ // channels is not an expected operation.
687
688
689
0 commit comments