Set amount
This commit is contained in:
@@ -290,6 +290,8 @@ UniValue selfimport(const UniValue& params, bool fHelp)
|
|||||||
throw std::runtime_error("Failed validating selfimport");
|
throw std::runtime_error("Failed validating selfimport");
|
||||||
burnOut = MakeBurnOutput(burnAmount,0xffffffff,ASSETCHAINS_SELFIMPORT,burnTx.vout);
|
burnOut = MakeBurnOutput(burnAmount,0xffffffff,ASSETCHAINS_SELFIMPORT,burnTx.vout);
|
||||||
mtx = MakeImportCoinTransaction(proof,burnTx,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));
|
return HexStr(E_MARSHAL(ss << mtx));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user