From 3ffe50cc88acadc49fc593ed0b57fdb70cfbd6ae Mon Sep 17 00:00:00 2001 From: Dan Notestein Date: Wed, 5 May 2021 20:25:42 +0000 Subject: [PATCH] Remove unavailable item from active sync requests, fix node stuck issue as per https://github.com/bitshares/bitshares-core/pull/2445 --- libraries/net/node.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/net/node.cpp b/libraries/net/node.cpp index 2391160900..dd948e9d05 100644 --- a/libraries/net/node.cpp +++ b/libraries/net/node.cpp @@ -2879,6 +2879,7 @@ namespace graphene { namespace net { auto sync_item_iter = originating_peer->sync_items_requested_from_peer.find(requested_item.item_hash); if (sync_item_iter != originating_peer->sync_items_requested_from_peer.end()) { + _active_sync_requests.erase(*sync_item_iter); originating_peer->sync_items_requested_from_peer.erase(sync_item_iter); if (originating_peer->peer_needs_sync_items_from_us)