Skip to content

fix: limit the amount of blocks in explorer#124

Open
voliva wants to merge 1 commit intomainfrom
vo/blocks-perf
Open

fix: limit the amount of blocks in explorer#124
voliva wants to merge 1 commit intomainfrom
vo/blocks-perf

Conversation

@voliva
Copy link
Contributor

@voliva voliva commented Mar 18, 2026

Previously, we were keeping every block for up to 1 hour. However, with the new block time (2s) it increases past a point where the Block explorer starts lagging.

This PR changes the limit to height: Every block will stay in memory until there are 600 on top of it (so it's the equivalent of what we had before)

There's a further optimisation of virtualising the list, but this adds more challenges (specially for the split Block + Events view in wide screen and stacked in narrow screen), double scrolls, we lose Ctrl+F accessibility, etc. I started working on this, but I dropped it for all these reasons.... might re-pick it later if we have bandwidth.

@voliva voliva requested review from carlosala and josepot March 18, 2026 14:25
@vercel
Copy link

vercel bot commented Mar 18, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
papi-console Ready Ready Preview, Comment Mar 18, 2026 2:25pm

Request Review

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.

2 participants