mirror of https://github.com/waku-org/nwaku.git
refactor: move app.nim and networks_config.nim to waku/factory (#2608)
This commit is contained in:
parent
39299ceac7
commit
1ba9df4be0
|
@ -30,7 +30,7 @@ import
|
||||||
../../waku/waku_relay,
|
../../waku/waku_relay,
|
||||||
../../waku/waku_rln_relay,
|
../../waku/waku_rln_relay,
|
||||||
../../waku/factory/builder,
|
../../waku/factory/builder,
|
||||||
../wakunode2/networks_config,
|
../../waku/factory/networks_config,
|
||||||
./networkmonitor_metrics,
|
./networkmonitor_metrics,
|
||||||
./networkmonitor_config,
|
./networkmonitor_config,
|
||||||
./networkmonitor_utils
|
./networkmonitor_utils
|
||||||
|
|
|
@ -17,8 +17,8 @@ import
|
||||||
../../tools/rln_db_inspector/rln_db_inspector,
|
../../tools/rln_db_inspector/rln_db_inspector,
|
||||||
../../waku/common/logging,
|
../../waku/common/logging,
|
||||||
../../waku/factory/external_config,
|
../../waku/factory/external_config,
|
||||||
./networks_config,
|
../../waku/factory/networks_config,
|
||||||
./app
|
../../waku/factory/app
|
||||||
|
|
||||||
logScope:
|
logScope:
|
||||||
topics = "wakunode main"
|
topics = "wakunode main"
|
||||||
|
|
|
@ -22,7 +22,7 @@ import
|
||||||
../../../../waku/waku_store,
|
../../../../waku/waku_store,
|
||||||
../../../../waku/factory/builder,
|
../../../../waku/factory/builder,
|
||||||
../../../../waku/factory/node_factory,
|
../../../../waku/factory/node_factory,
|
||||||
../../../apps/wakunode2/networks_config,
|
../../../../waku/factory/networks_config,
|
||||||
../../../events/[json_message_event, json_base_event],
|
../../../events/[json_message_event, json_base_event],
|
||||||
../../../alloc,
|
../../../alloc,
|
||||||
../../config
|
../../config
|
||||||
|
|
|
@ -11,7 +11,7 @@ import
|
||||||
libp2p/switch
|
libp2p/switch
|
||||||
import ../testlib/common, ../testlib/wakucore, ../testlib/wakunode
|
import ../testlib/common, ../testlib/wakucore, ../testlib/wakunode
|
||||||
|
|
||||||
include ../../apps/wakunode2/app
|
include ../../waku/factory/app
|
||||||
|
|
||||||
suite "Wakunode2 - App":
|
suite "Wakunode2 - App":
|
||||||
test "compilation version should be reported":
|
test "compilation version should be reported":
|
||||||
|
|
|
@ -155,7 +155,7 @@ proc init*(T: type App, conf: WakuNodeConf): Result[App, string] =
|
||||||
|
|
||||||
## Setup DiscoveryV5
|
## Setup DiscoveryV5
|
||||||
|
|
||||||
proc setupDiscoveryV5*(app: App): WakuDiscoveryV5 =
|
proc setupDiscoveryV5(app: App): WakuDiscoveryV5 =
|
||||||
let dynamicBootstrapEnrs =
|
let dynamicBootstrapEnrs =
|
||||||
app.dynamicBootstrapNodes.filterIt(it.hasUdpPort()).mapIt(it.enr.get())
|
app.dynamicBootstrapNodes.filterIt(it.hasUdpPort()).mapIt(it.enr.get())
|
||||||
|
|
Loading…
Reference in New Issue