diff options
author | Jimmy Hu <jimmy.hu@dexon.org> | 2018-11-02 10:40:58 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-12 17:27:17 +0800 |
commit | ace78f3a2804f2f4953f3ad9b945a4dbea221ac7 (patch) | |
tree | b796257f29d4a38c0c71b41e748e3c00641e8b19 /dex/network.go | |
parent | 05cdd58111500b1b40caa9feffbea6c58f277a48 (diff) | |
download | go-tangerine-ace78f3a2804f2f4953f3ad9b945a4dbea221ac7.tar.gz go-tangerine-ace78f3a2804f2f4953f3ad9b945a4dbea221ac7.tar.zst go-tangerine-ace78f3a2804f2f4953f3ad9b945a4dbea221ac7.zip |
dex: implement PullBlocks/PullVotes (#1)
Diffstat (limited to 'dex/network.go')
-rw-r--r-- | dex/network.go | 2 |
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. |