Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
fix: work around a Node v20 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmurdoch committed Jun 29, 2023
1 parent c69ab88 commit 667d36f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/ethereum/ethereum/src/forking/handlers/http-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ import { BaseHandler } from "./base-handler";
import { Handler } from "../types";
import Deferred from "../deferred";

const net = require("net");
// work around a node v20 bug: https://github.com/nodejs/node/issues/47822#issuecomment-1564708870
if (net.setDefaultAutoSelectFamily) {
net.setDefaultAutoSelectFamily(false);
}

const { JSONRPC_PREFIX } = BaseHandler;

export class HttpHandler extends BaseHandler implements Handler {
Expand Down

0 comments on commit 667d36f

Please sign in to comment.