Live page: the ?window=300 capture with a paid shard cell and its tooltip; header counts and the ingest keep-window follow the target scale (the 8 px/s floor was the adaptive scale's); counts right on the first poll; lock label backed; record rotation 80 blocks per tick
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
parent
771e00c3e1
commit
696f8d2330
2 changed files with 2 additions and 1 deletions
Binary file not shown.
|
Before Width: | Height: | Size: 185 KiB After Width: | Height: | Size: 203 KiB |
|
|
@ -308,6 +308,7 @@ footer{border-top:1px solid var(--line);padding-block:48px 32px}
|
|||
while(laneLast.length<laneN){laneLast.push(0);laneRun.push(0);}
|
||||
}
|
||||
function ingest(d){
|
||||
if(needSize)size(); // the first poll can land before the first frame; the counts below need the canvas width
|
||||
var now=performance.now();serverNow=new Date(d.now).getTime();serverAt=now;
|
||||
fin=d.finality||null;prov=d.proving||null;idents=d.state.miners_10m||0;
|
||||
d.blocks.forEach(function(b){var e=byHash[b.hash];
|
||||
|
|
@ -323,7 +324,7 @@ footer{border-top:1px solid var(--line);padding-block:48px 32px}
|
|||
for(id in miners)if(!miners[id].n)delete miners[id];
|
||||
bps=d.state.blocks_per_second_60s||0;
|
||||
pickLevel();layoutLanes();
|
||||
var vis=vnow()-((W-G)/Math.max(8,targetPx))*1000,on=0,chain=0,planned=0,proven=0;
|
||||
var vis=vnow()-((W-G)/Math.max(2,targetPx))*1000,on=0,chain=0,planned=0,proven=0;
|
||||
blocks.forEach(function(b){if(b.ts>vis){on++;if(b.chain){chain++;if(b.shards.length){planned++;if(b.proven)proven++;}}}});
|
||||
$('c-screen').textContent=on;$('c-chain').textContent=chain;$('c-idents').textContent=idents;
|
||||
var f=fin;$('c-locked').textContent=f&&f.latest_locked_index?('#'+f.latest_locked_index+(f.checkpoints&&f.checkpoints.length?', '+lockAge(f):'')):(f&&f.supported?'none yet':'n/a');
|
||||
|
|
|
|||
Loading…
Reference in a new issue