aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoão Barbosa <[email protected]>2019-03-27 17:00:08 +0000
committerMarcoFalke <[email protected]>2019-04-01 16:34:37 -0400
commit59716ec395daaf914924fe5c1a4fbeb5d5031907 (patch)
tree14abdb75d06087b380eaeaeea5577992edddc16c /src
parentinterfaces: Add Chain::requestMempoolTransactions (diff)
downloaddiscoin-59716ec395daaf914924fe5c1a4fbeb5d5031907.tar.xz
discoin-59716ec395daaf914924fe5c1a4fbeb5d5031907.zip
wallet: Update transactions with current mempool after load
Github-Pull: #15652 Rebased-From: 2ebf650b2eb7a078ab60c8c4d5c726823686f549
Diffstat (limited to 'src')
-rw-r--r--src/wallet/wallet.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp
index c3193f793..b1b2a6316 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)