changeset 23733:71b9977a50b8

Do not delete orphans from the cache on a node disconnect For Xtreme Thinblocks we need to keep all orphans in the cache so when a node disconnects we disable the funtionality that causes the orphans that were propagated from that peer to be purged from the cache.
author Peter Tschipper <peter.tschipper@gmailcom>
date Tue, 08 Mar 2016 18:22:59 -0800
parents 004096743f66
children 8d208de12bcc
files src/main.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/main.cpp	Tue Mar 08 20:12:57 2016 -0800
+++ b/src/main.cpp	Tue Mar 08 18:22:59 2016 -0800
@@ -338,7 +338,7 @@
         nQueuedValidatedHeaders -= entry.fValidatedHeaders;
         mapBlocksInFlight.erase(entry.hash);
     }
-    EraseOrphansFor(nodeid);
+    //EraseOrphansFor(nodeid);  BUIP010 Xtreme Thinblocks - We do not want to delete orphans at any time.  We handle them when we accept a block
     nPreferredDownload -= state->fPreferredDownload;
 
     mapNodeState.erase(nodeid);