aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2011-04-23 15:33:52 +0200
committerPieter Wuille <pieter.wuille@gmail.com>2011-04-23 15:33:52 +0200
commitbe2fa90b94cfa9aeadcf6cd1a4d05bb8c2349f2f (patch)
treeadee8219750370723290f92ee7596f31c1e72b0e
parent64ad448adc67f3c32fe0dfe074c82a8377f67ee7 (diff)
Bugfix in recursive check in IsConfirmed()
When one single dependency of an unconfirmed transaction is already verified, this does not mean the parent is confirmed. We can skip checking its own dependencies though.
-rw-r--r--main.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.h b/main.h
index 355ef5313f..8ff105124e 100644
--- a/main.h
+++ b/main.h
@@ -1028,7 +1028,7 @@ public:
if (!ptx->IsFinal())
return false;
if (ptx->GetDepthInMainChain() >= 1)
- return true;
+ continue;
if (!ptx->IsFromMe())
return false;