We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 31e80b4 commit 77b2b13Copy full SHA for 77b2b13
1 file changed
protocols/gossipsub/src/behaviour.rs
@@ -1376,6 +1376,20 @@ where
1376
continue;
1377
}
1378
1379
+ // We should not handle IHAVEs from peers that support partials on topics where we
1380
+ // request partial messages.
1381
+ #[cfg(feature = "partial_messages")]
1382
+ if self
1383
+ .partial_messages_extension
1384
+ .opts(&topic)
1385
+ .is_some_and(|opts| opts.requests_partial)
1386
+ && self
1387
1388
+ .supports_partial(peer_id, &topic)
1389
+ {
1390
+ continue;
1391
+ }
1392
+
1393
for id in ids.into_iter().filter(|id| {
1394
if self.duplicate_cache.contains(id) {
1395
return false;
0 commit comments