Transport: fix destination_hash check in pending_discovery_prs

master
JRG 2026-08-18 13:11:57 +03:00 committed by Mark Qvist
parent 40a862acbd
commit 338173802d
1 changed files with 2 additions and 1 deletions

View File

@ -1110,8 +1110,9 @@ class Transport:
if path_requests:
with Transport.discovery_pr_tx_lock:
queued_destinations = [entry[0] for entry in Transport.pending_discovery_prs]
for destination_hash in path_requests:
if not destination_hash in Transport.pending_discovery_prs:
if destination_hash not in queued_destinations:
if not len(Transport.pending_discovery_prs) >= Transport.max_queued_discovery_prs:
Transport.pending_discovery_prs.append([destination_hash, path_requests[destination_hash]])