MCPcopy Create free account
hub / github.com/ElementsProject/elements / LabelFromValue

Function LabelFromValue

src/wallet/rpc/util.cpp:118–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118std::string LabelFromValue(const UniValue& value)
119{
120 std::string label = value.get_str();
121 if (label == "*")
122 throw JSONRPCError(RPC_WALLET_INVALID_LABEL_NAME, "Invalid label name");
123 return label;
124}
125
126void HandleWalletError(const std::shared_ptr<CWallet> wallet, DatabaseStatus& status, bilingual_str& error)
127{

Callers 5

getnewaddressFunction · 0.85
setlabelFunction · 0.85
addmultisigaddressFunction · 0.85
getaddressesbylabelFunction · 0.85
coins.cppFile · 0.85

Calls 1

JSONRPCErrorFunction · 0.85

Tested by

no test coverage detected