aboutsummaryrefslogtreecommitdiffstats
path: root/dex
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2018-10-31 17:22:29 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-09 21:32:52 +0800
commit48cd626abe5169e87e6a7f264f4f6cfda71c8e1f (patch)
tree10449b08e9ab9348cbeeb6dcc8c2e7725cb207e4 /dex
parent2e2bf34bc283647b206b870a01e8e2fb668c39fa (diff)
downloaddexon-48cd626abe5169e87e6a7f264f4f6cfda71c8e1f.tar
dexon-48cd626abe5169e87e6a7f264f4f6cfda71c8e1f.tar.gz
dexon-48cd626abe5169e87e6a7f264f4f6cfda71c8e1f.tar.bz2
dexon-48cd626abe5169e87e6a7f264f4f6cfda71c8e1f.tar.lz
dexon-48cd626abe5169e87e6a7f264f4f6cfda71c8e1f.tar.xz
dexon-48cd626abe5169e87e6a7f264f4f6cfda71c8e1f.tar.zst
dexon-48cd626abe5169e87e6a7f264f4f6cfda71c8e1f.zip
vendor: sync consensus core and fix conflic
Diffstat (limited to 'dex')
-rw-r--r--dex/network.go21
1 files changed, 21 insertions, 0 deletions
diff --git a/dex/network.go b/dex/network.go
index cb22340f3..58d6fd855 100644
--- a/dex/network.go
+++ b/dex/network.go
@@ -1,3 +1,20 @@
+// Copyright 2018 The dexon-consensus-core Authors
+// This file is part of the dexon-consensus-core library.
+//
+// The dexon-consensus-core library is free software: you can redistribute it
+// and/or modify it under the terms of the GNU Lesser General Public License as
+// published by the Free Software Foundation, either version 3 of the License,
+// or (at your option) any later version.
+//
+// The dexon-consensus-core library is distributed in the hope that it will be
+// useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
+// General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public License
+// along with the dexon-consensus-core library. If not, see
+// <http://www.gnu.org/licenses/>.
+
package dex
import (
@@ -19,6 +36,10 @@ func NewDexconNetwork(pm *ProtocolManager) *DexconNetwork {
func (n *DexconNetwork) PullBlocks(hashes coreCommon.Hashes) {
}
+// PullVotes tries to pull votes from the DEXON network.
+func (n *DexconNetwork) PullVotes(pos types.Position) {
+}
+
// BroadcastVote broadcasts vote to all nodes in DEXON network.
func (n *DexconNetwork) BroadcastVote(vote *types.Vote) {
n.pm.BroadcastVote(vote)