aboutsummaryrefslogtreecommitdiffstats
path: root/dex/network.go
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2018-11-02 10:40:58 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-09 21:32:52 +0800
commit119eb5889104d870ed608dcd9ccc7581489054b0 (patch)
treea340373d962d9bad8ecc8c14783857e7ad77e45c /dex/network.go
parent2f936e7546afb84d7397e3dac6b577aea27220c6 (diff)
downloaddexon-119eb5889104d870ed608dcd9ccc7581489054b0.tar.gz
dexon-119eb5889104d870ed608dcd9ccc7581489054b0.tar.zst
dexon-119eb5889104d870ed608dcd9ccc7581489054b0.zip
dex: implement PullBlocks/PullVotes (#1)
Diffstat (limited to 'dex/network.go')
-rw-r--r--dex/network.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/dex/network.go b/dex/network.go
index 58d6fd855..4f5c5ac5c 100644
--- a/dex/network.go
+++ b/dex/network.go
@@ -34,10 +34,12 @@ func NewDexconNetwork(pm *ProtocolManager) *DexconNetwork {
// PullBlocks tries to pull blocks from the DEXON network.
func (n *DexconNetwork) PullBlocks(hashes coreCommon.Hashes) {
+ n.pm.BroadcastPullBlocks(hashes)
}
// PullVotes tries to pull votes from the DEXON network.
func (n *DexconNetwork) PullVotes(pos types.Position) {
+ n.pm.BroadcastPullVotes(pos)
}
// BroadcastVote broadcasts vote to all nodes in DEXON network.