diff options
author | Fabian Jahr <fjahr@protonmail.com> | 2024-04-20 16:49:02 +0200 |
---|---|---|
committer | Fabian Jahr <fjahr@protonmail.com> | 2024-04-24 23:23:38 +0200 |
commit | 8f39aaae417c33490e0e41fb97620eb23ced3d05 (patch) | |
tree | 5e01b20657311dd75815eadfdefb6489eec08149 /src/wallet | |
parent | 650d43ec15f7a3ae38126f65ef8fa0b1fd3ee936 (diff) | |
download | bitcoin-8f39aaae417c33490e0e41fb97620eb23ced3d05.tar.xz |
refactor: Remove hooking code for urlDecode
The point of this was to be able to build bitcoin-tx and bitcoin-wallet without libevent, see #18504.
Now that we use our own implementation of urlDecode this is not needed anymore.
Co-authored-by: stickies-v <stickies-v@protonmail.com>
Diffstat (limited to 'src/wallet')
-rw-r--r-- | src/wallet/rpc/util.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/rpc/util.cpp b/src/wallet/rpc/util.cpp index f44ee7696c..eb081e765a 100644 --- a/src/wallet/rpc/util.cpp +++ b/src/wallet/rpc/util.cpp @@ -62,9 +62,9 @@ bool ParseIncludeWatchonly(const UniValue& include_watchonly, const CWallet& wal bool GetWalletNameFromJSONRPCRequest(const JSONRPCRequest& request, std::string& wallet_name) { - if (URL_DECODE && request.URI.starts_with(WALLET_ENDPOINT_BASE)) { + if (request.URI.starts_with(WALLET_ENDPOINT_BASE)) { // wallet endpoint was used - wallet_name = URL_DECODE(std::string_view{request.URI}.substr(WALLET_ENDPOINT_BASE.size())); + wallet_name = urlDecode(std::string_view{request.URI}.substr(WALLET_ENDPOINT_BASE.size())); return true; } return false; |