LayerTwo-Labs / sidesail

A work-in-progress sidechain UI.
MIT License
6 stars 4 forks source link

less agressive rpcing #165

Closed octobocto closed 3 months ago

octobocto commented 3 months ago

Prior to this PR, we were very aggressive in fetching the block count. During startup, as fast as we could. After startup, ~3 block count fetchers were started, when only one was needed. That in turn, lead to "work queue depth exceeded".

After this PR, we only start one connection timer per chain. One for mainchain, another for sidechain. Also remove the super-aggressive startup-fetcher. In sum, we are much nicer to the node.