This commit is contained in:
Mihailo Milenkovic
2018-09-21 21:01:00 +02:00
parent 7340ace3b1
commit 5628e37d9e
2 changed files with 109 additions and 33 deletions

View File

@@ -5184,7 +5184,7 @@ UniValue channelsclose(const UniValue& params, bool fHelp)
throw runtime_error("to use CC contracts, you need to launch daemon with valid -pubkey= for an address in your wallet\n");
const CKeyStore& keystore = *pwalletMain;
LOCK2(cs_main, pwalletMain->cs_wallet);
opentxid = Parseuint256((char *)params[1].get_str().c_str());
opentxid = Parseuint256((char *)params[0].get_str().c_str());
hex = ChannelClose(0,opentxid);
if ( hex.size() > 0 )
{