discovery: let reject cache use gossip version in key

Since the gossip protocols are completely disjoint, we need to treat
messages on the two protocols completely separately and should not let
rejections on one protocol affect how we treat messages on the other.
This commit is contained in:
Elle Mouton authored and yyforyongyu committed 2025-11-12 22:54:03 +08:00
1 parent b57714b00c
commit f35c295bd8
2 files changed
+34 -8

No files matched your search

+1
View File
@@ -4717,6 +4717,7 @@ func TestChanAnnBanningNonChanPeer(t *testing.T) {
// Remove the scid from the reject cache.
key := newRejectCacheKey(
ca.GossipVersion(),
ca.ShortChannelID.ToUint64(),
sourceToPub(nodePeer2.IdentityKey()),
)