mirror of
https://github.com/logos-storage/das-dht-emulator.git
synced 2026-01-03 13:43:07 +00:00
use Duration for delay_init
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
This commit is contained in:
parent
41c9307386
commit
ba6949dd1c
5
das.nim
5
das.nim
@ -94,12 +94,12 @@ when isMainModule:
|
||||
let
|
||||
nodecount = 100
|
||||
delay_pernode = 10 # in millisec
|
||||
delay_init = 15*1000 # in millisec
|
||||
blocksize = 256
|
||||
segmentsize = 2
|
||||
samplesize = 3
|
||||
upload_timeout = 5.seconds
|
||||
sampling_timeout = 5.seconds
|
||||
delay_init = 60.minutes
|
||||
assert(log2(blocksize.float).ceil.int <= segmentsize * 8 )
|
||||
assert(samplesize <= blocksize)
|
||||
|
||||
@ -112,7 +112,8 @@ when isMainModule:
|
||||
nodes = await bootstrapNetwork(nodecount=nodecount, delay=delay_pernode)
|
||||
|
||||
# wait for network to settle
|
||||
await sleepAsync(chronos.milliseconds(delay_init))
|
||||
info "waiting for DHT to settle"
|
||||
await sleepAsync(delay_init)
|
||||
|
||||
# generate block and push data
|
||||
info "starting upload to DHT"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user