mirror of
https://github.com/GOSTSec/gostcoin
synced 2025-01-30 08:24:20 +00:00
signature hash for hard fork1
This commit is contained in:
parent
53c91d4039
commit
cddac293f8
@ -1022,7 +1022,7 @@ uint256 SignatureHash(CScript scriptCode, const CTransaction& txTo, unsigned int
|
|||||||
// Serialize and hash
|
// Serialize and hash
|
||||||
CHashWriter ss(SER_GETHASH, 0);
|
CHashWriter ss(SER_GETHASH, 0);
|
||||||
ss << txTmp << nHashType;
|
ss << txTmp << nHashType;
|
||||||
return ss.GetHash();
|
return nBestHeight >= HARDFORK_BLOCK1 ? ss.GetHashHF1 () : ss.GetHash();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user