Browse Source

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.
0.8
Pieter Wuille 14 years ago
parent
commit
be2fa90b94
  1. 2
      main.h

2
main.h

@ -1028,7 +1028,7 @@ public:
if (!ptx->IsFinal()) if (!ptx->IsFinal())
return false; return false;
if (ptx->GetDepthInMainChain() >= 1) if (ptx->GetDepthInMainChain() >= 1)
return true; continue;
if (!ptx->IsFromMe()) if (!ptx->IsFromMe())
return false; return false;

Loading…
Cancel
Save