Document that CPubKey.IsValid() is consensus critical

This commit is contained in:
Peter Todd 2014-02-25 09:31:43 -05:00
parent a16ad1c0f4
commit 5a986edac8
No known key found for this signature in database
GPG key ID: 2481403DA5F091FB

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;
}