diff options
Diffstat (limited to 'core/utils')
-rw-r--r-- | core/utils/nodeset-cache.go | 2 | ||||
-rw-r--r-- | core/utils/nodeset-cache_test.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/core/utils/nodeset-cache.go b/core/utils/nodeset-cache.go index 3ff5196..0e616e4 100644 --- a/core/utils/nodeset-cache.go +++ b/core/utils/nodeset-cache.go @@ -228,7 +228,7 @@ func (cache *NodeSetCache) update(round uint64) (nIDs *sets, err error) { notarySet: make(map[types.NodeID]struct{}), dkgSet: nodeSet.GetSubSet( int(cfg.DKGSetSize), types.NewDKGSetTarget(crs)), - leaderNode: make(map[uint64]types.NodeID, cfg.RoundInterval), + leaderNode: make(map[uint64]types.NodeID, cfg.RoundLength), } nIDs.notarySet = nodeSet.GetSubSet( int(cfg.NotarySetSize), types.NewNotarySetTarget(crs)) diff --git a/core/utils/nodeset-cache_test.go b/core/utils/nodeset-cache_test.go index 52036b5..6d29b6e 100644 --- a/core/utils/nodeset-cache_test.go +++ b/core/utils/nodeset-cache_test.go @@ -38,7 +38,7 @@ func (g *nsIntf) Configuration(round uint64) (cfg *types.Config) { return &types.Config{ NotarySetSize: 7, DKGSetSize: 7, - RoundInterval: 60, + RoundLength: 60, LambdaBA: 250 * time.Millisecond, MinBlockInterval: 1 * time.Second, } |