Skip to content

Commit

Permalink
Document that CPubKey.IsValid() is consensus critical
Browse files Browse the repository at this point in the history
  • Loading branch information
petertodd committed Feb 25, 2014
1 parent a16ad1c commit 5a986ed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/key.h
Expand Up @@ -137,7 +137,9 @@ class CPubKey {
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;
}
Expand Down

0 comments on commit 5a986ed

Please sign in to comment.