aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Corallo <git@bluematt.me>2016-12-01 15:00:37 -0800
committerMatt Corallo <git@bluematt.me>2016-12-01 16:08:34 -0800
commit87c35f584397e2309970afdcca8e03731a86639e (patch)
tree16a6179d5536e790936c2a4a422ec7afb3ac1138
parentdc6dee41f7cf2ba93fcd0fea7c157e4b2775d439 (diff)
downloadbitcoin-87c35f584397e2309970afdcca8e03731a86639e.tar.xz
Remove orphan state wipe from UnloadBlockIndex.
As orphan state is now "network state", like in d6ea737be19a0001e69e4e854eb1cef21523ea7a, UnloadBlockIndex is only used during init if we end up reindexing to clear our block state so that we can start over. However, at that time no connections have been brought up as CConnman hasn't been started yet, so all of the network processing state logic is empty when its called.
-rw-r--r--src/main.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index e2a1f31228..66d50c5df0 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -4311,8 +4311,6 @@ void UnloadBlockIndex()
pindexBestInvalid = NULL;
pindexBestHeader = NULL;
mempool.clear();
- mapOrphanTransactions.clear();
- mapOrphanTransactionsByPrev.clear();
mapBlocksUnlinked.clear();
vinfoBlockFile.clear();
nLastBlockFile = 0;