Skip to content

Commit

Permalink
Merge pull request flashbots#6 from flashbots/static-ethers-provider
Browse files Browse the repository at this point in the history
Switch from JsonRpcProvider => StaticJsonRpcProvider to avoid excessive eth_chainId calls
epheph authored Feb 9, 2021
2 parents 45e36b1 + 5698f06 commit 07968ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -29,7 +29,7 @@ if (FLASHBOTS_KEY_ID === "" || FLASHBOTS_SECRET === "") {

const HEALTHCHECK_URL = process.env.HEALTHCHECK_URL || ""

const provider = new providers.JsonRpcProvider(ETHEREUM_RPC_URL);
const provider = new providers.StaticJsonRpcProvider(ETHEREUM_RPC_URL);

function healthcheck() {
if (HEALTHCHECK_URL === "") {

0 comments on commit 07968ce

Please sign in to comment.