Channelsinfo stub
This commit is contained in:
@@ -4897,9 +4897,7 @@ UniValue channelsaddress(const UniValue& params, bool fHelp)
|
||||
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));
|
||||
GetCCaddress1of2(cp,destaddr,pk2,pk);
|
||||
result.push_back(Pair("recvaddr",destaddr));
|
||||
result.push_back(Pair("channeladdress",destaddr));
|
||||
return(result);
|
||||
}
|
||||
|
||||
@@ -5087,6 +5085,15 @@ UniValue tokenaddress(const UniValue& params, bool fHelp)
|
||||
return(CCaddress(cp,(char *)"Assets",pubkey));
|
||||
}
|
||||
|
||||
UniValue channelsinfo(const UniValue& params, bool fHelp)
|
||||
{
|
||||
if ( fHelp || params.size() != 0 )
|
||||
throw runtime_error("channelsinfo\n");
|
||||
if ( ensure_CCrequirements() < 0 )
|
||||
throw runtime_error("to use CC contracts, you need to launch daemon with valid -pubkey= for an address in your wallet\n");
|
||||
return(ChannelsInfo());
|
||||
}
|
||||
|
||||
UniValue channelsopen(const UniValue& params, bool fHelp)
|
||||
{
|
||||
UniValue result(UniValue::VOBJ); char destaddr[64]; int32_t numpayments; int64_t payment; std::vector<unsigned char> destpub; struct CCcontract_info *cp,C; std::string hex;
|
||||
|
||||
Reference in New Issue
Block a user