Skip to content

Commit 93548c2

Browse files
committed
fix broken startNodeHeight which broke the ETA timer
1 parent 63b676e commit 93548c2

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning].
77

88
## [Unreleased]
99

10+
## [1.3.2] - 2024-05-06
11+
12+
### Fixed
13+
14+
- fix broken startNodeHeight which broke the ETA timer
15+
1016
## [1.3.1] - 2024-05-02
1117

1218
### Changed

src/routes/Dashboard.svelte

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,8 @@
207207
}
208208
209209
nodeHeight = await myNode.eth.getBlockNumber();
210+
// set the startNodeHeight once
211+
if(startNodeHeight === undefined) startNodeHeight = nodeHeight;
210212
chainHeight = await L2TaikoRPC.eth.getBlockNumber();
211213
212214
/*
@@ -380,10 +382,6 @@
380382
// Initialize the RPC connections
381383
await initConnections();
382384
383-
// Set startNodeHeight of the node if the RPC is successfully set
384-
if(!fetchMyNodeError && myNode)
385-
myNode.eth.getBlockNumber().then((height) => (startNodeHeight = height));
386-
387385
// Interval to fetch metrics every 5 seconds
388386
intervalTimer = setInterval(async () => {
389387
try {

0 commit comments

Comments
 (0)