aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/request.h
diff options
context:
space:
mode:
authorMatthew Zipkin <pinheadmz@gmail.com>2023-07-07 14:41:23 -0400
committerMatthew Zipkin <pinheadmz@gmail.com>2024-05-14 10:39:43 -0400
commit466b90562f4785de74b548f7c4a256069e2aaf43 (patch)
treeb911c6d48f8bf93c91b1c39f210a67bc8c2efee5 /src/rpc/request.h
parent2ca1460ae3a7217eaa8c5972515bf622bedadfce (diff)
downloadbitcoin-466b90562f4785de74b548f7c4a256069e2aaf43.tar.xz
rpc: Add "jsonrpc" field and drop null "result"/"error" fields
Only for JSON-RPC 2.0 requests.
Diffstat (limited to 'src/rpc/request.h')
-rw-r--r--src/rpc/request.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/request.h b/src/rpc/request.h
index 8b72172695..a7c9af2216 100644
--- a/src/rpc/request.h
+++ b/src/rpc/request.h
@@ -17,7 +17,7 @@ enum class JSONRPCVersion {
};
UniValue JSONRPCRequestObj(const std::string& strMethod, const UniValue& params, const UniValue& id);
-UniValue JSONRPCReplyObj(UniValue result, UniValue error, UniValue id);
+UniValue JSONRPCReplyObj(UniValue result, UniValue error, UniValue id, JSONRPCVersion jsonrpc_version);
UniValue JSONRPCError(int code, const std::string& message);
/** Generate a new RPC authentication cookie and write it to disk */