aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Todd <pete@petertodd.org>2014-02-25 09:31:43 -0500
committerPeter Todd <pete@petertodd.org>2014-02-25 09:31:43 -0500
commit5a986edac8252da5432cf9145f145a906c05d9fe (patch)
tree95a2ab61d88b22e078f8cd0c0b1d9fd1e56c1707
parenta16ad1c0f465935d437bd9ae9875b28be49ec65b (diff)
downloadbitcoin-5a986edac8252da5432cf9145f145a906c05d9fe.tar.xz
Document that CPubKey.IsValid() is consensus critical
-rw-r--r--src/key.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/key.h b/src/key.h
index bb3777e384..cf1165d3d0 100644
--- a/src/key.h
+++ b/src/key.h
@@ -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;
}