aboutsummaryrefslogtreecommitdiffstats
path: root/eth
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-10-25 17:18:44 +0800
committerGitHub <noreply@github.com>2017-10-25 17:18:44 +0800
commit0095531a58772b1f5bd1547169790dbde84ec78a (patch)
tree91b9e56dbcb9afe4058c0f41f33ebc7812201abc /eth
parentca376ead88a5a26626a90abdb62f4de7f6313822 (diff)
downloaddexon-0095531a58772b1f5bd1547169790dbde84ec78a.tar.gz
dexon-0095531a58772b1f5bd1547169790dbde84ec78a.tar.zst
dexon-0095531a58772b1f5bd1547169790dbde84ec78a.zip
core, eth, les: fix messy code (#15367)
* core, eth, les: fix messy code * les: fixed tx status test and rlp encoding * core: add a workaround for light sync
Diffstat (limited to 'eth')
-rw-r--r--eth/helper_test.go5
-rw-r--r--eth/protocol.go2
2 files changed, 3 insertions, 4 deletions
diff --git a/eth/helper_test.go b/eth/helper_test.go
index b66553135..f02242b15 100644
--- a/eth/helper_test.go
+++ b/eth/helper_test.go
@@ -97,7 +97,7 @@ type testTxPool struct {
// AddRemotes appends a batch of transactions to the pool, and notifies any
// listeners if the addition channel is non nil
-func (p *testTxPool) AddRemotes(txs []*types.Transaction) error {
+func (p *testTxPool) AddRemotes(txs []*types.Transaction) []error {
p.lock.Lock()
defer p.lock.Unlock()
@@ -105,8 +105,7 @@ func (p *testTxPool) AddRemotes(txs []*types.Transaction) error {
if p.added != nil {
p.added <- txs
}
-
- return nil
+ return make([]error, len(txs))
}
// Pending returns all the transactions known to the pool
diff --git a/eth/protocol.go b/eth/protocol.go
index 2c41376fa..cd7db57f2 100644
--- a/eth/protocol.go
+++ b/eth/protocol.go
@@ -97,7 +97,7 @@ var errorToString = map[int]string{
type txPool interface {
// AddRemotes should add the given transactions to the pool.
- AddRemotes([]*types.Transaction) error
+ AddRemotes([]*types.Transaction) []error
// Pending should return pending transactions.
// The slice should be modifiable by the caller.
'>-rw-r--r--net-p2p/cdonkey/Makefile1
-rw-r--r--net-p2p/edonkey-gui-gtk-urlslave/Makefile1
-rw-r--r--net-p2p/edonkey-gui-gtk/Makefile1
-rw-r--r--net-p2p/fcptools/Makefile1
-rw-r--r--net-p2p/fidelio/Makefile1
-rw-r--r--net-p2p/gift-fasttrack/Makefile1
-rw-r--r--net-p2p/gift-gnutella/Makefile1
-rw-r--r--net-p2p/gift-openft/Makefile1
-rw-r--r--net-p2p/gift/Makefile1
-rw-r--r--net-p2p/giftcurs/Makefile1
-rw-r--r--net-p2p/giftoxic/Makefile1
-rw-r--r--net-p2p/gnewtellium/Makefile1
-rw-r--r--net-p2p/gnome-btdownload/Makefile1
-rw-r--r--net-p2p/gtk-gnutella/Makefile1
-rw-r--r--net-p2p/hagelslag/Makefile1
-rw-r--r--net-p2p/kmldonkey/Makefile1
-rw-r--r--net-p2p/libfreenet/Makefile1
-rw-r--r--net-p2p/limewire/Makefile1
-rw-r--r--net-p2p/linux-jigdo/Makefile1
-rw-r--r--net-p2p/mldonkey-devel/Makefile1
-rw-r--r--net-p2p/mldonkey-urlslave/Makefile2
-rw-r--r--net-p2p/mldonkey/Makefile1
-rw-r--r--net-p2p/mute-net/Makefile1
-rw-r--r--net-p2p/napshare/Makefile1
-rw-r--r--net-p2p/nicotine-plus/Makefile1
-rw-r--r--net-p2p/nicotine/Makefile1
-rw-r--r--net-p2p/opendchub/Makefile1
-rw-r--r--net-p2p/phex/Makefile1
-rw-r--r--net-p2p/py-bittorrent-devel/Makefile1
-rw-r--r--net-p2p/py-bittorrent/Makefile1
-rw-r--r--net-p2p/py-kenosis-bittorrent/Makefile1
-rw-r--r--net-p2p/pyslsk/Makefile1
-rw-r--r--net-p2p/qtella/Makefile1
-rw-r--r--net-p2p/valknut/Makefile1
-rw-r--r--net-p2p/xnap/Makefile1
36 files changed, 36 insertions, 1 deletions
diff --git a/net-p2p/bnbt/Makefile b/net-p2p/bnbt/Makefile
index df9a71dd2232..1734622d94ef 100644
--- a/net-p2p/bnbt/Makefile
+++ b/net-p2p/bnbt/Makefile
@@ -7,6 +7,7 @@
PORTNAME= bnbt
PORTVERSION= 7.3b
+PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= http://bnbt.go-dedicated.com/
DISTNAME= ${PORTNAME}${PORTVERSION:S/.//}
diff --git a/net-p2p/cdonkey/Makefile b/net-p2p/cdonkey/Makefile
index f8e59f01c556..08bcbf8e3cf4 100644
--- a/net-p2p/cdonkey/Makefile
+++ b/net-p2p/cdonkey/Makefile
@@ -8,6 +8,7 @@
PORTNAME= cdonkey
PORTVERSION= 0.8.9
+PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= http://suche.org/
DISTNAME= cDonkey-${PORTVERSION}
diff --git a/net-p2p/edonkey-gui-gtk-urlslave/Makefile b/net-p2p/edonkey-gui-gtk-urlslave/Makefile
index 21326a1d9f89..ecf31404aab0 100644
--- a/net-p2p/edonkey-gui-gtk-urlslave/Makefile
+++ b/net-p2p/edonkey-gui-gtk-urlslave/Makefile
@@ -7,6 +7,7 @@
PORTNAME= edonkey
PORTVERSION= 0.0.2
+PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= http://ircnet.de/home/cru/ed2k_urlslave/dist/
PKGNAMESUFFIX= -gui-gtk-urlslave
diff --git a/net-p2p/edonkey-gui-gtk/Makefile b/net-p2p/edonkey-gui-gtk/Makefile
index 9276b9392a1c..71f5a883831d 100644
--- a/net-p2p/edonkey-gui-gtk/Makefile
+++ b/net-p2p/edonkey-gui-gtk/Makefile
@@ -7,6 +7,7 @@
PORTNAME= edonkey
PORTVERSION= 0.6.1
+PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ed2k-gtk-gui
diff --git a/net-p2p/fcptools/Makefile b/net-p2p/fcptools/Makefile
index 7fdc965c6861..d58b4e236beb 100644
--- a/net-p2p/fcptools/Makefile
+++ b/net-p2p/fcptools/Makefile
@@ -7,6 +7,7 @@
PORTNAME= fcptools
PORTVERSION= 0.4.7
+PORTREVISION= 1
CATEGORIES= net security
MASTER_SITES= http://freenetproject.org/snapshots/
EXTRACT_SUFX= .tgz
diff --git a/net-p2p/fidelio/Makefile b/net-p2p/fidelio/Makefile
index 53720ca385d4..221f70203c33 100644
--- a/net-p2p/fidelio/Makefile
+++ b/net-p2p/fidelio/Makefile
@@ -7,6 +7,7 @@
PORTNAME= fidelio
PORTVERSION= 1.0.b1
+PORTREVISION= 1
CATEGORIES= net gnome
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
diff --git a/net-p2p/gift-fasttrack/Makefile b/net-p2p/gift-fasttrack/Makefile
index e11ba0744844..8ccab9a440ee 100644
--- a/net-p2p/gift-fasttrack/Makefile
+++ b/net-p2p/gift-fasttrack/Makefile
@@ -7,6 +7,7 @@
PORTNAME= giFT-FastTrack
PORTVERSION= 0.8.5
+PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= http://download.berlios.de/gift-fasttrack/
diff --git a/net-p2p/gift-gnutella/Makefile b/net-p2p/gift-gnutella/Makefile
index f67c801d064a..394fddecc69f 100644
--- a/net-p2p/gift-gnutella/Makefile
+++ b/net-p2p/gift-gnutella/Makefile
@@ -7,6 +7,7 @@
PORTNAME= giFT-gnutella
PORTVERSION= 0.0.9
+PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= gift
diff --git a/net-p2p/gift-openft/Makefile b/net-p2p/gift-openft/Makefile
index 07c881d8885d..c69baece97ac 100644
--- a/net-p2p/gift-openft/Makefile
+++ b/net-p2p/gift-openft/Makefile
@@ -7,6 +7,7 @@
PORTNAME= giFT-OpenFT
PORTVERSION= 0.2.1.2
+PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= gift
diff --git a/net-p2p/gift/Makefile b/net-p2p/gift/Makefile
index cf3d9be6c80c..5d9d5be97de2 100644
--- a/net-p2p/gift/Makefile
+++ b/net-p2p/gift/Makefile