diff options
author | Jimmy Hu <jimmy.hu@dexon.org> | 2019-02-26 11:21:28 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-26 11:21:28 +0800 |
commit | fc8aae4eb1608ce574f853a1b1ecd60014886882 (patch) | |
tree | 8439c65d140393e7d43c9003a64ac9bda9298149 /core/test/state_test.go | |
parent | 929d41761b72abab106b5a4d627701d1c232e891 (diff) | |
download | tangerine-consensus-fc8aae4eb1608ce574f853a1b1ecd60014886882.tar tangerine-consensus-fc8aae4eb1608ce574f853a1b1ecd60014886882.tar.gz tangerine-consensus-fc8aae4eb1608ce574f853a1b1ecd60014886882.tar.bz2 tangerine-consensus-fc8aae4eb1608ce574f853a1b1ecd60014886882.tar.lz tangerine-consensus-fc8aae4eb1608ce574f853a1b1ecd60014886882.tar.xz tangerine-consensus-fc8aae4eb1608ce574f853a1b1ecd60014886882.tar.zst tangerine-consensus-fc8aae4eb1608ce574f853a1b1ecd60014886882.zip |
core: Change RoundInterval to RoundLength (#453)
Diffstat (limited to 'core/test/state_test.go')
-rw-r--r-- | core/test/state_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/test/state_test.go b/core/test/state_test.go index d92a8c1..9a68930 100644 --- a/core/test/state_test.go +++ b/core/test/state_test.go @@ -137,7 +137,7 @@ func (s *StateTestSuite) makeDKGChanges( func (s *StateTestSuite) makeConfigChanges(st *State) { st.RequestChange(StateChangeLambdaBA, time.Nanosecond) st.RequestChange(StateChangeLambdaDKG, time.Millisecond) - st.RequestChange(StateChangeRoundInterval, uint64(1001)) + st.RequestChange(StateChangeRoundLength, uint64(1001)) st.RequestChange(StateChangeMinBlockInterval, time.Second) st.RequestChange(StateChangeNotarySetSize, uint32(5)) st.RequestChange(StateChangeDKGSetSize, uint32(6)) @@ -147,7 +147,7 @@ func (s *StateTestSuite) checkConfigChanges(config *types.Config) { req := s.Require() req.Equal(config.LambdaBA, time.Nanosecond) req.Equal(config.LambdaDKG, time.Millisecond) - req.Equal(config.RoundInterval, uint64(1001)) + req.Equal(config.RoundLength, uint64(1001)) req.Equal(config.MinBlockInterval, time.Second) req.Equal(config.NotarySetSize, uint32(5)) req.Equal(config.DKGSetSize, uint32(6)) @@ -250,7 +250,7 @@ func (s *StateTestSuite) TestLocalMode() { // Check settings of config1 affected by genesisNodes and lambda. req.Equal(config1.LambdaBA, lambda) req.Equal(config1.LambdaDKG, lambda*10) - req.Equal(config1.RoundInterval, uint64(1000)) + req.Equal(config1.RoundLength, uint64(1000)) req.Equal(config1.NotarySetSize, uint32(len(genesisNodes))) req.Equal(config1.DKGSetSize, uint32(len(genesisNodes))) // Request some changes, every fields for config should be affected. |