aboutsummaryrefslogtreecommitdiffstats
path: root/p2p/discover
diff options
context:
space:
mode:
authorWei-Ning Huang <w@cobinhood.com>2018-09-26 10:48:31 +0800
committerWei-Ning Huang <w@dexon.org>2019-03-12 12:19:09 +0800
commit3f555b121b7483dac0baff0a80e16fdc2cb55ce4 (patch)
tree9f83142c6a6b8642200cba20d37ba845d81f8437 /p2p/discover
parentbc5a3c35468c272869966176f98f3d5522f4b607 (diff)
downloaddexon-3f555b121b7483dac0baff0a80e16fdc2cb55ce4.tar
dexon-3f555b121b7483dac0baff0a80e16fdc2cb55ce4.tar.gz
dexon-3f555b121b7483dac0baff0a80e16fdc2cb55ce4.tar.bz2
dexon-3f555b121b7483dac0baff0a80e16fdc2cb55ce4.tar.lz
dexon-3f555b121b7483dac0baff0a80e16fdc2cb55ce4.tar.xz
dexon-3f555b121b7483dac0baff0a80e16fdc2cb55ce4.tar.zst
dexon-3f555b121b7483dac0baff0a80e16fdc2cb55ce4.zip
Change import go github.com/dexon-foundation/dexon
Diffstat (limited to 'p2p/discover')
-rw-r--r--p2p/discover/node.go8
-rw-r--r--p2p/discover/ntp.go2
-rw-r--r--p2p/discover/table.go10
-rw-r--r--p2p/discover/table_test.go8
-rw-r--r--p2p/discover/table_util_test.go4
-rw-r--r--p2p/discover/udp.go10
-rw-r--r--p2p/discover/udp_test.go8
7 files changed, 25 insertions, 25 deletions
diff --git a/p2p/discover/node.go b/p2p/discover/node.go
index 8d4af166b..1c5560839 100644
--- a/p2p/discover/node.go
+++ b/p2p/discover/node.go
@@ -23,10 +23,10 @@ import (
"net"
"time"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/crypto/secp256k1"
- "github.com/ethereum/go-ethereum/p2p/enode"
+ "github.com/dexon-foundation/dexon/common/math"
+ "github.com/dexon-foundation/dexon/crypto"
+ "github.com/dexon-foundation/dexon/crypto/secp256k1"
+ "github.com/dexon-foundation/dexon/p2p/enode"
)
// node represents a host on the network.
diff --git a/p2p/discover/ntp.go b/p2p/discover/ntp.go
index 1bb52399f..be21a8e5e 100644
--- a/p2p/discover/ntp.go
+++ b/p2p/discover/ntp.go
@@ -25,7 +25,7 @@ import (
"sort"
"time"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/dexon-foundation/dexon/log"
)
const (
diff --git a/p2p/discover/table.go b/p2p/discover/table.go
index ef0c08afc..13823ff2d 100644
--- a/p2p/discover/table.go
+++ b/p2p/discover/table.go
@@ -33,11 +33,11 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/netutil"
+ "github.com/dexon-foundation/dexon/common"
+ "github.com/dexon-foundation/dexon/crypto"
+ "github.com/dexon-foundation/dexon/log"
+ "github.com/dexon-foundation/dexon/p2p/enode"
+ "github.com/dexon-foundation/dexon/p2p/netutil"
)
const (
diff --git a/p2p/discover/table_test.go b/p2p/discover/table_test.go
index b5622e3a2..2321e743f 100644
--- a/p2p/discover/table_test.go
+++ b/p2p/discover/table_test.go
@@ -27,10 +27,10 @@ import (
"testing/quick"
"time"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
- "github.com/ethereum/go-ethereum/p2p/netutil"
+ "github.com/dexon-foundation/dexon/crypto"
+ "github.com/dexon-foundation/dexon/p2p/enode"
+ "github.com/dexon-foundation/dexon/p2p/enr"
+ "github.com/dexon-foundation/dexon/p2p/netutil"
)
func TestTable_pingReplace(t *testing.T) {
diff --git a/p2p/discover/table_util_test.go b/p2p/discover/table_util_test.go
index e61c9e6fc..20238aabc 100644
--- a/p2p/discover/table_util_test.go
+++ b/p2p/discover/table_util_test.go
@@ -24,8 +24,8 @@ import (
"net"
"sync"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
+ "github.com/dexon-foundation/dexon/p2p/enode"
+ "github.com/dexon-foundation/dexon/p2p/enr"
)
var nullNode *enode.Node
diff --git a/p2p/discover/udp.go b/p2p/discover/udp.go
index df9a3065f..d9665a876 100644
--- a/p2p/discover/udp.go
+++ b/p2p/discover/udp.go
@@ -26,11 +26,11 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/netutil"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/dexon-foundation/dexon/crypto"
+ "github.com/dexon-foundation/dexon/log"
+ "github.com/dexon-foundation/dexon/p2p/enode"
+ "github.com/dexon-foundation/dexon/p2p/netutil"
+ "github.com/dexon-foundation/dexon/rlp"
)
// Errors
diff --git a/p2p/discover/udp_test.go b/p2p/discover/udp_test.go
index 3d53c9309..328e4d4d5 100644
--- a/p2p/discover/udp_test.go
+++ b/p2p/discover/udp_test.go
@@ -35,10 +35,10 @@ import (
"time"
"github.com/davecgh/go-spew/spew"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/dexon-foundation/dexon/common"
+ "github.com/dexon-foundation/dexon/crypto"
+ "github.com/dexon-foundation/dexon/p2p/enode"
+ "github.com/dexon-foundation/dexon/rlp"
)
func init() {