Accept new PubKey
@@ -2819,12 +2819,7 @@ bool CBlock::CheckBlockSignature() const
if (whichType == TX_PUBKEY)
{
valtype& vchPubKey = vSolutions[0];
- CKey key;
- if (!key.SetPubKey(vchPubKey))
- return false;
- if (vchBlockSig.empty())
- return false;
- return key.Verify(GetHash(), vchBlockSig);
+ return CPubKey(vchPubKey).Verify(GetHash(), vchBlockSig);
}
return false;
