aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorMission Liao <mission.liao@dexon.org>2018-11-13 16:28:24 +0800
committerGitHub <noreply@github.com>2018-11-13 16:28:24 +0800
commit01642721a7768218e7f9a5be8f0829eb8ae7c7b1 (patch)
treea8ebe89570de317d7be047f32c8c35334e78c919 /cmd
parent86838fe70789292de0851f82426e5241c0f0cc96 (diff)
downloaddexon-consensus-01642721a7768218e7f9a5be8f0829eb8ae7c7b1.tar
dexon-consensus-01642721a7768218e7f9a5be8f0829eb8ae7c7b1.tar.gz
dexon-consensus-01642721a7768218e7f9a5be8f0829eb8ae7c7b1.tar.bz2
dexon-consensus-01642721a7768218e7f9a5be8f0829eb8ae7c7b1.tar.lz
dexon-consensus-01642721a7768218e7f9a5be8f0829eb8ae7c7b1.tar.xz
dexon-consensus-01642721a7768218e7f9a5be8f0829eb8ae7c7b1.tar.zst
dexon-consensus-01642721a7768218e7f9a5be8f0829eb8ae7c7b1.zip
core: expose implicit round shift (#321)
Diffstat (limited to 'cmd')
-rw-r--r--cmd/dexcon-simulation-with-scheduler/main.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/cmd/dexcon-simulation-with-scheduler/main.go b/cmd/dexcon-simulation-with-scheduler/main.go
index 8b7c252..bf0708b 100644
--- a/cmd/dexcon-simulation-with-scheduler/main.go
+++ b/cmd/dexcon-simulation-with-scheduler/main.go
@@ -29,6 +29,7 @@ import (
"runtime/pprof"
"time"
+ "github.com/dexon-foundation/dexon-consensus/core"
"github.com/dexon-foundation/dexon-consensus/core/test"
integration "github.com/dexon-foundation/dexon-consensus/integration_test"
"github.com/dexon-foundation/dexon-consensus/simulation/config"
@@ -81,7 +82,9 @@ func main() {
}
// Setup governance instance.
gov, err := test.NewGovernance(
- pubKeys, time.Duration(cfg.Networking.Mean)*time.Millisecond)
+ pubKeys,
+ time.Duration(cfg.Networking.Mean)*time.Millisecond,
+ core.ConfigRoundShift)
if err != nil {
log.Fatal("could not setup governance: ", err)
}