Merge pull request #3744 from petertodd/document-isvalid-is-consensus-critical

Document that CPubKey.IsValid() is consensus critical
This commit is contained in:
Gavin Andresen 2014-02-28 15:27:58 -05:00
commit 7be6ebcf08
1 changed files with 3 additions and 1 deletions

View File

@ -137,7 +137,9 @@ public:
return Hash(vch, vch+size());
}
// just check syntactic correctness.
// Check syntactic correctness.
//
// Note that this is consensus critical as CheckSig() calls it!
bool IsValid() const {
return size() > 0;
}