| 99 | } |
| 100 | |
| 101 | std::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 | |
| 112 | void PushParentDescriptors(const CWallet& wallet, const CScript& script_pubkey, UniValue& entry) |
| 113 | { |
no test coverage detected