Skip to content

render stale block header tree on website (like fork-observer) - #148

Merged
0xB10C merged 2 commits into
masterfrom
fork-observer-tree
Sep 25, 2026
Merged

0xB10C merged 2 commits into
masterfrom
fork-observer-tree

Conversation

@0xB10C

@0xB10C 0xB10C commented Sep 19, 2026 •

Copy link
Copy Markdown
Collaborator

This renders the full header tree on the website showing all stale blocks, similar to a static fork-observer.

@0xB10C

0xB10C commented Sep 19, 2026

Copy link
Copy Markdown
Collaborator Author

Looks similar to
image
and renders all blocks and forks in the dataset. Needed to do some frontend performance optimizations in fork-observer for this.

Still testing...

@0xB10C
0xB10C force-pushed the fork-observer-tree branch 2 times, most recently from 5ac6264 to 9c23a83 Compare September 24, 2026 04:55
@deadmanoz

Copy link
Copy Markdown
Contributor

Yeah this will be rad.

And then I think we need to combine the invalid-blocks into the visualisation at some point later too!? That is, I think we ideally want a visualisation that shows all Bitcoin mined-block activity

@0xB10C

0xB10C commented Sep 24, 2026

Copy link
Copy Markdown
Collaborator Author

Good idea. I guess that is something we can show on fork-observer instance by importing the blocks from stale-blocks and invalid-blocks! And/or on a static page.

@0xB10C
0xB10C marked this pull request as ready for review September 25, 2026 04:26
@0xB10C 0xB10C changed the title WIP: render stale block header tree on website (like fork-observer) render stale block header tree on website (like fork-observer) Sep 25, 2026
The deploy workflow now renders a header tree of every stale block with
a known header next to the main chain. It seeds a fork-observer
database with the main chain headers from block-dn.org and the stale
headers from stale-blocks.csv, starts fork-observer on it, and exports
the tree into site/tree for the dashboard to embed.

The binary is the fork-observer package of the 0xb10c/nix repository,
fetched from its cachix cache. The scripts and styles are those of
fork-observer's main branch. The page drawing the tree is our own: it
provides the little that fork-observer's main.js does on top of
blocktree.js on a live instance, and leaves out everything a snapshot
doesn't need.

A made-up "stale-blocks dataset" node marks the tips of the stale
branches, since no real node reports them, with the dataset's own
statuses: full-block and header-only, for what the dataset holds of
the block. Stale headers whose parent is unknown can't be placed in
the tree and are skipped.
Between the stale block rate chart and the list of blocks.
@0xB10C 0xB10C self-assigned this Sep 25, 2026
@0xB10C
0xB10C merged commit d25ecee into master Sep 25, 2026
4 checks passed
@0xB10C
0xB10C deleted the fork-observer-tree branch September 25, 2026 13:51
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