diff options
author | Matthew Zipkin <pinheadmz@gmail.com> | 2023-07-07 14:41:23 -0400 |
---|---|---|
committer | Matthew Zipkin <pinheadmz@gmail.com> | 2024-05-14 11:15:54 -0400 |
commit | bf1a1f1662427fbf1a43bb951364eface469bdb7 (patch) | |
tree | 40c6da6c106ed68bf368cc2e52496f492866c563 /src/rpc/server.h | |
parent | 466b90562f4785de74b548f7c4a256069e2aaf43 (diff) | |
download | bitcoin-bf1a1f1662427fbf1a43bb951364eface469bdb7.tar.xz |
rpc: Avoid returning HTTP errors for JSON-RPC 2.0 requests
Avoid returning HTTP status errors for non-batch JSON-RPC 2.0 requests if the
RPC method failed but the HTTP request was otherwise valid. Batch requests
already did not return HTTP errors previously.
Diffstat (limited to 'src/rpc/server.h')
-rw-r--r-- | src/rpc/server.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/server.h b/src/rpc/server.h index 2761bcd9db..c0e7bc04ad 100644 --- a/src/rpc/server.h +++ b/src/rpc/server.h @@ -181,7 +181,7 @@ extern CRPCTable tableRPC; void StartRPC(); void InterruptRPC(); void StopRPC(); -UniValue JSONRPCExec(const JSONRPCRequest& jreq); +UniValue JSONRPCExec(const JSONRPCRequest& jreq, bool catch_errors); // Drop witness when serializing for RPC? bool RPCSerializationWithoutWitness(); |