| 181 | } |
| 182 | |
| 183 | std::optional<std::string> RpcWalletName(const ArgsManager& args) |
| 184 | { |
| 185 | // Check IsArgNegated to return nullopt instead of "0" if -norpcwallet is specified |
| 186 | if (args.IsArgNegated("-rpcwallet")) return std::nullopt; |
| 187 | return args.GetArg("-rpcwallet"); |
| 188 | } |
| 189 | |
| 190 | // |
| 191 | // Exception thrown on connection error. This error is used to determine |
no test coverage detected