diff options
author | João Barbosa <joao.paulo.barbosa@gmail.com> | 2019-03-27 17:00:08 +0000 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2019-04-01 16:34:37 -0400 |
commit | 59716ec395daaf914924fe5c1a4fbeb5d5031907 (patch) | |
tree | 14abdb75d06087b380eaeaeea5577992edddc16c | |
parent | ed0498af2827ccf033c9a7c4f46b82424e411083 (diff) | |
download | bitcoin-59716ec395daaf914924fe5c1a4fbeb5d5031907.tar.xz |
wallet: Update transactions with current mempool after load
Github-Pull: #15652
Rebased-From: 2ebf650b2eb7a078ab60c8c4d5c726823686f549
-rw-r--r-- | src/wallet/wallet.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index c3193f793e..b1b2a63166 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -4429,6 +4429,9 @@ void CWallet::postInitProcess() // Add wallet transactions that aren't already in a block to mempool // Do this here as mempool requires genesis block to be loaded ReacceptWalletTransactions(*locked_chain); + + // Update wallet transactions with current mempool transactions. + chain().requestMempoolTransactions([this](const CTransactionRef& tx) { TransactionAddedToMempool(tx); }); } bool CWallet::BackupWallet(const std::string& strDest) |