aboutsummaryrefslogtreecommitdiffstats
path: root/core/consensus_test.go
diff options
context:
space:
mode:
authorMission Liao <mission.liao@dexon.org>2018-11-01 14:53:31 +0800
committerGitHub <noreply@github.com>2018-11-01 14:53:31 +0800
commitebfa4a6164dab7db29859538c1aa0e9659bd951a (patch)
tree317ee8ee45194ec63b4475565bf91cc7862494db /core/consensus_test.go
parent56fe2ee9435a89a46c0f3d527580aac43c85dc65 (diff)
downloaddexon-consensus-ebfa4a6164dab7db29859538c1aa0e9659bd951a.tar
dexon-consensus-ebfa4a6164dab7db29859538c1aa0e9659bd951a.tar.gz
dexon-consensus-ebfa4a6164dab7db29859538c1aa0e9659bd951a.tar.bz2
dexon-consensus-ebfa4a6164dab7db29859538c1aa0e9659bd951a.tar.lz
dexon-consensus-ebfa4a6164dab7db29859538c1aa0e9659bd951a.tar.xz
dexon-consensus-ebfa4a6164dab7db29859538c1aa0e9659bd951a.tar.zst
dexon-consensus-ebfa4a6164dab7db29859538c1aa0e9659bd951a.zip
core: core.Lattice supports config change (#276)
Besides making core.Lattice supports config change, This PR also include the first test for below scenario: - Configuration changes are registered before test running - Those changes are carried/broadcasted as payload of blocks - Only one node would initiate these changes, however, all nodes would finally receive/apply those changes to their own test.Governance instance.
Diffstat (limited to 'core/consensus_test.go')
-rw-r--r--core/consensus_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/consensus_test.go b/core/consensus_test.go
index 1ba9fa0..40fad9b 100644
--- a/core/consensus_test.go
+++ b/core/consensus_test.go
@@ -178,7 +178,7 @@ func (s *ConsensusTestSuite) prepareConsensus(
conn *networkConnection) (
*test.App, *Consensus) {
- app := test.NewApp()
+ app := test.NewApp(nil)
db, err := blockdb.NewMemBackedBlockDB()
s.Require().NoError(err)
nID := types.NewNodeID(prvKey.PublicKey())