From 59716ec395daaf914924fe5c1a4fbeb5d5031907 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Barbosa?= Date: Wed, 27 Mar 2019 17:00:08 +0000 Subject: [PATCH] wallet: Update transactions with current mempool after load Github-Pull: #15652 Rebased-From: 2ebf650b2eb7a078ab60c8c4d5c726823686f549 --- src/wallet/wallet.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index c3193f793eb..b1b2a631666 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)