*Optimize SPVNode config

This commit is contained in:
Derrick Hammer 2022-07-05 14:09:50 -04:00
parent 8f74b249da
commit 6103edf4a4
1 changed files with 3 additions and 7 deletions

View File

@ -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 = {