Skip to content

Commit

Permalink
Merge bitcoin#597: [Wallet] Write new transactions to wtxOrdered prop…
Browse files Browse the repository at this point in the history
…erly

b2fdbbf [Wallet] Write new transactions to wtxOrdered properly (Fuzzbawls)

Tree-SHA512: b0bd54c9bd7fb44c18d7d4d84213b96b48dc22b35825c0a0f268b3f99086e8beeea7de5aed07cc575ee7dae0ce095e0438eb7e89454bae54551478ea5f81661d
  • Loading branch information
Fuzzbawls committed May 3, 2018
2 parents 084c10d + b2fdbbf commit 766d519
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 @@ -659,6 +659,7 @@ bool CWallet::AddToWallet(const CWalletTx& wtxIn, bool fFromLoadWallet)
if (!wtx.nTimeReceived)
wtx.nTimeReceived = GetAdjustedTime();
wtx.nOrderPos = IncOrderPosNext();
wtxOrdered.insert(make_pair(wtx.nOrderPos, TxPair(&wtx, (CAccountingEntry*)0)));
wtx.nTimeSmart = ComputeTimeSmart(wtx);
AddToSpends(hash);
}
Expand Down

0 comments on commit 766d519

Please sign in to comment.