Fix missing eraDir in path for filename in portal_bridge (#2510)

This commit is contained in:
Kim De Mey 2024-07-22 11:48:21 +02:00 committed by GitHub
parent 157fb4f1ef
commit 5dfbebd4c0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -8,6 +8,7 @@
{.push raises: [].}
import
std/os,
chronos,
chronicles,
web3/[eth_api, eth_api_types],
@ -341,7 +342,7 @@ proc runBackfillLoop(
# Grab a random era1 to backfill
era = rng[].rand(int(era(network_metadata.mergeBlockNumber - 1)))
root = accumulator.historicalEpochs[era]
eraFile = era1FileName("mainnet", Era1(era), Digest(data: root))
eraFile = era1Dir / era1FileName("mainnet", Era1(era), Digest(data: root))
# Note:
# There are two design options here: