Browse Source

Remove orphan state wipe from UnloadBlockIndex.

As orphan state is now "network state", like in
d6ea737be1,

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.
0.14
Matt Corallo 8 years ago
parent
commit
87c35f5843
  1. 2
      src/main.cpp

2
src/main.cpp

@ -4311,8 +4311,6 @@ void UnloadBlockIndex() @@ -4311,8 +4311,6 @@ void UnloadBlockIndex()
pindexBestInvalid = NULL;
pindexBestHeader = NULL;
mempool.clear();
mapOrphanTransactions.clear();
mapOrphanTransactionsByPrev.clear();
mapBlocksUnlinked.clear();
vinfoBlockFile.clear();
nLastBlockFile = 0;

Loading…
Cancel
Save