diff options
author | Jeff Garzik <jgarzik@exmulti.com> | 2011-06-05 07:30:47 -0700 |
---|---|---|
committer | Jeff Garzik <jgarzik@exmulti.com> | 2011-06-05 07:30:47 -0700 |
commit | 7a234cdae512bea68af2cc8e6a9ffcc665ddc820 (patch) | |
tree | 8ae0801982c5beef5db9e0e9180ed50747fc9061 /src/main.cpp | |
parent | 39105dac1b2880970cab3d8f1af969a4b803df01 (diff) | |
parent | 1c528eeee939cacc0c100e5ca1e2d4ddb3c50227 (diff) |
Merge pull request #255 from sipa/rescanupdate
Update transactions already in the wallet when rescanning.
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp index 793cf77f10..6f3ef62deb 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -884,7 +884,7 @@ bool CWalletTx::AcceptWalletTransaction(CTxDB& txdb, bool fCheckInputs) return false; } -int ScanForWalletTransactions(CBlockIndex* pindexStart) +int ScanForWalletTransactions(CBlockIndex* pindexStart, bool fUpdate) { int ret = 0; @@ -897,7 +897,7 @@ int ScanForWalletTransactions(CBlockIndex* pindexStart) block.ReadFromDisk(pindex, true); BOOST_FOREACH(CTransaction& tx, block.vtx) { - if (AddToWalletIfInvolvingMe(tx, &block)) + if (AddToWalletIfInvolvingMe(tx, &block, fUpdate)) ret++; } pindex = pindex->pnext; |