aboutsummaryrefslogtreecommitdiffstats
path: root/simulation
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 /simulation
parent4eb02f1dd96e136b0f7cf7eff792da1e44176713 (diff)
downloadtangerine-consensus-41753e517c68575589c485b3f9570db94e59bcd0.tar
tangerine-consensus-41753e517c68575589c485b3f9570db94e59bcd0.tar.gz
tangerine-consensus-41753e517c68575589c485b3f9570db94e59bcd0.tar.bz2
tangerine-consensus-41753e517c68575589c485b3f9570db94e59bcd0.tar.lz
tangerine-consensus-41753e517c68575589c485b3f9570db94e59bcd0.tar.xz
tangerine-consensus-41753e517c68575589c485b3f9570db94e59bcd0.tar.zst
tangerine-consensus-41753e517c68575589c485b3f9570db94e59bcd0.zip
test: allow to log in test.State (#359)
Diffstat (limited to 'simulation')
-rw-r--r--simulation/node.go7
1 files changed, 6 insertions, 1 deletions
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)
}