From 57965f1d1eddcac488d2879ddc7661b5bc404df0 Mon Sep 17 00:00:00 2001 From: Anxo Rodriguez Date: Sat, 7 Dec 2024 15:06:15 +0000 Subject: [PATCH] fix: fix update wrong metric (#174) # Description Follow up on https://github.com/cowprotocol/watch-tower/pull/173 The metric was wrong --- src/services/chain.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/chain.ts b/src/services/chain.ts index 6804772..bddf055 100644 --- a/src/services/chain.ts +++ b/src/services/chain.ts @@ -335,7 +335,7 @@ export class ChainContext { log.debug(`Watchdog timeout: ${watchdogTimeout} seconds`); let lastBlockReceived = lastProcessedBlock; provider.on("block", async (blockNumber: number) => { - metrics.blockHeight.labels(chainId.toString()).set(blockNumber); + metrics.blockHeightLatest.labels(chainId.toString()).set(blockNumber); try { log = getLogger({