Conversation
Coverage Report
📁 File Coverage (11 files)
|
brunomenezes
left a comment
There was a problem hiding this comment.
For DevNet, I think it's a no-brainer. Would Anvil support websockets? I am not sure if that would be faster, though.
Anvil does support WebSocket, but I tried to use it right now and it didn't work. I'll merge as is, and investigate that in the future. |
According to traefik docs it should be automatic, so I don't think it's Traefik's fault.
|
|
Opened a separate draft for WebSocket connection |
The default polling interval of the viem connection to anvil is the default block time divided by 3, which is 12s / 3 = 4s, which is very long.
The default block time is already being set to 2s.
In a local test environment I think we can set the polling interval to a very low value, so the
sendoperations are faster.I'm setting here to 200ms, which makes the average time to send an input from more than 8s, to less than 2s.