aboutsummaryrefslogtreecommitdiffstats
path: root/core/utils/nodeset-cache.go
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2019-01-15 16:06:21 +0800
committerGitHub <noreply@github.com>2019-01-15 16:06:21 +0800
commit8e1b6161f346993b74558124758cfb650465cf05 (patch)
treec5b60eae90c3358e6faf43cee9d3ffc3b9945dd1 /core/utils/nodeset-cache.go
parent809e8def862fdfa792061a448f952747f1af4d3c (diff)
downloadtangerine-consensus-8e1b6161f346993b74558124758cfb650465cf05.tar
tangerine-consensus-8e1b6161f346993b74558124758cfb650465cf05.tar.gz
tangerine-consensus-8e1b6161f346993b74558124758cfb650465cf05.tar.bz2
tangerine-consensus-8e1b6161f346993b74558124758cfb650465cf05.tar.lz
tangerine-consensus-8e1b6161f346993b74558124758cfb650465cf05.tar.xz
tangerine-consensus-8e1b6161f346993b74558124758cfb650465cf05.tar.zst
tangerine-consensus-8e1b6161f346993b74558124758cfb650465cf05.zip
core: Fix BA3.0 (#420)
* Add Restart to Ticker * Change pre allocated size * Return NextTime from lattice * Few hacky fixes for BA * PullVote in FastRollback state * Add shallowBlock for agreementResult * Extend period * Fixup
Diffstat (limited to 'core/utils/nodeset-cache.go')
-rw-r--r--core/utils/nodeset-cache.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/utils/nodeset-cache.go b/core/utils/nodeset-cache.go
index 35828b7..8a07c9d 100644
--- a/core/utils/nodeset-cache.go
+++ b/core/utils/nodeset-cache.go
@@ -247,7 +247,7 @@ func (cache *NodeSetCache) update(
nIDs.notarySet[i] = nodeSet.GetSubSet(
int(cfg.NotarySetSize), types.NewNotarySetTarget(crs, uint32(i)))
}
- nodesPerChain := cfg.RoundInterval / (cfg.LambdaBA * 4)
+ nodesPerChain := cfg.RoundInterval / cfg.MinBlockInterval
for i := range nIDs.leaderNode {
nIDs.leaderNode[i] = make(map[uint64]types.NodeID, nodesPerChain)
}