diff options
author | Jimmy Hu <jimmy.hu@dexon.org> | 2018-11-02 10:40:58 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 21:32:52 +0800 |
commit | 119eb5889104d870ed608dcd9ccc7581489054b0 (patch) | |
tree | a340373d962d9bad8ecc8c14783857e7ad77e45c /dex/network.go | |
parent | 2f936e7546afb84d7397e3dac6b577aea27220c6 (diff) | |
download | go-tangerine-119eb5889104d870ed608dcd9ccc7581489054b0.tar go-tangerine-119eb5889104d870ed608dcd9ccc7581489054b0.tar.gz go-tangerine-119eb5889104d870ed608dcd9ccc7581489054b0.tar.bz2 go-tangerine-119eb5889104d870ed608dcd9ccc7581489054b0.tar.lz go-tangerine-119eb5889104d870ed608dcd9ccc7581489054b0.tar.xz go-tangerine-119eb5889104d870ed608dcd9ccc7581489054b0.tar.zst go-tangerine-119eb5889104d870ed608dcd9ccc7581489054b0.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. |