aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/request.cpp
diff options
context:
space:
mode:
authorMatthew Zipkin <pinheadmz@gmail.com>2024-06-06 10:25:48 -0400
committerMatthew Zipkin <pinheadmz@gmail.com>2024-06-07 09:26:55 -0400
commit391843b0297db03d71a8d88ab77609e2ad230bf2 (patch)
tree2e46338e53581a7aa0c6f5a823b36030facaacf7 /src/rpc/request.cpp
parentd39bdf339772166a5545ae811e58b7764af093a8 (diff)
downloadbitcoin-391843b0297db03d71a8d88ab77609e2ad230bf2.tar.xz
bitcoin-cli: use json-rpc 2.0
Diffstat (limited to 'src/rpc/request.cpp')
-rw-r--r--src/rpc/request.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rpc/request.cpp b/src/rpc/request.cpp
index d35782189e..87b9f18b33 100644
--- a/src/rpc/request.cpp
+++ b/src/rpc/request.cpp
@@ -45,6 +45,7 @@ UniValue JSONRPCRequestObj(const std::string& strMethod, const UniValue& params,
request.pushKV("method", strMethod);
request.pushKV("params", params);
request.pushKV("id", id);
+ request.pushKV("jsonrpc", "2.0");
return request;
}