diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2011-04-12 21:01:11 +0200 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2011-04-12 21:01:11 +0200 |
commit | c59b6f704cd8f42e1943f124f435363bfff244f5 (patch) | |
tree | f7073d720b60884b582db2ab97b318c2cd1b1af5 /main.cpp | |
parent | aca3f961dbce34e460dc02d37969b2035d5b2260 (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.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |