fixup: tests: expose startup delay parameter
This commit is contained in:
parent
d14222e8d1
commit
50df73da1b
|
@ -47,7 +47,8 @@ proc bootstrapNodes(
|
||||||
|
|
||||||
proc bootstrapNetwork(
|
proc bootstrapNetwork(
|
||||||
nodecount: int,
|
nodecount: int,
|
||||||
rng = keys.newRng()
|
rng = keys.newRng(),
|
||||||
|
delay: int = 0
|
||||||
) : Future[seq[(discv5_protocol.Protocol, keys.PrivateKey)]] {.async.} =
|
) : Future[seq[(discv5_protocol.Protocol, keys.PrivateKey)]] {.async.} =
|
||||||
|
|
||||||
let
|
let
|
||||||
|
@ -60,7 +61,8 @@ proc bootstrapNetwork(
|
||||||
|
|
||||||
var res = await bootstrapNodes(nodecount - 1,
|
var res = await bootstrapNodes(nodecount - 1,
|
||||||
@[bootnode.localNode.record],
|
@[bootnode.localNode.record],
|
||||||
rng)
|
rng,
|
||||||
|
delay)
|
||||||
res.insert((bootNode, bootNodeKey), 0)
|
res.insert((bootNode, bootNodeKey), 0)
|
||||||
return res
|
return res
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue