Skip to content

feat: implement block subscription and enhance polling mechanisms for improved dashboard updates#403

Open
XJuanCarlosXD wants to merge 1 commit into
mainfrom
feature/implement-block-suscription
Open

feat: implement block subscription and enhance polling mechanisms for improved dashboard updates#403
XJuanCarlosXD wants to merge 1 commit into
mainfrom
feature/implement-block-suscription

Conversation

@XJuanCarlosXD
Copy link
Copy Markdown
Collaborator

The explorer dashboard now auto-refreshes whenever a new block arrives, and the console is no longer flooded with errors when the RPC node is degraded. A new global block subscription detects when the chain height advances and refreshes the entire dashboard at once, so blocks, transactions, validators, and stats stay in sync without needing a manual page reload.

All RPC traffic is routed through a same-origin proxy in both production and local development, which fixes the CORS errors that appeared on deploys other than the main domain and on localhost. The blocks query was simplified to a single request per cycle instead of ten parallel ones, and all polling queries now back off automatically when the upstream node fails so the dashboard stops hammering a node that is returning 502s. The check interval was lowered to 1 second, and all internal console.log noise was removed.

@rem1niscence

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant