aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPieter Wuille <[email protected]>2011-04-23 15:33:52 +0200
committerPieter Wuille <[email protected]>2011-04-23 15:33:52 +0200
commitbe2fa90b94cfa9aeadcf6cd1a4d05bb8c2349f2f (patch)
treeadee8219750370723290f92ee7596f31c1e72b0e
parentBetter wording for transaction fee notification messages (diff)
downloaddiscoin-be2fa90b94cfa9aeadcf6cd1a4d05bb8c2349f2f.tar.xz
discoin-be2fa90b94cfa9aeadcf6cd1a4d05bb8c2349f2f.zip
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 355ef5313..8ff105124 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;