aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2016-10-19 18:10:52 +0200
committerWladimir J. van der Laan <[email protected]>2016-10-19 18:11:15 +0200
commitc5875773561c249a079714f3b091a2577707eadf (patch)
tree9aa1f86d86767beeea12bf1ab5b1136e9f6f60f1 /src/init.cpp
parentMerge #8927: Add script tests for FindAndDelete in pre-segwit and segwit scripts (diff)
parentFix init segfault where InitLoadWallet() calls ATMP before genesis (diff)
downloaddiscoin-c5875773561c249a079714f3b091a2577707eadf.tar.xz
discoin-c5875773561c249a079714f3b091a2577707eadf.zip
Merge #8928: Fix init segfault where InitLoadWallet() calls ATMP before genesis
37aefff Fix init segfault where InitLoadWallet() calls ATMP before genesis (Matt Corallo)
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/init.cpp b/src/init.cpp
index 2b1fbed07..d3efc9f97 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -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