Merge #8928: Fix init segfault where InitLoadWallet() calls ATMP before genesis

37aefff Fix init segfault where InitLoadWallet() calls ATMP before genesis (Matt Corallo)
This commit is contained in:
Wladimir J. van der Laan committed 2016-10-19 18:11:15 +02:00
commit c587577356
2 files changed
+7 -2

No files matched your search

+7
View File
@@ -1493,6 +1493,13 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
uiInterface.NotifyBlockTip.disconnect(BlockNotifyGenesisWait);
}
#ifdef ENABLE_WALLET
// Add wallet transactions that aren't already in a block to mempool
// Do this here as mempool requires genesis block to be loaded
if (pwalletMain)
pwalletMain->ReacceptWalletTransactions();
#endif
// ********************************************************* Step 11: start node
//// debug print
-2
View File
@@ -3466,8 +3466,6 @@ bool CWallet::InitLoadWallet()
LogPrintf("mapWallet.size() = %u\n", walletInstance->mapWallet.size());
LogPrintf("mapAddressBook.size() = %u\n", walletInstance->mapAddressBook.size());
}
// Add wallet transactions that aren't already in a block to mapTransactions
walletInstance->ReacceptWalletTransactions();
pwalletMain = walletInstance;