| 116 | } |
| 117 | |
| 118 | std::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 | |
| 126 | void HandleWalletError(const std::shared_ptr<CWallet> wallet, DatabaseStatus& status, bilingual_str& error) |
| 127 | { |
no test coverage detected