mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-01-23 04:54:30 +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
|
// compute message hash and sign it
|
||||||
CHashWriter ss(SER_GETHASH, PROTOCOL_VERSION);
|
CHashWriter ss(SER_GETHASH, PROTOCOL_VERSION);
|
||||||
|
ss << strMessageMagic;
|
||||||
ss << txNew.message;
|
ss << txNew.message;
|
||||||
uint256 hashMsg = ss.GetHash();
|
uint256 hashMsg = ss.GetHash();
|
||||||
|
|
||||||
@ -3448,7 +3449,7 @@ static bool CreateSpamMsgTx(CTransaction &txNew, std::vector<unsigned char> &sal
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!key.Sign(hashMsg, vchSig)) {
|
if (!key.SignCompact(hashMsg, vchSig)) {
|
||||||
printf("CreateNewBlock: Failed to sign SpamMessage\n");
|
printf("CreateNewBlock: Failed to sign SpamMessage\n");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user