aboutsummaryrefslogtreecommitdiffstats
path: root/core/test/governance.go
diff options
context:
space:
mode:
authorMission Liao <mission.liao@dexon.org>2018-11-15 13:05:50 +0800
committerGitHub <noreply@github.com>2018-11-15 13:05:50 +0800
commitce9da6912a16f064160781bbff8a9762e305bae9 (patch)
treef4de88f0488687e4480cc8461b8a3cbf03a1c85b /core/test/governance.go
parent7b68cc8fa60d91a7c6ed2f78dc851da48d1fc258 (diff)
downloaddexon-consensus-ce9da6912a16f064160781bbff8a9762e305bae9.tar
dexon-consensus-ce9da6912a16f064160781bbff8a9762e305bae9.tar.gz
dexon-consensus-ce9da6912a16f064160781bbff8a9762e305bae9.tar.bz2
dexon-consensus-ce9da6912a16f064160781bbff8a9762e305bae9.tar.lz
dexon-consensus-ce9da6912a16f064160781bbff8a9762e305bae9.tar.xz
dexon-consensus-ce9da6912a16f064160781bbff8a9762e305bae9.tar.zst
dexon-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.go10
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)
}
}