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;