From ace78f3a2804f2f4953f3ad9b945a4dbea221ac7 Mon Sep 17 00:00:00 2001 From: Jimmy Hu Date: Fri, 2 Nov 2018 10:40:58 +0800 Subject: dex: implement PullBlocks/PullVotes (#1) --- dex/network.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'dex/network.go') 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. -- cgit