mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-17 18:40:09 +00:00
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.
This commit is contained in:
parent
dc6dee41f7
commit
87c35f5843
@ -4311,8 +4311,6 @@ void UnloadBlockIndex()
|
||||
pindexBestInvalid = NULL;
|
||||
pindexBestHeader = NULL;
|
||||
mempool.clear();
|
||||
mapOrphanTransactions.clear();
|
||||
mapOrphanTransactionsByPrev.clear();
|
||||
mapBlocksUnlinked.clear();
|
||||
vinfoBlockFile.clear();
|
||||
nLastBlockFile = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user