| 43 | } |
| 44 | |
| 45 | bool GetWalletNameFromJSONRPCRequest(const JSONRPCRequest& request, std::string& wallet_name) |
| 46 | { |
| 47 | if (URL_DECODE && request.URI.substr(0, WALLET_ENDPOINT_BASE.size()) == WALLET_ENDPOINT_BASE) { |
| 48 | // wallet endpoint was used |
| 49 | wallet_name = URL_DECODE(request.URI.substr(WALLET_ENDPOINT_BASE.size())); |
| 50 | return true; |
| 51 | } |
| 52 | return false; |
| 53 | } |
| 54 | |
| 55 | std::shared_ptr<CWallet> GetWalletForJSONRPCRequest(const JSONRPCRequest& request) |
| 56 | { |
no test coverage detected