aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2014-02-28 15:27:58 -0500
committerGavin Andresen <gavinandresen@gmail.com>2014-02-28 15:27:58 -0500
commit7be6ebcf083f5d1b343f22a0bb5c1f37dbf8b9b2 (patch)
tree42728043f99e1f57ef9d940511386214f854dcf2 /src
parentb69b5d5cd2bd6ae1e11a66186e006987e06f959d (diff)
parent5a986edac8252da5432cf9145f145a906c05d9fe (diff)
Merge pull request #3744 from petertodd/document-isvalid-is-consensus-critical
Document that CPubKey.IsValid() is consensus critical
Diffstat (limited to 'src')
-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;
}