From 5e890aa4f19f8bacbfc60526ce9bce52b6521946 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 29 Dec 2018 04:26:40 -1100 Subject: [PATCH] Test --- src/rpc/crosschain.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/rpc/crosschain.cpp b/src/rpc/crosschain.cpp index fa07be9ef..e006920e2 100644 --- a/src/rpc/crosschain.cpp +++ b/src/rpc/crosschain.cpp @@ -290,12 +290,11 @@ UniValue selfimport(const UniValue& params, bool fHelp) burnTx = mtx; if ( GetSelfimportProof(proof,burnTx,burnTx.GetHash()) < 0 ) throw std::runtime_error("Failed validating selfimport"); - mtx.clear(); - mtx = MakeImportCoinTransaction(proof,burnTx,vouts); + //mtx = MakeImportCoinTransaction(proof,burnTx,vouts); //mtx.vout.resize(2); //mtx.vout[1] = savevout; //mtx.vout[1].nValue = burnAmount; - return HexStr(E_MARSHAL(ss << mtx)); + return HexStr(E_MARSHAL(ss << MakeImportCoinTransaction(proof,burnTx,vouts))); } UniValue getNotarisationsForBlock(const UniValue& params, bool fHelp)