Skip to content

Commit 04d44e2

Browse files
authored
fix: portal initiation logging (#3243)
1 parent 8ba7065 commit 04d44e2

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

execution_chain/portal/portal.nim

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,17 +48,16 @@ proc getPortalRpc(conf: NimbusConf): Opt[PortalRpc] =
4848
Opt.none(PortalRpc)
4949

5050
proc init*(T: type HistoryExpiryRef, conf: NimbusConf, com: CommonRef): T =
51-
# Portal is only available for mainnet
52-
notice "Initiating Portal with the following config",
51+
if not conf.historyExpiry:
52+
# history expiry haven't been activated yet
53+
return nil
54+
55+
info "Initiating Portal with the following config",
5356
portalUrl = conf.portalUrl,
5457
historyExpiry = conf.historyExpiry,
5558
networkId = com.networkId,
5659
portalLimit = conf.historyExpiryLimit
5760

58-
if not conf.historyExpiry:
59-
# history expiry haven't been activated yet
60-
return nil
61-
6261
let
6362
rpc = conf.getPortalRpc()
6463
portalEnabled =

0 commit comments

Comments
 (0)