You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As observed in the integration tests of nim-codex, JSON-RPC calls to hardhat
using http (not websockets) are very slow. A single call to eth_call takes about 2-3 seconds.
This was also observed on fast machines. It seems to only occur on windows.
The text was updated successfully, but these errors were encountered:
markspanbroek
changed the title
eth_call json-rpc call over http slow on windows
eth_call over http slow on windows
Nov 14, 2024
I figured out what is causing this; apparently it takes windows 2-3 seconds to resolve "localhost" to "127.0.0.1" every time a JSON-RPC call is made over http 🤦. So you need to use "http://127.0.0.1:8545" instead of "http://localhost:8545" on windows. We should probably change the examples urls in nim-ethers to reflect this, and add a warning to the readme.
As observed in the integration tests of nim-codex, JSON-RPC calls to hardhat
using http (not websockets) are very slow. A single call to
eth_call
takes about 2-3 seconds.This was also observed on fast machines. It seems to only occur on windows.
The text was updated successfully, but these errors were encountered: