mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2025-03-17 21:31:42 +01:00
26 lines
1.1 KiB
Diff
26 lines
1.1 KiB
Diff
diff --git a/node_modules/rpc-bitcoin/build/src/rpc.d.ts b/node_modules/rpc-bitcoin/build/src/rpc.d.ts
|
|
index d25d732..ce4eb22 100644
|
|
--- a/node_modules/rpc-bitcoin/build/src/rpc.d.ts
|
|
+++ b/node_modules/rpc-bitcoin/build/src/rpc.d.ts
|
|
@@ -6,7 +6,7 @@ export declare type RPCIniOptions = RESTIniOptions & {
|
|
fullResponse?: boolean;
|
|
};
|
|
export declare type JSONRPC = {
|
|
- jsonrpc?: string | number;
|
|
+ jsonrpc?: string;
|
|
id?: string | number;
|
|
method: string;
|
|
params?: object;
|
|
diff --git a/node_modules/rpc-bitcoin/build/src/rpc.js b/node_modules/rpc-bitcoin/build/src/rpc.js
|
|
index 7fec7aa..3bee5fc 100644
|
|
--- a/node_modules/rpc-bitcoin/build/src/rpc.js
|
|
+++ b/node_modules/rpc-bitcoin/build/src/rpc.js
|
|
@@ -12,7 +12,7 @@ class RPCClient extends rest_1.RESTClient {
|
|
}
|
|
async rpc(method, params = {}, wallet) {
|
|
const uri = typeof wallet === "undefined" ? "/" : "wallet/" + wallet;
|
|
- const body = { method, params, jsonrpc: 1.0, id: "rpc-bitcoin" };
|
|
+ const body = { method, params, jsonrpc: "1.0", id: "rpc-bitcoin" };
|
|
try {
|
|
const response = await this.batch(body, uri);
|
|
return this.fullResponse ? response : response.result;
|