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) --- simulation/node.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'simulation/node.go') diff --git a/simulation/node.go b/simulation/node.go index 806a2be..bacf86a 100644 --- a/simulation/node.go +++ b/simulation/node.go @@ -88,7 +88,12 @@ func newNode( // Sync config to state in governance. cConfig := config.Node.Consensus gov, err := test.NewGovernance( - []crypto.PublicKey{pubKey}, time.Millisecond, core.ConfigRoundShift) + test.NewState( + []crypto.PublicKey{pubKey}, + time.Millisecond, + &common.NullLogger{}, + true), + core.ConfigRoundShift) if err != nil { panic(err) } -- cgit v1.2.3