aboutsummaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorGavin Andresen <[email protected]>2011-04-12 17:27:15 -0400
committerGavin Andresen <[email protected]>2011-04-12 17:27:15 -0400
commitd89d456655f03159a32e6a4a9df22bfe02d403d6 (patch)
treeb8a1976fdcc4b55297d66845911dd39b42ef248e /main.cpp
parentMerge branch 'upnp' of https://github.com/TheBlueMatt/bitcoin (diff)
parentBugfix for spentpertxout: slow startup (diff)
downloaddiscoin-d89d456655f03159a32e6a4a9df22bfe02d403d6.tar.xz
discoin-d89d456655f03159a32e6a4a9df22bfe02d403d6.zip
Merge branch 'spentpertxout' of https://github.com/sipa/bitcoin
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 17a1b81c5..1c2292bad 100644
--- a/main.cpp
+++ b/main.cpp
@@ -958,6 +958,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);