Skip to content

Commit 1394ef3

Browse files
committed
Tentative fix for the freezing Eth1 monitor activity
1 parent 80c1154 commit 1394ef3

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

beacon_chain/eth1_monitor.nim

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1062,7 +1062,9 @@ proc startEth1Syncing(m: Eth1Monitor, delayBeforeStart: Duration) {.async.} =
10621062
if m.eth1Chain.hasConsensusViolation:
10631063
raise newException(CorruptDataProvider, "Eth1 chain contradicts Eth2 consensus")
10641064

1065-
await m.eth1Progress.wait()
1065+
awaitWithTimeout(m.eth1Progress.wait(), 5.minutes):
1066+
raise newException(CorruptDataProvider, "No eth1 chain progress for too long")
1067+
10661068
m.eth1Progress.clear()
10671069

10681070
if m.latestEth1BlockNumber <= m.preset.ETH1_FOLLOW_DISTANCE:

0 commit comments

Comments
 (0)