aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorMission Liao <mission.liao@dexon.org>2019-01-03 16:00:45 +0800
committerGitHub <noreply@github.com>2019-01-03 16:00:45 +0800
commit09a00a0580c2fd6e11b17f1793edca5f7bb2f5f8 (patch)
tree12362787be4d3b6bcd0051591a7bc0c60d859878 /cmd
parent5739e74781092ac09d8b3a575cddc71b50beedf4 (diff)
downloaddexon-consensus-09a00a0580c2fd6e11b17f1793edca5f7bb2f5f8.tar
dexon-consensus-09a00a0580c2fd6e11b17f1793edca5f7bb2f5f8.tar.gz
dexon-consensus-09a00a0580c2fd6e11b17f1793edca5f7bb2f5f8.tar.bz2
dexon-consensus-09a00a0580c2fd6e11b17f1793edca5f7bb2f5f8.tar.lz
dexon-consensus-09a00a0580c2fd6e11b17f1793edca5f7bb2f5f8.tar.xz
dexon-consensus-09a00a0580c2fd6e11b17f1793edca5f7bb2f5f8.tar.zst
dexon-consensus-09a00a0580c2fd6e11b17f1793edca5f7bb2f5f8.zip
simulation: add latency for gossip (#389)
Diffstat (limited to 'cmd')
-rw-r--r--cmd/dexcon-simulation-with-scheduler/main.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/dexcon-simulation-with-scheduler/main.go b/cmd/dexcon-simulation-with-scheduler/main.go
index 1ce9c99..8d59825 100644
--- a/cmd/dexcon-simulation-with-scheduler/main.go
+++ b/cmd/dexcon-simulation-with-scheduler/main.go
@@ -69,8 +69,8 @@ func main() {
}
// Setup latencies, nodes.
networkLatency := &test.NormalLatencyModel{
- Sigma: cfg.Networking.Sigma,
- Mean: cfg.Networking.Mean,
+ Sigma: cfg.Networking.Direct.Sigma,
+ Mean: cfg.Networking.Direct.Mean,
}
proposingLatency := &test.NormalLatencyModel{
Sigma: cfg.Node.Legacy.ProposeIntervalSigma,
@@ -85,7 +85,7 @@ func main() {
gov, err := test.NewGovernance(
test.NewState(
pubKeys,
- time.Duration(cfg.Networking.Mean)*time.Millisecond,
+ time.Duration(cfg.Networking.Direct.Mean)*time.Millisecond,
&common.NullLogger{},
true,
), core.ConfigRoundShift)