mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-11 23:58:18 +00:00
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.
This commit is contained in:
parent
aca3f961db
commit
c59b6f704c
2
main.cpp
2
main.cpp
@ -950,6 +950,8 @@ void ReacceptWalletTransactions()
|
|||||||
}
|
}
|
||||||
for (int i = 0; i < txindex.vSpent.size(); i++)
|
for (int i = 0; i < txindex.vSpent.size(); i++)
|
||||||
{
|
{
|
||||||
|
if (wtx.IsSpent(i))
|
||||||
|
continue;
|
||||||
if (!txindex.vSpent[i].IsNull() && wtx.vout[i].IsMine())
|
if (!txindex.vSpent[i].IsNull() && wtx.vout[i].IsMine())
|
||||||
{
|
{
|
||||||
wtx.MarkSpent(i);
|
wtx.MarkSpent(i);
|
||||||
|
Loading…
Reference in New Issue
Block a user