aboutsummaryrefslogtreecommitdiffstats
path: root/core/compaction-chain_test.go
diff options
context:
space:
mode:
authorMission Liao <mission.liao@dexon.org>2018-11-13 16:28:24 +0800
committerGitHub <noreply@github.com>2018-11-13 16:28:24 +0800
commit01642721a7768218e7f9a5be8f0829eb8ae7c7b1 (patch)
treea8ebe89570de317d7be047f32c8c35334e78c919 /core/compaction-chain_test.go
parent86838fe70789292de0851f82426e5241c0f0cc96 (diff)
downloadtangerine-consensus-01642721a7768218e7f9a5be8f0829eb8ae7c7b1.tar
tangerine-consensus-01642721a7768218e7f9a5be8f0829eb8ae7c7b1.tar.gz
tangerine-consensus-01642721a7768218e7f9a5be8f0829eb8ae7c7b1.tar.bz2
tangerine-consensus-01642721a7768218e7f9a5be8f0829eb8ae7c7b1.tar.lz
tangerine-consensus-01642721a7768218e7f9a5be8f0829eb8ae7c7b1.tar.xz
tangerine-consensus-01642721a7768218e7f9a5be8f0829eb8ae7c7b1.tar.zst
tangerine-consensus-01642721a7768218e7f9a5be8f0829eb8ae7c7b1.zip
core: expose implicit round shift (#321)
Diffstat (limited to 'core/compaction-chain_test.go')
-rw-r--r--core/compaction-chain_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/compaction-chain_test.go b/core/compaction-chain_test.go
index a511dc8..2767d2d 100644
--- a/core/compaction-chain_test.go
+++ b/core/compaction-chain_test.go
@@ -38,7 +38,8 @@ func (s *CompactionChainTestSuite) SetupTest() {
func (s *CompactionChainTestSuite) newCompactionChain() *compactionChain {
_, pubKeys, err := test.NewKeys(4)
s.Require().NoError(err)
- gov, err := test.NewGovernance(pubKeys, 100*time.Millisecond)
+ gov, err := test.NewGovernance(
+ pubKeys, 100*time.Millisecond, ConfigRoundShift)
s.Require().NoError(err)
cc := newCompactionChain(gov)
cc.init(&types.Block{})