From c59b6f704cd8f42e1943f124f435363bfff244f5 Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Tue, 12 Apr 2011 21:01:11 +0200 Subject: 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. --- main.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'main.cpp') 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); -- cgit v1.2.3