mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 03:52:49 +01:00
Fix init segfault where InitLoadWallet() calls ATMP before genesis
This commit is contained in:
parent
49c5910372
commit
37aefff5fc
@ -1488,6 +1488,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
|
||||
|
@ -3467,8 +3467,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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user