From 5a986edac8252da5432cf9145f145a906c05d9fe Mon Sep 17 00:00:00 2001 From: Peter Todd Date: Tue, 25 Feb 2014 09:31:43 -0500 Subject: [PATCH] Document that CPubKey.IsValid() is consensus critical --- src/key.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/key.h b/src/key.h index bb3777e384ed3..cf1165d3d0260 100644 --- a/src/key.h +++ b/src/key.h @@ -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; }