From 6103edf4a44691d3194cee88f886662bb3f2a7b0 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Tue, 5 Jul 2022 14:09:50 -0400 Subject: [PATCH] *Optimize SPVNode config --- src/rpc/handshake.ts | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/rpc/handshake.ts b/src/rpc/handshake.ts index ac7e705..48c3c24 100644 --- a/src/rpc/handshake.ts +++ b/src/rpc/handshake.ts @@ -1,4 +1,3 @@ -import { createRequire } from "module"; import { RpcMethodList } from "./index.js"; // @ts-ignore import rand from "random-key"; @@ -11,9 +10,6 @@ import { HSD_PORT, HSD_USE_EXTERNAL_NODE, } from "../constants.js"; - -const require = createRequire(import.meta.url); - const { NodeClient } = require("hs-client"); let hsdServer: SPVNode; @@ -34,14 +30,14 @@ if (!HSD_USE_EXTERNAL_NODE) { config: false, argv: false, env: true, + noDns: true, + httpHost: "127.0.0.1", + apiKey: clientArgs.apiKey, logFile: false, logConsole: false, logLevel: "info", - memory: false, workers: true, - listen: false, network: "main", - loader: require, }); } else { clientArgs = {