mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-01-22 20:44:56 +00:00
make block signature compatible with the rest
This commit is contained in:
parent
396b46914e
commit
82ea843b46
@ -3434,6 +3434,7 @@ static bool CreateSpamMsgTx(CTransaction &txNew, std::vector<unsigned char> &sal
|
||||
|
||||
// compute message hash and sign it
|
||||
CHashWriter ss(SER_GETHASH, PROTOCOL_VERSION);
|
||||
ss << strMessageMagic;
|
||||
ss << txNew.message;
|
||||
uint256 hashMsg = ss.GetHash();
|
||||
|
||||
@ -3448,7 +3449,7 @@ static bool CreateSpamMsgTx(CTransaction &txNew, std::vector<unsigned char> &sal
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!key.Sign(hashMsg, vchSig)) {
|
||||
if (!key.SignCompact(hashMsg, vchSig)) {
|
||||
printf("CreateNewBlock: Failed to sign SpamMessage\n");
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user