Set amount

This commit is contained in:
jl777
2018-12-29 03:32:04 -11:00
parent 8844b05516
commit 89a38e9e2f

View File

@@ -290,6 +290,8 @@ UniValue selfimport(const UniValue& params, bool fHelp)
throw std::runtime_error("Failed validating selfimport");
burnOut = MakeBurnOutput(burnAmount,0xffffffff,ASSETCHAINS_SELFIMPORT,burnTx.vout);
mtx = MakeImportCoinTransaction(proof,burnTx,burnTx.vout);
mtx.vout[1] = burnTx.vout[0];
mtx.vout[1].nValue = burnAmount;
return HexStr(E_MARSHAL(ss << mtx));
}