change it, might be safter this way

This commit is contained in:
blackjok3r
2018-10-17 00:31:57 +08:00
parent a3b0c67415
commit b6b33147b1
2 changed files with 11 additions and 14 deletions

View File

@@ -4608,14 +4608,7 @@ int32_t komodo_notaryvin(CMutableTransaction &txNew,uint8_t *notarypub33)
// ((uint8_t *)&revtxid)[i] = ((uint8_t *)&utxotxid)[31 - i];
txNew.vin[0].prevout.hash = utxotxid; //revtxid;
txNew.vin[0].prevout.n = utxovout;
if ( ASSETCHAINS_STREAM != 0 )
{
txNew.vout[0].nValue = 0;
}
else
{
txNew.vout[0].nValue = utxovalue - txfee;
}
txNew.vout[0].nValue = utxovalue - txfee;
txNew.vout[0].scriptPubKey = CScript() << ParseHex(CRYPTO777_PUBSECPSTR) << OP_CHECKSIG;
CTransaction txNewConst(txNew);
signSuccess = ProduceSignature(TransactionSignatureCreator(&keystore, &txNewConst, 0, utxovalue, SIGHASH_ALL), best_scriptPubKey, sigdata, consensusBranchId);