Skip to content

Commit

Permalink
Ref ioncoincore#8 - Add tx pair to ordered list when adding it to the…
Browse files Browse the repository at this point in the history
… wallet
  • Loading branch information
FornaxA authored and ckti committed Mar 29, 2021
1 parent 346ce1b commit 99b8d2a
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 99b8d2a

Please sign in to comment.