mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-06-15 11:51:02 +00:00
Add finalized block info (#104)
This commit is contained in:
@@ -14,6 +14,7 @@ import nodeTypeIcon from '../../icons/terminal.svg';
|
||||
import peersIcon from '../../icons/broadcast.svg';
|
||||
import transactionsIcon from '../../icons/inbox.svg';
|
||||
import blockIcon from '../../icons/package.svg';
|
||||
import finalizedIcon from '../../icons/milestone.svg';
|
||||
import blockHashIcon from '../../icons/file-binary.svg';
|
||||
import blockTimeIcon from '../../icons/history.svg';
|
||||
import propagationTimeIcon from '../../icons/dashboard.svg';
|
||||
@@ -233,6 +234,20 @@ export class Row extends React.Component<Row.Props, Row.State> {
|
||||
setting: 'blockhash',
|
||||
render: ({ hash }) => <Truncate position="right" text={hash} copy={true} />
|
||||
},
|
||||
{
|
||||
label: 'Finalized Block',
|
||||
icon: finalizedIcon,
|
||||
width: 88,
|
||||
setting: 'finalized',
|
||||
render: ({ finalized }) => `#${formatNumber(finalized)}`
|
||||
},
|
||||
{
|
||||
label: 'Finalized Block Hash',
|
||||
icon: blockHashIcon,
|
||||
width: 154,
|
||||
setting: 'finalizedhash',
|
||||
render: ({ finalizedHash }) => <Truncate position="right" text={finalizedHash} copy={true} />
|
||||
},
|
||||
{
|
||||
label: 'Block Time',
|
||||
icon: blockTimeIcon,
|
||||
|
||||
Reference in New Issue
Block a user