Tentative fix for the freezing Eth1 monitor activity
This commit is contained in:
parent
80c11546ff
commit
1394ef37fb
|
@ -1062,7 +1062,9 @@ proc startEth1Syncing(m: Eth1Monitor, delayBeforeStart: Duration) {.async.} =
|
||||||
if m.eth1Chain.hasConsensusViolation:
|
if m.eth1Chain.hasConsensusViolation:
|
||||||
raise newException(CorruptDataProvider, "Eth1 chain contradicts Eth2 consensus")
|
raise newException(CorruptDataProvider, "Eth1 chain contradicts Eth2 consensus")
|
||||||
|
|
||||||
await m.eth1Progress.wait()
|
awaitWithTimeout(m.eth1Progress.wait(), 5.minutes):
|
||||||
|
raise newException(CorruptDataProvider, "No eth1 chain progress for too long")
|
||||||
|
|
||||||
m.eth1Progress.clear()
|
m.eth1Progress.clear()
|
||||||
|
|
||||||
if m.latestEth1BlockNumber <= m.preset.ETH1_FOLLOW_DISTANCE:
|
if m.latestEth1BlockNumber <= m.preset.ETH1_FOLLOW_DISTANCE:
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 4e58eb48ce1b1a06d28802ad22215de9ff92a916
|
Subproject commit e8c9691b35f4875d9a97193cb965fbf1a956dd7e
|
Loading…
Reference in New Issue