This commit is contained in:
jl777
2018-12-29 04:26:40 -11:00
parent 31129381b4
commit 5e890aa4f1

View File

@@ -290,12 +290,11 @@ UniValue selfimport(const UniValue& params, bool fHelp)
burnTx = mtx; burnTx = mtx;
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.clear(); //mtx = MakeImportCoinTransaction(proof,burnTx,vouts);
mtx = MakeImportCoinTransaction(proof,burnTx,vouts);
//mtx.vout.resize(2); //mtx.vout.resize(2);
//mtx.vout[1] = savevout; //mtx.vout[1] = savevout;
//mtx.vout[1].nValue = burnAmount; //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) UniValue getNotarisationsForBlock(const UniValue& params, bool fHelp)