aboutsummaryrefslogtreecommitdiff
path: root/src/alert.cpp
diff options
context:
space:
mode:
authorPieter Wuille <[email protected]>2013-05-01 06:52:05 +0200
committerPieter Wuille <[email protected]>2013-05-30 05:20:21 +0200
commitdfa23b94c24aae6466152fccbe896ba5dc0e97b4 (patch)
treea1f7f856577b2223bae9351c960b595b4032ce7a /src/alert.cpp
parentMake CPubKey statically allocated (diff)
downloaddiscoin-dfa23b94c24aae6466152fccbe896ba5dc0e97b4.tar.xz
discoin-dfa23b94c24aae6466152fccbe896ba5dc0e97b4.zip
CSecret/CKey -> CKey/CPubKey split/refactor
Diffstat (limited to 'src/alert.cpp')
-rw-r--r--src/alert.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/alert.cpp b/src/alert.cpp
index 4b029840d..44f4d5eec 100644
--- a/src/alert.cpp
+++ b/src/alert.cpp
@@ -144,9 +144,7 @@ bool CAlert::RelayTo(CNode* pnode) const
bool CAlert::CheckSignature() const
{
- CKey key;
- if (!key.SetPubKey(ParseHex(fTestNet ? pszTestKey : pszMainKey)))
- return error("CAlert::CheckSignature() : SetPubKey failed");
+ CPubKey key(ParseHex(fTestNet ? pszTestKey : pszMainKey));
if (!key.Verify(Hash(vchMsg.begin(), vchMsg.end()), vchSig))
return error("CAlert::CheckSignature() : verify signature failed");