From 5491b06ab33046dec298b68307a1e834a93f3b0b Mon Sep 17 00:00:00 2001 From: FornaxA Date: Fri, 30 Mar 2018 08:48:15 +0200 Subject: [PATCH] Ref #8 - Add tx pair to ordered list when adding it to the wallet --- src/wallet.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wallet.cpp b/src/wallet.cpp index ddc607e696bae..edb105bac3229 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -654,6 +654,7 @@ bool CWallet::AddToWallet(const CWalletTx& wtxIn, bool fFromLoadWallet) if (fInsertedNew) { wtx.nTimeReceived = GetAdjustedTime(); wtx.nOrderPos = IncOrderPosNext(); + wtxOrdered.insert(std::make_pair(wtx.nOrderPos, TxPair(&wtx, nullptr))); wtx.nTimeSmart = ComputeTimeSmart(wtx); AddToSpends(hash); }