diff options
author | Mission Liao <mission.liao@dexon.org> | 2018-11-15 13:05:50 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-15 13:05:50 +0800 |
commit | ce9da6912a16f064160781bbff8a9762e305bae9 (patch) | |
tree | f4de88f0488687e4480cc8461b8a3cbf03a1c85b /core/test/governance.go | |
parent | 7b68cc8fa60d91a7c6ed2f78dc851da48d1fc258 (diff) | |
download | tangerine-consensus-ce9da6912a16f064160781bbff8a9762e305bae9.tar.gz tangerine-consensus-ce9da6912a16f064160781bbff8a9762e305bae9.tar.zst tangerine-consensus-ce9da6912a16f064160781bbff8a9762e305bae9.zip |
test: fix network (#328)
* Broadcast to set of node instead of broadcasting when attaching cache.
* Fix pull blocks
Diffstat (limited to 'core/test/governance.go')
-rw-r--r-- | core/test/governance.go | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/core/test/governance.go b/core/test/governance.go index 58b773a..f96e9e7 100644 --- a/core/test/governance.go +++ b/core/test/governance.go @@ -237,16 +237,6 @@ func (g *Governance) CatchUpWithRound(round uint64) { config, nodeSet := g.stateModule.Snapshot() g.configs = append(g.configs, config) g.nodeSets = append(g.nodeSets, nodeSet) - if g.networkModule == nil { - continue - } - // Notify network module for new notary set. - round := uint64(len(g.configs)) - 1 - notarySet := make(map[types.NodeID]struct{}) - for _, k := range g.nodeSets[round] { - notarySet[types.NewNodeID(k)] = struct{}{} - } - g.networkModule.appendRoundSetting(round, notarySet) } } |