From cbaf28e4dd697c5dc1c444ca0cb37914ff1e4402 Mon Sep 17 00:00:00 2001 From: Jeremiah Buddenhagen Date: Tue, 29 Jan 2019 11:05:49 -0800 Subject: [PATCH] sign floData for all transactions --- src/script/sign.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/script/sign.cpp b/src/script/sign.cpp index f5b947053..7da6a2d97 100755 --- a/src/script/sign.cpp +++ b/src/script/sign.cpp @@ -28,13 +28,7 @@ bool TransactionSignatureCreator::CreateSig(std::vector& vchSig, if (sigversion == SIGVERSION_WITNESS_V0 && !key.IsCompressed()) return false; - int tempHashType = nHashType; - if (sigversion != SIGVERSION_WITNESS_V0) { - // Compatibility with v0.10.4 requires not signing the flo data - // Once v0.10.4 is sufficiently fazed out this should be removed - tempHashType |= SIGHASH_OMIT_FLO_DATA; - } - uint256 hash = SignatureHash(scriptCode, *txTo, nIn, tempHashType, amount, sigversion); + uint256 hash = SignatureHash(scriptCode, *txTo, nIn, nHashType, amount, sigversion); if (!key.Sign(hash, vchSig)) return false; vchSig.push_back((unsigned char)nHashType);