Skip to content

Commit

Permalink
Ref #8 - Add tx pair to ordered list when adding it to the wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
FornaxA authored and Cevap Master committed Mar 30, 2018
1 parent d6cf121 commit 5491b06
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/wallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 5491b06

Please sign in to comment.