| 51 | } |
| 52 | |
| 53 | std::optional<std::string> GetWalletNameFromJSONRPCRequest(const JSONRPCRequest& request) |
| 54 | { |
| 55 | if (request.URI.starts_with(WALLET_ENDPOINT_BASE)) { |
| 56 | // wallet endpoint was used |
| 57 | return UrlDecode(std::string_view{request.URI}.substr(WALLET_ENDPOINT_BASE.size())); |
| 58 | } |
| 59 | return std::nullopt; |
| 60 | } |
| 61 | |
| 62 | std::shared_ptr<CWallet> GetWalletForJSONRPCRequest(const JSONRPCRequest& request) |
| 63 | { |
no test coverage detected