remove EVAL_ORACLES dependency for opreturn_burn

This commit is contained in:
Alrighttt
2019-07-11 01:40:37 +02:00
parent 3596b0d021
commit ce29e26742
2 changed files with 43 additions and 12 deletions

View File

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