aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorMission Liao <mission.liao@dexon.org>2018-12-06 14:30:05 +0800
committerGitHub <noreply@github.com>2018-12-06 14:30:05 +0800
commit41753e517c68575589c485b3f9570db94e59bcd0 (patch)
tree88ca8e57415164bce765658f3f55d51e85646eb3 /cmd
parent4eb02f1dd96e136b0f7cf7eff792da1e44176713 (diff)
downloaddexon-consensus-41753e517c68575589c485b3f9570db94e59bcd0.tar
dexon-consensus-41753e517c68575589c485b3f9570db94e59bcd0.tar.gz
dexon-consensus-41753e517c68575589c485b3f9570db94e59bcd0.tar.bz2
dexon-consensus-41753e517c68575589c485b3f9570db94e59bcd0.tar.lz
dexon-consensus-41753e517c68575589c485b3f9570db94e59bcd0.tar.xz
dexon-consensus-41753e517c68575589c485b3f9570db94e59bcd0.tar.zst
dexon-consensus-41753e517c68575589c485b3f9570db94e59bcd0.zip
test: allow to log in test.State (#359)
Diffstat (limited to 'cmd')
-rw-r--r--cmd/dexcon-simulation-with-scheduler/main.go10
1 files changed, 7 insertions, 3 deletions
diff --git a/cmd/dexcon-simulation-with-scheduler/main.go b/cmd/dexcon-simulation-with-scheduler/main.go
index bf0708b..1ce9c99 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/common"
"github.com/dexon-foundation/dexon-consensus/core"
"github.com/dexon-foundation/dexon-consensus/core/test"
integration "github.com/dexon-foundation/dexon-consensus/integration_test"
@@ -82,9 +83,12 @@ func main() {
}
// Setup governance instance.
gov, err := test.NewGovernance(
- pubKeys,
- time.Duration(cfg.Networking.Mean)*time.Millisecond,
- core.ConfigRoundShift)
+ test.NewState(
+ pubKeys,
+ time.Duration(cfg.Networking.Mean)*time.Millisecond,
+ &common.NullLogger{},
+ true,
+ ), core.ConfigRoundShift)
if err != nil {
log.Fatal("could not setup governance: ", err)
}