don't auto mount network
This commit is contained in:
parent
c3df822724
commit
9b729e0d76
|
@ -11,10 +11,8 @@ import ../examples
|
|||
|
||||
proc generateNodes*(
|
||||
num: Natural,
|
||||
blocks: openArray[bt.Block] = [],
|
||||
secureManagers: openarray[SecureProtocol] = [
|
||||
SecureProtocol.Noise,
|
||||
]): seq[tuple[switch: Switch, blockexc: NetworkStore]] =
|
||||
blocks: openArray[bt.Block] = []):
|
||||
seq[tuple[switch: Switch, blockexc: NetworkStore]] =
|
||||
for i in 0..<num:
|
||||
let
|
||||
switch = newStandardSwitch(transportFlags = {ServerFlags.ReuseAddr})
|
||||
|
@ -25,8 +23,6 @@ proc generateNodes*(
|
|||
engine = BlockExcEngine.new(localStore, wallet, network, discovery)
|
||||
networkStore = NetworkStore.new(engine, localStore)
|
||||
|
||||
switch.mount(network)
|
||||
|
||||
switch.mount(network)
|
||||
result.add((switch, networkStore))
|
||||
|
||||
|
|
Loading…
Reference in New Issue