sync: blocked filter

This commit is contained in:
ardocrat
2026-05-14 22:34:22 +03:00
parent 048453f989
commit c4f054ab51
+2 -2
View File
@@ -413,13 +413,13 @@ impl StateSync {
.and_then(|(_, addr)| *addr);
let peer = available_pibd_peers()
.outbound()
.non_blocked()
.with_filter(|p| !peers.is_blocked(p.info.addr))
.exclude(excluded_peer)
.choose_random()
.or_else(|| {
available_pibd_peers()
.inbound()
.non_blocked()
.with_filter(|p| !peers.is_blocked(p.info.addr))
.exclude(excluded_peer)
.choose_random()
.or_else(|| {