fixup: tests: expose startup delay parameter

This commit is contained in:
Csaba Kiraly 2022-03-18 11:01:14 +01:00
parent d14222e8d1
commit 50df73da1b
1 changed files with 4 additions and 2 deletions

View File

@ -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