From 24a9e7c408b77f0f3e50016676053dfe07436c0a Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 29 Dec 2018 04:03:29 -1100 Subject: [PATCH] test --- src/rpc/crosschain.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/rpc/crosschain.cpp b/src/rpc/crosschain.cpp index 91fe6fcf8..385e23012 100644 --- a/src/rpc/crosschain.cpp +++ b/src/rpc/crosschain.cpp @@ -291,8 +291,9 @@ UniValue selfimport(const UniValue& params, bool fHelp) if ( GetSelfimportProof(proof,burnTx,burnTx.GetHash()) < 0 ) throw std::runtime_error("Failed validating selfimport"); mtx = MakeImportCoinTransaction(proof,burnTx,vouts); - //mtx.vout[1] = savevout; - //mtx.vout[1].nValue = burnAmount; + mtx.vout.resize(2); + mtx.vout[1] = savevout; + mtx.vout[1].nValue = burnAmount; return HexStr(E_MARSHAL(ss << mtx)); }