Fix missing eraDir in path for filename in portal_bridge (#2510)
This commit is contained in:
parent
157fb4f1ef
commit
5dfbebd4c0
|
@ -8,6 +8,7 @@
|
||||||
{.push raises: [].}
|
{.push raises: [].}
|
||||||
|
|
||||||
import
|
import
|
||||||
|
std/os,
|
||||||
chronos,
|
chronos,
|
||||||
chronicles,
|
chronicles,
|
||||||
web3/[eth_api, eth_api_types],
|
web3/[eth_api, eth_api_types],
|
||||||
|
@ -341,7 +342,7 @@ proc runBackfillLoop(
|
||||||
# Grab a random era1 to backfill
|
# Grab a random era1 to backfill
|
||||||
era = rng[].rand(int(era(network_metadata.mergeBlockNumber - 1)))
|
era = rng[].rand(int(era(network_metadata.mergeBlockNumber - 1)))
|
||||||
root = accumulator.historicalEpochs[era]
|
root = accumulator.historicalEpochs[era]
|
||||||
eraFile = era1FileName("mainnet", Era1(era), Digest(data: root))
|
eraFile = era1Dir / era1FileName("mainnet", Era1(era), Digest(data: root))
|
||||||
|
|
||||||
# Note:
|
# Note:
|
||||||
# There are two design options here:
|
# There are two design options here:
|
||||||
|
|
Loading…
Reference in New Issue