From dc647f169e7a4126c1f6d51a3999d14feb232444 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Tue, 5 Jul 2022 16:22:41 -0400 Subject: [PATCH] *createRequire needed again --- src/rpc/handshake.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rpc/handshake.ts b/src/rpc/handshake.ts index 6fee46d..63c25f2 100644 --- a/src/rpc/handshake.ts +++ b/src/rpc/handshake.ts @@ -4,7 +4,9 @@ import rand from "random-key"; // @ts-ignore import SPVNode from "hsd/lib/node/spvnode.js"; import config from "../config.js"; +import { createRequire } from "module"; +const require = createRequire(import.meta.url); const { NodeClient } = require("hs-client"); let hsdServer: SPVNode;