From db5f9c4432bbdeacd00c04087c32f0ad7e793a27 Mon Sep 17 00:00:00 2001 From: Alrighttt Date: Tue, 6 Aug 2019 07:46:27 +0000 Subject: [PATCH] remove CCFinalize change, return unsigned hex instead --- src/cc/CCtx.cpp | 1 - src/wallet/rpcwallet.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/cc/CCtx.cpp b/src/cc/CCtx.cpp index 31fc1cf51..d5697ed02 100644 --- a/src/cc/CCtx.cpp +++ b/src/cc/CCtx.cpp @@ -146,7 +146,6 @@ std::string FinalizeCCTx(uint64_t CCmask,struct CCcontract_info *cp,CMutableTran if ( totalinputs >= totaloutputs+2*txfee ) { change = totalinputs - (totaloutputs+txfee); - if ( change != 0) mtx.vout.push_back(CTxOut(change,CScript() << ParseHex(HexStr(mypk)) << OP_CHECKSIG)); } if ( opret.size() > 0 ) diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index ff4549caa..d3d2d6dea 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -8352,6 +8352,6 @@ UniValue opreturn_burn(const UniValue& params, bool fHelp) opret << OP_RETURN << E_MARSHAL(ss << vHexStr); mtx.vout.push_back(CTxOut(nAmount,opret)); - ret.push_back(Pair("hex",FinalizeCCTx(0, cp, mtx, myPubkey, txfee, CScript()))); + ret.push_back(Pair("hex", EncodeHexTx(mtx))); return(ret); }