From cddac293f8a08925167dbf7e58d8ac9fb01e8b34 Mon Sep 17 00:00:00 2001 From: orignal Date: Mon, 16 Oct 2017 21:57:12 -0400 Subject: [PATCH] signature hash for hard fork1 --- src/script.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/script.cpp b/src/script.cpp index 9c26ed3..2201cd7 100644 --- a/src/script.cpp +++ b/src/script.cpp @@ -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(); }