This commit is contained in:
jl777
2018-12-29 04:03:29 -11:00
parent ed7a77697a
commit 24a9e7c408

View File

@@ -291,8 +291,9 @@ UniValue selfimport(const UniValue& params, bool fHelp)
if ( GetSelfimportProof(proof,burnTx,burnTx.GetHash()) < 0 ) if ( GetSelfimportProof(proof,burnTx,burnTx.GetHash()) < 0 )
throw std::runtime_error("Failed validating selfimport"); throw std::runtime_error("Failed validating selfimport");
mtx = MakeImportCoinTransaction(proof,burnTx,vouts); mtx = MakeImportCoinTransaction(proof,burnTx,vouts);
//mtx.vout[1] = savevout; mtx.vout.resize(2);
//mtx.vout[1].nValue = burnAmount; mtx.vout[1] = savevout;
mtx.vout[1].nValue = burnAmount;
return HexStr(E_MARSHAL(ss << mtx)); return HexStr(E_MARSHAL(ss << mtx));
} }