diff options
author | Jimmy Hu <jimmy.hu@dexon.org> | 2018-10-31 17:20:24 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-31 17:20:24 +0800 |
commit | 6f33d1e0bbf7d976bd14d3dffd35e4e40a78a0c2 (patch) | |
tree | f37b6784628a207a236ea2f705de93394abeb598 /simulation | |
parent | eccdddbff92c1588e628f874d73ae557351c76f7 (diff) | |
download | dexon-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.go | 5 |
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 { |