Tentative fix for the freezing Eth1 monitor activity

This commit is contained in:
Zahary Karadjov 2021-02-04 17:01:47 +02:00
parent 80c11546ff
commit 1394ef37fb
No known key found for this signature in database
GPG Key ID: C8936F8A3073D609
2 changed files with 4 additions and 2 deletions

View File

@ -1062,7 +1062,9 @@ proc startEth1Syncing(m: Eth1Monitor, delayBeforeStart: Duration) {.async.} =
if m.eth1Chain.hasConsensusViolation:
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()
if m.latestEth1BlockNumber <= m.preset.ETH1_FOLLOW_DISTANCE:

2
vendor/nim-eth vendored

@ -1 +1 @@
Subproject commit 4e58eb48ce1b1a06d28802ad22215de9ff92a916
Subproject commit e8c9691b35f4875d9a97193cb965fbf1a956dd7e