Bugfix in recursive check in IsConfirmed()
authorPieter Wuille <pieter.wuille@gmail.com>
Sat, 23 Apr 2011 13:33:52 +0000 (15:33 +0200)
committerPieter Wuille <pieter.wuille@gmail.com>
Sat, 23 Apr 2011 13:33:52 +0000 (15:33 +0200)
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.

main.h

diff --git a/main.h b/main.h
index 355ef53..8ff1051 100644 (file)
--- 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;