aboutsummaryrefslogtreecommitdiff
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
parentaca3f961dbce34e460dc02d37969b2035d5b2260 (diff)
downloadbitcoin-c59b6f704cd8f42e1943f124f435363bfff244f5.tar.xz
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.
-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);