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.
This commit is contained in:
parent
dc6dee41f7
commit
87c35f5843
1 changed files with 0 additions and 2 deletions
|
@ -4311,8 +4311,6 @@ void UnloadBlockIndex()
|
|||
pindexBestInvalid = NULL;
|
||||
pindexBestHeader = NULL;
|
||||
mempool.clear();
|
||||
mapOrphanTransactions.clear();
|
||||
mapOrphanTransactionsByPrev.clear();
|
||||
mapBlocksUnlinked.clear();
|
||||
vinfoBlockFile.clear();
|
||||
nLastBlockFile = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue