Skip to content

Commit 5a986ed

Browse files
committed
Document that CPubKey.IsValid() is consensus critical
1 parent a16ad1c commit 5a986ed

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)