Browse Source

Merge pull request #4865

8e44f2e Clarify 'compressed nor uncompressed' error message (Peter Todd)
0.10
Pieter Wuille 10 years ago
parent
commit
df623d83da
No known key found for this signature in database
GPG Key ID: 8F653255C87992E0
  1. 2
      src/script.cpp

2
src/script.cpp

@ -238,7 +238,7 @@ bool IsCanonicalPubKey(const valtype &vchPubKey, unsigned int flags) { @@ -238,7 +238,7 @@ bool IsCanonicalPubKey(const valtype &vchPubKey, unsigned int flags) {
if (vchPubKey.size() != 33)
return error("Non-canonical public key: invalid length for compressed key");
} else {
return error("Non-canonical public key: compressed nor uncompressed");
return error("Non-canonical public key: neither compressed nor uncompressed");
}
return true;
}

Loading…
Cancel
Save