Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/misc.cpp
Show First 20 Lines • Show All 134 Lines • ▼ Show 20 Lines | #endif | ||||
return obj; | return obj; | ||||
} | } | ||||
#ifdef ENABLE_WALLET | #ifdef ENABLE_WALLET | ||||
class DescribeAddressVisitor : public boost::static_visitor<UniValue> { | class DescribeAddressVisitor : public boost::static_visitor<UniValue> { | ||||
public: | public: | ||||
CWallet *const pwallet; | CWallet *const pwallet; | ||||
DescribeAddressVisitor(CWallet *_pwallet) : pwallet(_pwallet) {} | explicit DescribeAddressVisitor(CWallet *_pwallet) : pwallet(_pwallet) {} | ||||
UniValue operator()(const CNoDestination &dest) const { | UniValue operator()(const CNoDestination &dest) const { | ||||
return UniValue(UniValue::VOBJ); | return UniValue(UniValue::VOBJ); | ||||
} | } | ||||
UniValue operator()(const CKeyID &keyID) const { | UniValue operator()(const CKeyID &keyID) const { | ||||
UniValue obj(UniValue::VOBJ); | UniValue obj(UniValue::VOBJ); | ||||
CPubKey vchPubKey; | CPubKey vchPubKey; | ||||
▲ Show 20 Lines • Show All 544 Lines • Show Last 20 Lines |