aboutsummaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2011-04-12 21:01:11 +0200
committerPieter Wuille <pieter.wuille@gmail.com>2011-04-12 21:01:11 +0200
commitc59b6f704cd8f42e1943f124f435363bfff244f5 (patch)
treef7073d720b60884b582db2ab97b318c2cd1b1af5 /main.cpp
parentaca3f961dbce34e460dc02d37969b2035d5b2260 (diff)
Bugfix for spentpertxout: slow startup
When starting the client, ReacceptWalletTransaction didn't skip spent transactions in its loop, and processed all old spent transactions again.
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp
index 529dff855f..3caee69afd 100644
--- a/main.cpp
+++ b/main.cpp
@@ -950,6 +950,8 @@ void ReacceptWalletTransactions()
}
for (int i = 0; i < txindex.vSpent.size(); i++)
{
+ if (wtx.IsSpent(i))
+ continue;
if (!txindex.vSpent[i].IsNull() && wtx.vout[i].IsMine())
{
wtx.MarkSpent(i);