X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Falert.cpp;h=ea2bc570495073155f5adfc0cba93c570b581603;hp=121bd1e26b1084a0620c76d9b7d0e0184ce5efa1;hb=a0bfbd64a8dc93eb87a452843f76dbb9dec9f30b;hpb=77a43545b4491b9703d803765da9059d2bdd5aaa diff --git a/src/alert.cpp b/src/alert.cpp index 121bd1e..ea2bc57 100644 --- a/src/alert.cpp +++ b/src/alert.cpp @@ -79,11 +79,6 @@ std::string CUnsignedAlert::ToString() const strStatusBar.c_str()); } -void CUnsignedAlert::print() const -{ - printf("%s", ToString().c_str()); -} - void CAlert::SetNull() { CUnsignedAlert::SetNull(); @@ -149,9 +144,8 @@ 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; + key.Set(ParseHex(fTestNet ? pszTestKey : pszMainKey)); if (!key.Verify(Hash(vchMsg.begin(), vchMsg.end()), vchSig)) return error("CAlert::CheckSignature() : verify signature failed");