Skip to content

Commit 87c35f5

Browse files
committed
Remove orphan state wipe from UnloadBlockIndex.
As orphan state is now "network state", like in d6ea737, 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.
1 parent dc6dee4 commit 87c35f5

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/main.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4311,8 +4311,6 @@ void UnloadBlockIndex()
43114311
pindexBestInvalid = NULL;
43124312
pindexBestHeader = NULL;
43134313
mempool.clear();
4314-
mapOrphanTransactions.clear();
4315-
mapOrphanTransactionsByPrev.clear();
43164314
mapBlocksUnlinked.clear();
43174315
vinfoBlockFile.clear();
43184316
nLastBlockFile = 0;

0 commit comments

Comments
 (0)