aboutsummaryrefslogtreecommitdiffstats
path: root/core/consensus_test.go
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2018-08-10 15:12:56 +0800
committerJimmy Hu <jimmy.hu@dexon.org>2018-08-10 15:12:56 +0800
commit09a0ab086cdafcb27b74e6346efdc8e96ca8145d (patch)
treec14bda316a48c94e5300b5799f152a82f0594558 /core/consensus_test.go
parent03917cdfa1f762849541e1bed31394340ed1f957 (diff)
downloaddexon-consensus-09a0ab086cdafcb27b74e6346efdc8e96ca8145d.tar
dexon-consensus-09a0ab086cdafcb27b74e6346efdc8e96ca8145d.tar.gz
dexon-consensus-09a0ab086cdafcb27b74e6346efdc8e96ca8145d.tar.bz2
dexon-consensus-09a0ab086cdafcb27b74e6346efdc8e96ca8145d.tar.lz
dexon-consensus-09a0ab086cdafcb27b74e6346efdc8e96ca8145d.tar.xz
dexon-consensus-09a0ab086cdafcb27b74e6346efdc8e96ca8145d.tar.zst
dexon-consensus-09a0ab086cdafcb27b74e6346efdc8e96ca8145d.zip
core: update governance interface and move K into config (#40)
Diffstat (limited to 'core/consensus_test.go')
-rw-r--r--core/consensus_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/consensus_test.go b/core/consensus_test.go
index 1544818..beeb1a7 100644
--- a/core/consensus_test.go
+++ b/core/consensus_test.go
@@ -53,7 +53,7 @@ func (s *ConsensusTestSuite) prepareGenesisBlock(
return block
}
-func (s *ConsensusTestSuite) prepareConsensus(gov *test.Gov) (
+func (s *ConsensusTestSuite) prepareConsensus(gov *test.Governance) (
*test.App, *Consensus) {
app := test.NewApp()
@@ -77,7 +77,7 @@ func (s *ConsensusTestSuite) TestSimpleDeliverBlock() {
// This test case only works for Total Ordering with K=0.
var (
minInterval = 50 * time.Millisecond
- gov = test.NewGov(4, 1000)
+ gov = test.NewGovernance(4, 1000)
req = s.Require()
validators []types.ValidatorID
)
@@ -262,7 +262,7 @@ func (s *ConsensusTestSuite) TestPrepareBlock() {
// - Make sure Consensus.PrepareBlock would only attempt to
// ack the prepared block.
var (
- gov = test.NewGov(4, 1000)
+ gov = test.NewGovernance(4, 1000)
req = s.Require()
validators []types.ValidatorID
)