diff options
author | Mission Liao <mission.liao@dexon.org> | 2019-02-20 12:53:18 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-20 12:53:18 +0800 |
commit | 8ef4fc213703620fbfa13890dee042d40eea8545 (patch) | |
tree | ba9a07d2423314396e5677b7294122caa505ae9a /core/utils/nodeset-cache_test.go | |
parent | 2cf18fd299ea0fc270b213343314cab652cac271 (diff) | |
download | dexon-consensus-8ef4fc213703620fbfa13890dee042d40eea8545.tar dexon-consensus-8ef4fc213703620fbfa13890dee042d40eea8545.tar.gz dexon-consensus-8ef4fc213703620fbfa13890dee042d40eea8545.tar.bz2 dexon-consensus-8ef4fc213703620fbfa13890dee042d40eea8545.tar.lz dexon-consensus-8ef4fc213703620fbfa13890dee042d40eea8545.tar.xz dexon-consensus-8ef4fc213703620fbfa13890dee042d40eea8545.tar.zst dexon-consensus-8ef4fc213703620fbfa13890dee042d40eea8545.zip |
core: switch round by block height (#450)
Diffstat (limited to 'core/utils/nodeset-cache_test.go')
-rw-r--r-- | core/utils/nodeset-cache_test.go | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/core/utils/nodeset-cache_test.go b/core/utils/nodeset-cache_test.go index eb6008d..52036b5 100644 --- a/core/utils/nodeset-cache_test.go +++ b/core/utils/nodeset-cache_test.go @@ -38,9 +38,8 @@ func (g *nsIntf) Configuration(round uint64) (cfg *types.Config) { return &types.Config{ NotarySetSize: 7, DKGSetSize: 7, - NumChains: 4, + RoundInterval: 60, LambdaBA: 250 * time.Millisecond, - RoundInterval: 60 * time.Second, MinBlockInterval: 1 * time.Second, } } @@ -89,16 +88,15 @@ func (s *NodeSetCacheTestSuite) TestBasicUsage() { nodeSet0, err := cache.GetNodeSet(0) req.NoError(err) chk(cache, 0, nodeSet0.IDs) - notarySet, err := cache.GetNotarySet(0, 0) + notarySet, err := cache.GetNotarySet(0) req.NoError(err) chk(cache, 0, notarySet) dkgSet, err := cache.GetDKGSet(0) req.NoError(err) chk(cache, 0, dkgSet) leaderNode, err := cache.GetLeaderNode(types.Position{ - Round: uint64(0), - ChainID: uint32(0), - Height: uint64(10), + Round: uint64(0), + Height: uint64(10), }) req.NoError(err) chk(cache, 0, map[types.NodeID]struct{}{ |