From cafa63fb2b8cace3f748a9fad15e649fbba5cf64 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 28 Aug 2018 02:42:02 -1100 Subject: [PATCH] Fix --- src/wallet/rpcwallet.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index 40376b572..114f4e22d 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -4894,7 +4894,7 @@ UniValue channelsaddress(const UniValue& params, bool fHelp) destpubkey = ParseHex(params[0].get_str().c_str()); pk = pubkey2pk(Mypubkey()); pk2 = pubkey2pk(destpubkey); - result = CCaddress(cp,(char *)"Channels",pubkey); + result = CCaddress(cp,(char *)"Channels",destpubkey); result.push_back(Pair("otherpubkey", params[0].get_str())); GetCCaddress1of2(cp,destaddr,pk,pk2); result.push_back(Pair("sendaddr",destaddr)); @@ -5089,7 +5089,7 @@ UniValue tokenaddress(const UniValue& params, bool fHelp) UniValue channelsopen(const UniValue& params, bool fHelp) { - UniValue result(UniValue::VOBJ); char destaddr[64]; int32_t numpayments,payment; std::vector destpub; struct CCcontract_info *cp,C; + UniValue result(UniValue::VOBJ); char destaddr[64]; int32_t numpayments,payment; std::vector destpub; struct CCcontract_info *cp,C; std::string hex; cp = CCinit(&C,EVAL_CHANNELS); if ( fHelp || params.size() != 3 ) throw runtime_error("channelsopen destpubkey numpayments payment\n");