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 /core/interfaces.go | |
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 'core/interfaces.go')
-rw-r--r-- | core/interfaces.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/interfaces.go b/core/interfaces.go index 4f6ad45..d6c1baf 100644 --- a/core/interfaces.go +++ b/core/interfaces.go @@ -62,6 +62,9 @@ type Network interface { // PullBlocks tries to pull blocks from the DEXON network. PullBlocks(hashes common.Hashes) + // PullVotes tries to pull votes from the DEXON network. + PullVotes(position types.Position) + // BroadcastVote broadcasts vote to all nodes in DEXON network. BroadcastVote(vote *types.Vote) |