File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -48,17 +48,16 @@ proc getPortalRpc(conf: NimbusConf): Opt[PortalRpc] =
4848 Opt .none (PortalRpc )
4949
5050proc 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 =
You can’t perform that action at this time.
0 commit comments