1
0
mirror of https://github.com/GOSTSec/gostcoin synced 2025-01-29 16:04:32 +00:00

signature hash for hard fork1

This commit is contained in:
orignal 2017-10-16 21:57:12 -04:00
parent 53c91d4039
commit cddac293f8

View File

@ -1022,7 +1022,7 @@ uint256 SignatureHash(CScript scriptCode, const CTransaction& txTo, unsigned int
// Serialize and hash
CHashWriter ss(SER_GETHASH, 0);
ss << txTmp << nHashType;
return ss.GetHash();
return nBestHeight >= HARDFORK_BLOCK1 ? ss.GetHashHF1 () : ss.GetHash();
}