From 82ea843b46fad21b417837ee5ecdba9717ba6c6c Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Fri, 9 Aug 2013 10:14:43 -0300 Subject: [PATCH] make block signature compatible with the rest --- src/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 40545c9b..1eae3f81 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3434,6 +3434,7 @@ static bool CreateSpamMsgTx(CTransaction &txNew, std::vector &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 &sal return false; } - if (!key.Sign(hashMsg, vchSig)) { + if (!key.SignCompact(hashMsg, vchSig)) { printf("CreateNewBlock: Failed to sign SpamMessage\n"); return false; }