aboutsummaryrefslogtreecommitdiffstats
path: root/simulation
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2018-10-31 17:20:24 +0800
committerGitHub <noreply@github.com>2018-10-31 17:20:24 +0800
commit6f33d1e0bbf7d976bd14d3dffd35e4e40a78a0c2 (patch)
treef37b6784628a207a236ea2f705de93394abeb598 /simulation
parenteccdddbff92c1588e628f874d73ae557351c76f7 (diff)
downloaddexon-consensus-6f33d1e0bbf7d976bd14d3dffd35e4e40a78a0c2.tar
dexon-consensus-6f33d1e0bbf7d976bd14d3dffd35e4e40a78a0c2.tar.gz
dexon-consensus-6f33d1e0bbf7d976bd14d3dffd35e4e40a78a0c2.tar.bz2
dexon-consensus-6f33d1e0bbf7d976bd14d3dffd35e4e40a78a0c2.tar.lz
dexon-consensus-6f33d1e0bbf7d976bd14d3dffd35e4e40a78a0c2.tar.xz
dexon-consensus-6f33d1e0bbf7d976bd14d3dffd35e4e40a78a0c2.tar.zst
dexon-consensus-6f33d1e0bbf7d976bd14d3dffd35e4e40a78a0c2.zip
core: Add PullVotes to Network. (#281)
Diffstat (limited to 'simulation')
-rw-r--r--simulation/network.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/simulation/network.go b/simulation/network.go
index 86a70b9..bb53145 100644
--- a/simulation/network.go
+++ b/simulation/network.go
@@ -139,6 +139,11 @@ func (n *network) PullBlocks(hashes common.Hashes) {
}()
}
+// PullVote implements core.Network interface.
+func (n *network) PullVotes(pos types.Position) {
+ // TODO(jimmy-dexon): implement this.
+}
+
// BroadcastVote implements core.Network interface.
func (n *network) BroadcastVote(vote *types.Vote) {
if err := n.trans.Broadcast(vote); err != nil {