From 5dfbebd4c0673897b8bd04e74f57d6c1cac44c69 Mon Sep 17 00:00:00 2001 From: Kim De Mey Date: Mon, 22 Jul 2024 11:48:21 +0200 Subject: [PATCH] Fix missing eraDir in path for filename in portal_bridge (#2510) --- fluffy/tools/portal_bridge/portal_bridge_history.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fluffy/tools/portal_bridge/portal_bridge_history.nim b/fluffy/tools/portal_bridge/portal_bridge_history.nim index bb980d2b5..3f62a9075 100644 --- a/fluffy/tools/portal_bridge/portal_bridge_history.nim +++ b/fluffy/tools/portal_bridge/portal_bridge_history.nim @@ -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: