diff options
| author | Wladimir J. van der Laan <[email protected]> | 2016-11-02 21:37:28 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2016-11-02 21:37:43 +0100 |
| commit | 6a1343f73bd0f6744cfcfda1e3e1c8998f67e2d7 (patch) | |
| tree | 7cff5fd559ebebf2f2952a70b326b78014f4e72d /src/wallet/wallet.cpp | |
| parent | Merge #9013: Trivial: Explicitly pass const CChainParams& to LoadBlockIndexDB() (diff) | |
| parent | [Wallet] Refactor wallet/init interaction (Reaccept wtx, flush thread) (diff) | |
| download | discoin-6a1343f73bd0f6744cfcfda1e3e1c8998f67e2d7.tar.xz discoin-6a1343f73bd0f6744cfcfda1e3e1c8998f67e2d7.zip | |
Merge #8977: [Wallet] Refactor wallet/init interaction (Reaccept wtx, flush thread)
cab1da7 [Wallet] Refactor wallet/init interaction (Reaccept wtx, flush thread) (Jonas Schnelli)
Diffstat (limited to 'src/wallet/wallet.cpp')
| -rw-r--r-- | src/wallet/wallet.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 9e1913809..c2bac6e33 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -3549,6 +3549,16 @@ bool CWallet::InitLoadWallet() return true; } +void CWallet::postInitProcess(boost::thread_group& threadGroup) +{ + // Add wallet transactions that aren't already in a block to mempool + // Do this here as mempool requires genesis block to be loaded + ReacceptWalletTransactions(); + + // Run a thread to flush wallet periodically + threadGroup.create_thread(boost::bind(&ThreadFlushWalletDB, boost::ref(this->strWalletFile))); +} + bool CWallet::ParameterInteraction() { if (GetBoolArg("-disablewallet", DEFAULT_DISABLE_WALLET)) |