From 41753e517c68575589c485b3f9570db94e59bcd0 Mon Sep 17 00:00:00 2001 From: Mission Liao Date: Thu, 6 Dec 2018 14:30:05 +0800 Subject: test: allow to log in test.State (#359) --- cmd/dexcon-simulation-with-scheduler/main.go | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'cmd') 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) } -- cgit v1.2.3