MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / LabelFromValue

Function LabelFromValue

src/wallet/rpc/util.cpp:101–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101std::string LabelFromValue(const UniValue& value)
102{
103 static const std::string empty_string;
104 if (value.isNull()) return empty_string;
105
106 const std::string& label{value.get_str()};
107 if (label == "*")
108 throw JSONRPCError(RPC_WALLET_INVALID_LABEL_NAME, "Invalid label name");
109 return label;
110}
111
112void PushParentDescriptors(const CWallet& wallet, const CScript& script_pubkey, UniValue& entry)
113{

Callers 7

getnewaddressFunction · 0.85
setlabelFunction · 0.85
getaddressesbylabelFunction · 0.85
backup.cppFile · 0.85
coins.cppFile · 0.85
listtransactionsFunction · 0.85
listsinceblockFunction · 0.85

Calls 2

JSONRPCErrorFunction · 0.85
isNullMethod · 0.80

Tested by

no test coverage detected