Skip to content

Commit 7be6ebc

Browse files
committed
Merge pull request #3744 from petertodd/document-isvalid-is-consensus-critical
Document that CPubKey.IsValid() is consensus critical
2 parents b69b5d5 + 5a986ed commit 7be6ebc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/key.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,9 @@ class CPubKey {
137137
return Hash(vch, vch+size());
138138
}
139139

140-
// just check syntactic correctness.
140+
// Check syntactic correctness.
141+
//
142+
// Note that this is consensus critical as CheckSig() calls it!
141143
bool IsValid() const {
142144
return size() > 0;
143145
}

0 commit comments

Comments
 (0)