Skip to content

Commit

Permalink
site: show node as unhealthy after being 5 blocks behind instead of 1
Browse files Browse the repository at this point in the history
  • Loading branch information
hpihkala committed Aug 1, 2023
1 parent affe50c commit 8229950
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ethwatch-site/src/features/eventList/SeedNode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export function SeedNode({ id, blocksToShow }: { id: string, blocksToShow: numbe
let indicatorStyle: string
if (state.latestBlock && latestBlockInfo === state.latestBlock) {
indicatorStyle = `${styles.indicator} ${styles.healthy} ${styles.pulsating}`
} else if (state.latestBlock && state.latestBlock - latestBlockInfo <= 1) {
} else if (state.latestBlock && state.latestBlock - latestBlockInfo <= 5) {
indicatorStyle = `${styles.indicator} ${styles.healthy}`
} else {
indicatorStyle = `${styles.indicator}`
Expand Down

0 comments on commit 8229950

Please sign in to comment.