Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion crates/net/rpc/static/fork_choice.html
Original file line number Diff line number Diff line change
Expand Up @@ -391,12 +391,14 @@

const flatNodes = allDescendants.map(d => {
const roles = nodeRoles(d.data, data);
// Finalized blocks are filled by default, otherwise scale by fork-choice weight.
const isFinalized = roles.includes("finalized");
return {
...d.data,
x: d.x,
y: d.y,
_color: roles.length > 0 ? COLORS[roles[0]] : COLORS.default,
_ratio: weightRatio(d.data, data.validator_count),
_ratio: isFinalized ? 1 : weightRatio(d.data, data.validator_count),
// Colors of secondary roles, in priority order (after the primary).
_haloColors: roles.slice(1).map(r => COLORS[r])
};
Expand Down