This commit is contained in:
jl777
2019-07-08 20:16:57 -11:00
parent 80d02fbb42
commit c9a6b6218a
3 changed files with 5 additions and 2 deletions

View File

@@ -35,6 +35,7 @@ using namespace std;
typedef vector<unsigned char> valtype;
extern uint8_t ASSETCHAINS_TXPOW;
uint256 SIG_TXHASH;
TransactionSignatureCreator::TransactionSignatureCreator(const CKeyStore* keystoreIn, const CTransaction* txToIn, unsigned int nInIn, const CAmount& amountIn, int nHashTypeIn) : BaseSignatureCreator(keystoreIn), txTo(txToIn), nIn(nInIn), nHashType(nHashTypeIn), amount(amountIn), checker(txTo, nIn, amountIn) {}
@@ -52,7 +53,7 @@ bool TransactionSignatureCreator::CreateSig(std::vector<unsigned char>& vchSig,
} catch (logic_error ex) {
return false;
}
TXHASH = hash;
if (scriptCode.IsPayToCryptoCondition())
{
CC *cc = (CC *)extraData;