diff options
author | Jimmy Hu <jimmy.hu@dexon.org> | 2019-04-02 14:15:51 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-02 14:15:51 +0800 |
commit | 35f3fe0b857e8006de345505d7fc09c0b7c10326 (patch) | |
tree | 2c4383122604620caeace6d225f8035f43d3b792 /core/utils/nodeset-cache_test.go | |
parent | 7e85e9475ef303356ccdbcbfe8219ac1173db418 (diff) | |
download | dexon-consensus-35f3fe0b857e8006de345505d7fc09c0b7c10326.tar dexon-consensus-35f3fe0b857e8006de345505d7fc09c0b7c10326.tar.gz dexon-consensus-35f3fe0b857e8006de345505d7fc09c0b7c10326.tar.bz2 dexon-consensus-35f3fe0b857e8006de345505d7fc09c0b7c10326.tar.lz dexon-consensus-35f3fe0b857e8006de345505d7fc09c0b7c10326.tar.xz dexon-consensus-35f3fe0b857e8006de345505d7fc09c0b7c10326.tar.zst dexon-consensus-35f3fe0b857e8006de345505d7fc09c0b7c10326.zip |
core: only qualified nodes can participant BA (#540)
* core: only qualified nodes can participant BA
* core: remove leader calculation from node set cache
Diffstat (limited to 'core/utils/nodeset-cache_test.go')
-rw-r--r-- | core/utils/nodeset-cache_test.go | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/core/utils/nodeset-cache_test.go b/core/utils/nodeset-cache_test.go index 0ee3883..b9052c8 100644 --- a/core/utils/nodeset-cache_test.go +++ b/core/utils/nodeset-cache_test.go @@ -90,14 +90,6 @@ func (s *NodeSetCacheTestSuite) TestBasicUsage() { notarySet, err := cache.GetNotarySet(0) req.NoError(err) chk(cache, 0, notarySet) - leaderNode, err := cache.GetLeaderNode(types.Position{ - Round: uint64(0), - Height: uint64(10), - }) - req.NoError(err) - chk(cache, 0, map[types.NodeID]struct{}{ - leaderNode: struct{}{}, - }) // Try to get round 1. nodeSet1, err := cache.GetNodeSet(1) req.NoError(err) |