X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Fcheckpoints.cpp;fp=src%2Fcheckpoints.cpp;h=c6fb487fefcbae97d116e64324e4860709cd8adf;hp=54f57901beafcab207ada461c056152ddc4194cb;hb=9e58e0a8ca28b15a4bfa677f5b23891972db40fd;hpb=d4796a3a3259173f173a6b8c4832549f039de8da diff --git a/src/checkpoints.cpp b/src/checkpoints.cpp index 54f5790..c6fb487 100644 --- a/src/checkpoints.cpp +++ b/src/checkpoints.cpp @@ -396,9 +396,7 @@ std::string CSyncCheckpoint::strMasterPrivKey = ""; // ppcoin: verify signature of sync-checkpoint message bool CSyncCheckpoint::CheckSignature() { - CKey key; - if (!key.SetPubKey(ParseHex(CSyncCheckpoint::strMasterPubKey))) - return error("CSyncCheckpoint::CheckSignature() : SetPubKey failed"); + CPubKey key(ParseHex(CSyncCheckpoint::strMasterPubKey)); if (!key.Verify(Hash(vchMsg.begin(), vchMsg.end()), vchSig)) return error("CSyncCheckpoint::CheckSignature() : verify signature failed");