Skip to content

Commit

Permalink
change last block timestamp collection to seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
g11tech committed Aug 2, 2022
1 parent e0c642e commit 6c5cd12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dashboards/lodestar_general.json
Original file line number Diff line number Diff line change
Expand Up @@ -5373,7 +5373,7 @@
"targets": [
{
"exemplar": false,
"expr": "lodestar_eth1_latest_block_timestamp",
"expr": "lodestar_eth1_latest_block_timestamp * 1000",
"hide": false,
"interval": "",
"legendFormat": "latest block ttd",
Expand Down
2 changes: 1 addition & 1 deletion packages/beacon-node/src/eth1/eth1MergeBlockTracker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export class Eth1MergeBlockTracker {
// Set latestBlock stats
metrics.eth1.eth1LatestBlockNumber.set(this.latestEth1Block.number);
metrics.eth1.eth1LatestBlockTD.set(Number(this.latestEth1Block.totalDifficulty / this.safeTDFactor));
metrics.eth1.eth1LatestBlockTimestamp.set(this.latestEth1Block.timestamp * 1000);
metrics.eth1.eth1LatestBlockTimestamp.set(this.latestEth1Block.timestamp);
}
});
}
Expand Down

0 comments on commit 6c5cd12

Please sign in to comment.