Skip to content

Commit 766d519

Browse files
committed
Merge bitcoin#597: [Wallet] Write new transactions to wtxOrdered properly
b2fdbbf [Wallet] Write new transactions to wtxOrdered properly (Fuzzbawls) Tree-SHA512: b0bd54c9bd7fb44c18d7d4d84213b96b48dc22b35825c0a0f268b3f99086e8beeea7de5aed07cc575ee7dae0ce095e0438eb7e89454bae54551478ea5f81661d
2 parents 084c10d + b2fdbbf commit 766d519

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/wallet.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -659,6 +659,7 @@ bool CWallet::AddToWallet(const CWalletTx& wtxIn, bool fFromLoadWallet)
659659
if (!wtx.nTimeReceived)
660660
wtx.nTimeReceived = GetAdjustedTime();
661661
wtx.nOrderPos = IncOrderPosNext();
662+
wtxOrdered.insert(make_pair(wtx.nOrderPos, TxPair(&wtx, (CAccountingEntry*)0)));
662663
wtx.nTimeSmart = ComputeTimeSmart(wtx);
663664
AddToSpends(hash);
664665
}

0 commit comments

Comments
 (0)