remove CCFinalize change, return unsigned hex instead

This commit is contained in:
Alrighttt
2019-08-06 07:46:27 +00:00
parent b4762745fe
commit db5f9c4432
2 changed files with 1 additions and 2 deletions

View File

@@ -146,7 +146,6 @@ std::string FinalizeCCTx(uint64_t CCmask,struct CCcontract_info *cp,CMutableTran
if ( totalinputs >= totaloutputs+2*txfee )
{
change = totalinputs - (totaloutputs+txfee);
if ( change != 0)
mtx.vout.push_back(CTxOut(change,CScript() << ParseHex(HexStr(mypk)) << OP_CHECKSIG));
}
if ( opret.size() > 0 )

View File

@@ -8352,6 +8352,6 @@ UniValue opreturn_burn(const UniValue& params, bool fHelp)
opret << OP_RETURN << E_MARSHAL(ss << vHexStr);
mtx.vout.push_back(CTxOut(nAmount,opret));
ret.push_back(Pair("hex",FinalizeCCTx(0, cp, mtx, myPubkey, txfee, CScript())));
ret.push_back(Pair("hex", EncodeHexTx(mtx)));
return(ret);
}