aboutsummaryrefslogtreecommitdiffstats
path: root/swarm/network
diff options
context:
space:
mode:
authorWei-Ning Huang <w@cobinhood.com>2018-09-26 10:48:31 +0800
committerWei-Ning Huang <w@dexon.org>2018-12-19 18:55:22 +0800
commit9acf5fc03ad7dabcd88eb8972db032122ef5ebe1 (patch)
treee33db1d9846de04aa5d86d920a77d87064d531e5 /swarm/network
parentf97b8033c8c79f133417805fdd84bc1c36a36089 (diff)
downloaddexon-9acf5fc03ad7dabcd88eb8972db032122ef5ebe1.tar
dexon-9acf5fc03ad7dabcd88eb8972db032122ef5ebe1.tar.gz
dexon-9acf5fc03ad7dabcd88eb8972db032122ef5ebe1.tar.bz2
dexon-9acf5fc03ad7dabcd88eb8972db032122ef5ebe1.tar.lz
dexon-9acf5fc03ad7dabcd88eb8972db032122ef5ebe1.tar.xz
dexon-9acf5fc03ad7dabcd88eb8972db032122ef5ebe1.tar.zst
dexon-9acf5fc03ad7dabcd88eb8972db032122ef5ebe1.zip
Change import go github.com/dexon-foundation/dexon
Diffstat (limited to 'swarm/network')
-rw-r--r--swarm/network/discovery.go2
-rw-r--r--swarm/network/discovery_test.go2
-rw-r--r--swarm/network/fetcher.go6
-rw-r--r--swarm/network/fetcher_test.go2
-rw-r--r--swarm/network/hive.go10
-rw-r--r--swarm/network/hive_test.go4
-rw-r--r--swarm/network/kademlia.go6
-rw-r--r--swarm/network/kademlia_test.go12
-rw-r--r--swarm/network/networkid_test.go14
-rw-r--r--swarm/network/priorityqueue/priorityqueue.go2
-rw-r--r--swarm/network/protocol.go14
-rw-r--r--swarm/network/protocol_test.go10
-rw-r--r--swarm/network/simulation/bucket.go2
-rw-r--r--swarm/network/simulation/bucket_test.go4
-rw-r--r--swarm/network/simulation/connect.go2
-rw-r--r--swarm/network/simulation/connect_test.go2
-rw-r--r--swarm/network/simulation/events.go4
-rw-r--r--swarm/network/simulation/example_test.go10
-rw-r--r--swarm/network/simulation/http.go4
-rw-r--r--swarm/network/simulation/http_test.go6
-rw-r--r--swarm/network/simulation/kademlia.go8
-rw-r--r--swarm/network/simulation/kademlia_test.go6
-rw-r--r--swarm/network/simulation/node.go8
-rw-r--r--swarm/network/simulation/node_test.go10
-rw-r--r--swarm/network/simulation/service.go6
-rw-r--r--swarm/network/simulation/simulation.go10
-rw-r--r--swarm/network/simulation/simulation_test.go10
-rw-r--r--swarm/network/simulations/discovery/discovery_test.go16
-rw-r--r--swarm/network/simulations/overlay.go14
-rw-r--r--swarm/network/simulations/overlay_test.go6
-rw-r--r--swarm/network/stream/common_test.go18
-rw-r--r--swarm/network/stream/delivery.go13
-rw-r--r--swarm/network/stream/delivery_test.go26
-rw-r--r--swarm/network/stream/intervals/dbstore_test.go2
-rw-r--r--swarm/network/stream/intervals/store_test.go2
-rw-r--r--swarm/network/stream/intervals_test.go18
-rw-r--r--swarm/network/stream/lightnode_test.go2
-rw-r--r--swarm/network/stream/messages.go10
-rw-r--r--swarm/network/stream/peer.go16
-rw-r--r--swarm/network/stream/snapshot_retrieval_test.go16
-rw-r--r--swarm/network/stream/snapshot_sync_test.go28
-rw-r--r--swarm/network/stream/stream.go22
-rw-r--r--swarm/network/stream/streamer_test.go4
-rw-r--r--swarm/network/stream/syncer.go6
-rw-r--r--swarm/network/stream/syncer_test.go24
-rw-r--r--swarm/network/stream/visualized_snapshot_sync_sim_test.go12
46 files changed, 215 insertions, 216 deletions
diff --git a/swarm/network/discovery.go b/swarm/network/discovery.go
index 21703e70f..4607750be 100644
--- a/swarm/network/discovery.go
+++ b/swarm/network/discovery.go
@@ -21,7 +21,7 @@ import (
"fmt"
"sync"
- "github.com/ethereum/go-ethereum/swarm/pot"
+ "github.com/dexon-foundation/dexon/swarm/pot"
)
// discovery bzz extension for requesting and relaying node address records
diff --git a/swarm/network/discovery_test.go b/swarm/network/discovery_test.go
index dd3299c0f..e7b5e3087 100644
--- a/swarm/network/discovery_test.go
+++ b/swarm/network/discovery_test.go
@@ -19,7 +19,7 @@ package network
import (
"testing"
- p2ptest "github.com/ethereum/go-ethereum/p2p/testing"
+ p2ptest "github.com/dexon-foundation/dexon/p2p/testing"
)
/***
diff --git a/swarm/network/fetcher.go b/swarm/network/fetcher.go
index 6aed57e22..016be45c7 100644
--- a/swarm/network/fetcher.go
+++ b/swarm/network/fetcher.go
@@ -21,9 +21,9 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/swarm/storage"
+ "github.com/dexon-foundation/dexon/log"
+ "github.com/dexon-foundation/dexon/p2p/enode"
+ "github.com/dexon-foundation/dexon/swarm/storage"
)
var searchTimeout = 1 * time.Second
diff --git a/swarm/network/fetcher_test.go b/swarm/network/fetcher_test.go
index 3a926f475..c5545fc34 100644
--- a/swarm/network/fetcher_test.go
+++ b/swarm/network/fetcher_test.go
@@ -22,7 +22,7 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/p2p/enode"
+ "github.com/dexon-foundation/dexon/p2p/enode"
)
var requestedPeerID = enode.HexID("3431c3939e1ee2a6345e976a8234f9870152d64879f30bc272a074f6859e75e8")
diff --git a/swarm/network/hive.go b/swarm/network/hive.go
index ebef54592..c0515eae5 100644
--- a/swarm/network/hive.go
+++ b/swarm/network/hive.go
@@ -21,11 +21,11 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/swarm/log"
- "github.com/ethereum/go-ethereum/swarm/state"
+ "github.com/dexon-foundation/dexon/common/hexutil"
+ "github.com/dexon-foundation/dexon/p2p"
+ "github.com/dexon-foundation/dexon/p2p/enode"
+ "github.com/dexon-foundation/dexon/swarm/log"
+ "github.com/dexon-foundation/dexon/swarm/state"
)
/*
diff --git a/swarm/network/hive_test.go b/swarm/network/hive_test.go
index 56adc5a8e..af21fb503 100644
--- a/swarm/network/hive_test.go
+++ b/swarm/network/hive_test.go
@@ -22,8 +22,8 @@ import (
"os"
"testing"
- p2ptest "github.com/ethereum/go-ethereum/p2p/testing"
- "github.com/ethereum/go-ethereum/swarm/state"
+ p2ptest "github.com/dexon-foundation/dexon/p2p/testing"
+ "github.com/dexon-foundation/dexon/swarm/state"
)
func newHiveTester(t *testing.T, params *HiveParams, n int, store state.Store) (*bzzTester, *Hive) {
diff --git a/swarm/network/kademlia.go b/swarm/network/kademlia.go
index a8ecaa4be..e7ced65bc 100644
--- a/swarm/network/kademlia.go
+++ b/swarm/network/kademlia.go
@@ -24,9 +24,9 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/swarm/log"
- "github.com/ethereum/go-ethereum/swarm/pot"
+ "github.com/dexon-foundation/dexon/common"
+ "github.com/dexon-foundation/dexon/swarm/log"
+ "github.com/dexon-foundation/dexon/swarm/pot"
)
/*
diff --git a/swarm/network/kademlia_test.go b/swarm/network/kademlia_test.go
index 184a2d942..6ab7df698 100644
--- a/swarm/network/kademlia_test.go
+++ b/swarm/network/kademlia_test.go
@@ -23,12 +23,12 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/protocols"
- "github.com/ethereum/go-ethereum/swarm/pot"
+ "github.com/dexon-foundation/dexon/common"
+ "github.com/dexon-foundation/dexon/log"
+ "github.com/dexon-foundation/dexon/p2p"
+ "github.com/dexon-foundation/dexon/p2p/enode"
+ "github.com/dexon-foundation/dexon/p2p/protocols"
+ "github.com/dexon-foundation/dexon/swarm/pot"
)
func init() {
diff --git a/swarm/network/networkid_test.go b/swarm/network/networkid_test.go
index 191d67e5b..ef8e37dde 100644
--- a/swarm/network/networkid_test.go
+++ b/swarm/network/networkid_test.go
@@ -26,13 +26,13 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/simulations"
- "github.com/ethereum/go-ethereum/p2p/simulations/adapters"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/dexon-foundation/dexon/log"
+ "github.com/dexon-foundation/dexon/node"
+ "github.com/dexon-foundation/dexon/p2p"
+ "github.com/dexon-foundation/dexon/p2p/enode"
+ "github.com/dexon-foundation/dexon/p2p/simulations"
+ "github.com/dexon-foundation/dexon/p2p/simulations/adapters"
+ "github.com/dexon-foundation/dexon/rpc"
)
var (
diff --git a/swarm/network/priorityqueue/priorityqueue.go b/swarm/network/priorityqueue/priorityqueue.go
index 538502605..2a5042911 100644
--- a/swarm/network/priorityqueue/priorityqueue.go
+++ b/swarm/network/priorityqueue/priorityqueue.go
@@ -29,7 +29,7 @@ import (
"context"
"errors"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/dexon-foundation/dexon/log"
)
var (
diff --git a/swarm/network/protocol.go b/swarm/network/protocol.go
index 4b9b28cdc..6c3a3ab54 100644
--- a/swarm/network/protocol.go
+++ b/swarm/network/protocol.go
@@ -24,13 +24,13 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/protocols"
- "github.com/ethereum/go-ethereum/rpc"
- "github.com/ethereum/go-ethereum/swarm/log"
- "github.com/ethereum/go-ethereum/swarm/state"
+ "github.com/dexon-foundation/dexon/crypto"
+ "github.com/dexon-foundation/dexon/p2p"
+ "github.com/dexon-foundation/dexon/p2p/enode"
+ "github.com/dexon-foundation/dexon/p2p/protocols"
+ "github.com/dexon-foundation/dexon/rpc"
+ "github.com/dexon-foundation/dexon/swarm/log"
+ "github.com/dexon-foundation/dexon/swarm/state"
)
const (
diff --git a/swarm/network/protocol_test.go b/swarm/network/protocol_test.go
index 53ceda744..91834ae12 100644
--- a/swarm/network/protocol_test.go
+++ b/swarm/network/protocol_test.go
@@ -23,11 +23,11 @@ import (
"sync"
"testing"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/protocols"
- p2ptest "github.com/ethereum/go-ethereum/p2p/testing"
+ "github.com/dexon-foundation/dexon/log"
+ "github.com/dexon-foundation/dexon/p2p"
+ "github.com/dexon-foundation/dexon/p2p/enode"
+ "github.com/dexon-foundation/dexon/p2p/protocols"
+ p2ptest "github.com/dexon-foundation/dexon/p2p/testing"
)
const (
diff --git a/swarm/network/simulation/bucket.go b/swarm/network/simulation/bucket.go
index bd15ea2ab..885b76ed7 100644
--- a/swarm/network/simulation/bucket.go
+++ b/swarm/network/simulation/bucket.go
@@ -16,7 +16,7 @@
package simulation
-import "github.com/ethereum/go-ethereum/p2p/enode"
+import "github.com/dexon-foundation/dexon/p2p/enode"
// BucketKey is the type that should be used for keys in simulation buckets.
type BucketKey string
diff --git a/swarm/network/simulation/bucket_test.go b/swarm/network/simulation/bucket_test.go
index 69df19bfe..bc145715e 100644
--- a/swarm/network/simulation/bucket_test.go
+++ b/swarm/network/simulation/bucket_test.go
@@ -20,8 +20,8 @@ import (
"sync"
"testing"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/p2p/simulations/adapters"
+ "github.com/dexon-foundation/dexon/node"
+ "github.com/dexon-foundation/dexon/p2p/simulations/adapters"
)
// TestServiceBucket tests all bucket functionalities using subtests.
diff --git a/swarm/network/simulation/connect.go b/swarm/network/simulation/connect.go
index 8b2aa1bfa..929583abe 100644
--- a/swarm/network/simulation/connect.go
+++ b/swarm/network/simulation/connect.go
@@ -19,7 +19,7 @@ package simulation
import (
"strings"
- "github.com/ethereum/go-ethereum/p2p/enode"
+ "github.com/dexon-foundation/dexon/p2p/enode"
)
// ConnectToPivotNode connects the node with provided NodeID
diff --git a/swarm/network/simulation/connect_test.go b/swarm/network/simulation/connect_test.go
index 6c94b3a01..c166e7e3e 100644
--- a/swarm/network/simulation/connect_test.go
+++ b/swarm/network/simulation/connect_test.go
@@ -19,7 +19,7 @@ package simulation
import (
"testing"
- "github.com/ethereum/go-ethereum/p2p/enode"
+ "github.com/dexon-foundation/dexon/p2p/enode"
)
func TestConnectToPivotNode(t *testing.T) {
diff --git a/swarm/network/simulation/events.go b/swarm/network/simulation/events.go
index d73c3af4e..c4a944ae4 100644
--- a/swarm/network/simulation/events.go
+++ b/swarm/network/simulation/events.go
@@ -20,8 +20,8 @@ import (
"context"
"sync"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/simulations"
+ "github.com/dexon-foundation/dexon/p2p/enode"
+ "github.com/dexon-foundation/dexon/p2p/simulations"
)
// PeerEvent is the type of the channel returned by Simulation.PeerEvents.
diff --git a/swarm/network/simulation/example_test.go b/swarm/network/simulation/example_test.go
index 7b6204617..8d22f518f 100644
--- a/swarm/network/simulation/example_test.go
+++ b/swarm/network/simulation/example_test.go
@@ -22,11 +22,11 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/p2p/simulations/adapters"
- "github.com/ethereum/go-ethereum/swarm/network"
- "github.com/ethereum/go-ethereum/swarm/network/simulation"
+ "github.com/dexon-foundation/dexon/log"
+ "github.com/dexon-foundation/dexon/node"
+ "github.com/dexon-foundation/dexon/p2p/simulations/adapters"
+ "github.com/dexon-foundation/dexon/swarm/network"
+ "github.com/dexon-foundation/dexon/swarm/network/simulation"
)
// Every node can have a Kademlia associated using the node bucket under
diff --git a/swarm/network/simulation/http.go b/swarm/network/simulation/http.go
index 69ae3baec..b05deb59b 100644
--- a/swarm/network/simulation/http.go
+++ b/swarm/network/simulation/http.go
@@ -20,8 +20,8 @@ import (
"fmt"
"net/http"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p/simulations"
+ "github.com/dexon-foundation/dexon/log"
+ "github.com/dexon-foundation/dexon/p2p/simulations"
)
// Package defaults.
diff --git a/swarm/network/simulation/http_test.go b/swarm/network/simulation/http_test.go
index 775cf9219..fc6dfb0d6 100644
--- a/swarm/network/simulation/http_test.go
+++ b/swarm/network/simulation/http_test.go
@@ -24,9 +24,9 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/p2p/simulations/adapters"
+ "github.com/dexon-foundation/dexon/log"
+ "github.com/dexon-foundation/dexon/node"
+ "github.com/dexon-foundation/dexon/p2p/simulations/adapters"
)
func TestSimulationWithHTTPServer(t *testing.T) {
diff --git a/swarm/network/simulation/kademlia.go b/swarm/network/simulation/kademlia.go
index 7982810ca..4c9720875 100644
--- a/swarm/network/simulation/kademlia.go
+++ b/swarm/network/simulation/kademlia.go
@@ -21,10 +21,10 @@ import (
"encoding/hex"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/swarm/network"
+ "github.com/dexon-foundation/dexon/common"
+ "github.com/dexon-foundation/dexon/log"
+ "github.com/dexon-foundation/dexon/p2p/enode"
+ "github.com/dexon-foundation/dexon/swarm/network"
)
// BucketKeyKademlia is the key to be used for storing the kademlia
diff --git a/swarm/network/simulation/kademlia_test.go b/swarm/network/simulation/kademlia_test.go
index f02b0e541..79f207306 100644
--- a/swarm/network/simulation/kademlia_test.go
+++ b/swarm/network/simulation/kademlia_test.go
@@ -22,9 +22,9 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/p2p/simulations/adapters"
- "github.com/ethereum/go-ethereum/swarm/network"
+ "github.com/dexon-foundation/dexon/node"
+ "github.com/dexon-foundation/dexon/p2p/simulations/adapters"
+ "github.com/dexon-foundation/dexon/swarm/network"
)
func TestWaitTillHealthy(t *testing.T) {
diff --git a/swarm/network/simulation/node.go b/swarm/network/simulation/node.go
index a916d3fc2..3f13b25a2 100644
--- a/swarm/network/simulation/node.go
+++ b/swarm/network/simulation/node.go
@@ -24,10 +24,10 @@ import (
"os"
"time"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/simulations"
- "github.com/ethereum/go-ethereum/p2p/simulations/adapters"
+ "github.com/dexon-foundation/dexon/log"
+ "github.com/dexon-foundation/dexon/p2p/enode"
+ "github.com/dexon-foundation/dexon/p2p/simulations"
+ "github.com/dexon-foundation/dexon/p2p/simulations/adapters"
)
// NodeIDs returns NodeIDs for all nodes in the network.
diff --git a/swarm/network/simulation/node_test.go b/swarm/network/simulation/node_test.go
index 01346ef14..de29be2b2 100644
--- a/swarm/network/simulation/node_test.go
+++ b/swarm/network/simulation/node_test.go
@@ -23,11 +23,11 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/simulations/adapters"
- "github.com/ethereum/go-ethereum/swarm/network"
+ "github.com/dexon-foundation/dexon/log"
+ "github.com/dexon-foundation/dexon/node"
+ "github.com/dexon-foundation/dexon/p2p/enode"
+ "github.com/dexon-foundation/dexon/p2p/simulations/adapters"
+ "github.com/dexon-foundation/dexon/swarm/network"
)
func TestUpDownNodeIDs(t *testing.T) {
diff --git a/swarm/network/simulation/service.go b/swarm/network/simulation/service.go
index 819602e9e..e23013088 100644
--- a/swarm/network/simulation/service.go
+++ b/swarm/network/simulation/service.go
@@ -17,9 +17,9 @@
package simulation
import (
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/simulations/adapters"
+ "github.com/dexon-foundation/dexon/node"
+ "github.com/dexon-foundation/dexon/p2p/enode"
+ "github.com/dexon-foundation/dexon/p2p/simulations/adapters"
)
// Service returns a single Service by name on a particular node
diff --git a/swarm/network/simulation/simulation.go b/swarm/network/simulation/simulation.go
index e5435b9f0..d723abbad 100644
--- a/swarm/network/simulation/simulation.go
+++ b/swarm/network/simulation/simulation.go
@@ -23,11 +23,11 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/simulations"
- "github.com/ethereum/go-ethereum/p2p/simulations/adapters"
+ "github.com/dexon-foundation/dexon/log"
+ "github.com/dexon-foundation/dexon/node"
+ "github.com/dexon-foundation/dexon/p2p/enode"
+ "github.com/dexon-foundation/dexon/p2p/simulations"
+ "github.com/dexon-foundation/dexon/p2p/simulations/adapters"
)
// Common errors that are returned by functions in this package.
diff --git a/swarm/network/simulation/simulation_test.go b/swarm/network/simulation/simulation_test.go
index ca8599d7c..2b9f77af8 100644
--- a/swarm/network/simulation/simulation_test.go
+++ b/swarm/network/simulation/simulation_test.go
@@ -24,11 +24,11 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/simulations/adapters"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/dexon-foundation/dexon/log"
+ "github.com/dexon-foundation/dexon/node"
+ "github.com/dexon-foundation/dexon/p2p"
+ "github.com/dexon-foundation/dexon/p2p/simulations/adapters"
+ "github.com/dexon-foundation/dexon/rpc"
colorable "github.com/mattn/go-colorable"
)
diff --git a/swarm/network/simulations/discovery/discovery_test.go b/swarm/network/simulations/discovery/discovery_test.go
index cd5456b73..8bc12385d 100644
--- a/swarm/network/simulations/discovery/discovery_test.go
+++ b/swarm/network/simulations/discovery/discovery_test.go
@@ -31,14 +31,14 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/simulations"
- "github.com/ethereum/go-ethereum/p2p/simulations/adapters"
- "github.com/ethereum/go-ethereum/swarm/network"
- "github.com/ethereum/go-ethereum/swarm/state"
+ "github.com/dexon-foundation/dexon/log"
+ "github.com/dexon-foundation/dexon/node"
+ "github.com/dexon-foundation/dexon/p2p"
+ "github.com/dexon-foundation/dexon/p2p/enode"
+ "github.com/dexon-foundation/dexon/p2p/simulations"
+ "github.com/dexon-foundation/dexon/p2p/simulations/adapters"
+ "github.com/dexon-foundation/dexon/swarm/network"
+ "github.com/dexon-foundation/dexon/swarm/state"
colorable "github.com/mattn/go-colorable"
)
diff --git a/swarm/network/simulations/overlay.go b/swarm/network/simulations/overlay.go
index 284ae6398..9c8e1f5f7 100644
--- a/swarm/network/simulations/overlay.go
+++ b/swarm/network/simulations/overlay.go
@@ -27,13 +27,13 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/simulations"
- "github.com/ethereum/go-ethereum/p2p/simulations/adapters"
- "github.com/ethereum/go-ethereum/swarm/network"
- "github.com/ethereum/go-ethereum/swarm/state"
+ "github.com/dexon-foundation/dexon/log"
+ "github.com/dexon-foundation/dexon/node"
+ "github.com/dexon-foundation/dexon/p2p/enode"
+ "github.com/dexon-foundation/dexon/p2p/simulations"
+ "github.com/dexon-foundation/dexon/p2p/simulations/adapters"
+ "github.com/dexon-foundation/dexon/swarm/network"
+ "github.com/dexon-foundation/dexon/swarm/state"
colorable "github.com/mattn/go-colorable"
)
diff --git a/swarm/network/simulations/overlay_test.go b/swarm/network/simulations/overlay_test.go
index 6ccdb5ce2..cc4ea6475 100644
--- a/swarm/network/simulations/overlay_test.go
+++ b/swarm/network/simulations/overlay_test.go
@@ -26,9 +26,9 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/simulations"
- "github.com/ethereum/go-ethereum/swarm/log"
+ "github.com/dexon-foundation/dexon/p2p/enode"
+ "github.com/dexon-foundation/dexon/p2p/simulations"
+ "github.com/dexon-foundation/dexon/swarm/log"
)
var (
diff --git a/swarm/network/stream/common_test.go b/swarm/network/stream/common_test.go
index e0a7f7e12..154446b4a 100644
--- a/swarm/network/stream/common_test.go
+++ b/swarm/network/stream/common_test.go
@@ -30,15 +30,15 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p/enode"
- p2ptest "github.com/ethereum/go-ethereum/p2p/testing"
- "github.com/ethereum/go-ethereum/swarm/network"
- "github.com/ethereum/go-ethereum/swarm/network/simulation"
- "github.com/ethereum/go-ethereum/swarm/pot"
- "github.com/ethereum/go-ethereum/swarm/state"
- "github.com/ethereum/go-ethereum/swarm/storage"
- "github.com/ethereum/go-ethereum/swarm/testutil"
+ "github.com/dexon-foundation/dexon/log"
+ "github.com/dexon-foundation/dexon/p2p/enode"
+ p2ptest "github.com/dexon-foundation/dexon/p2p/testing"
+ "github.com/dexon-foundation/dexon/swarm/network"
+ "github.com/dexon-foundation/dexon/swarm/network/simulation"
+ "github.com/dexon-foundation/dexon/swarm/pot"
+ "github.com/dexon-foundation/dexon/swarm/state"
+ "github.com/dexon-foundation/dexon/swarm/storage"
+ "github.com/dexon-foundation/dexon/swarm/testutil"
colorable "github.com/mattn/go-colorable"
)
diff --git a/swarm/network/stream/delivery.go b/swarm/network/stream/delivery.go
index c73298d9a..fbaacb512 100644
--- a/swarm/network/stream/delivery.go
+++ b/swarm/network/stream/delivery.go
@@ -19,15 +19,14 @@ package stream
import (
"context"
"errors"
-
"fmt"
- "github.com/ethereum/go-ethereum/metrics"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/swarm/log"
- "github.com/ethereum/go-ethereum/swarm/network"
- "github.com/ethereum/go-ethereum/swarm/spancontext"
- "github.com/ethereum/go-ethereum/swarm/storage"
+ "github.com/dexon-foundation/dexon/metrics"
+ "github.com/dexon-foundation/dexon/p2p/enode"
+ "github.com/dexon-foundation/dexon/swarm/log"
+ "github.com/dexon-foundation/dexon/swarm/network"
+ "github.com/dexon-foundation/dexon/swarm/spancontext"
+ "github.com/dexon-foundation/dexon/swarm/storage"
opentracing "github.com/opentracing/opentracing-go"
)
diff --git a/swarm/network/stream/delivery_test.go b/swarm/network/stream/delivery_test.go
index f69f80499..ad0ea531e 100644
--- a/swarm/network/stream/delivery_test.go
+++ b/swarm/network/stream/delivery_test.go
@@ -25,19 +25,19 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/protocols"
- "github.com/ethereum/go-ethereum/p2p/simulations/adapters"
- p2ptest "github.com/ethereum/go-ethereum/p2p/testing"
- "github.com/ethereum/go-ethereum/swarm/log"
- "github.com/ethereum/go-ethereum/swarm/network"
- pq "github.com/ethereum/go-ethereum/swarm/network/priorityqueue"
- "github.com/ethereum/go-ethereum/swarm/network/simulation"
- "github.com/ethereum/go-ethereum/swarm/state"
- "github.com/ethereum/go-ethereum/swarm/storage"
- "github.com/ethereum/go-ethereum/swarm/testutil"
+ "github.com/dexon-foundation/dexon/node"
+ "github.com/dexon-foundation/dexon/p2p"
+ "github.com/dexon-foundation/dexon/p2p/enode"
+ "github.com/dexon-foundation/dexon/p2p/protocols"
+ "github.com/dexon-foundation/dexon/p2p/simulations/adapters"
+ p2ptest "github.com/dexon-foundation/dexon/p2p/testing"
+ "github.com/dexon-foundation/dexon/swarm/log"
+ "github.com/dexon-foundation/dexon/swarm/network"
+ pq "github.com/dexon-foundation/dexon/swarm/network/priorityqueue"
+ "github.com/dexon-foundation/dexon/swarm/network/simulation"
+ "github.com/dexon-foundation/dexon/swarm/state"
+ "github.com/dexon-foundation/dexon/swarm/storage"
+ "github.com/dexon-foundation/dexon/swarm/testutil"
)
//Tests initializing a retrieve request
diff --git a/swarm/network/stream/intervals/dbstore_test.go b/swarm/network/stream/intervals/dbstore_test.go
index 6716e593a..9d07a95a6 100644
--- a/swarm/network/stream/intervals/dbstore_test.go
+++ b/swarm/network/stream/intervals/dbstore_test.go
@@ -21,7 +21,7 @@ import (
"os"
"testing"
- "github.com/ethereum/go-ethereum/swarm/state"
+ "github.com/dexon-foundation/dexon/swarm/state"
)
// TestDBStore tests basic functionality of DBStore.
diff --git a/swarm/network/stream/intervals/store_test.go b/swarm/network/stream/intervals/store_test.go
index 0ab14c065..289d34f19 100644
--- a/swarm/network/stream/intervals/store_test.go
+++ b/swarm/network/stream/intervals/store_test.go
@@ -20,7 +20,7 @@ import (
"errors"
"testing"
- "github.com/ethereum/go-ethereum/swarm/state"
+ "github.com/dexon-foundation/dexon/swarm/state"
)
var ErrNotFound = errors.New("not found")
diff --git a/swarm/network/stream/intervals_test.go b/swarm/network/stream/intervals_test.go
index 668cf586c..965648705 100644
--- a/swarm/network/stream/intervals_test.go
+++ b/swarm/network/stream/intervals_test.go
@@ -25,15 +25,15 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/simulations/adapters"
- "github.com/ethereum/go-ethereum/swarm/network"
- "github.com/ethereum/go-ethereum/swarm/network/simulation"
- "github.com/ethereum/go-ethereum/swarm/state"
- "github.com/ethereum/go-ethereum/swarm/storage"
- "github.com/ethereum/go-ethereum/swarm/testutil"
+ "github.com/dexon-foundation/dexon/log"
+ "github.com/dexon-foundation/dexon/node"
+ "github.com/dexon-foundation/dexon/p2p/enode"
+ "github.com/dexon-foundation/dexon/p2p/simulations/adapters"
+ "github.com/dexon-foundation/dexon/swarm/network"
+ "github.com/dexon-foundation/dexon/swarm/network/simulation"
+ "github.com/dexon-foundation/dexon/swarm/state"
+ "github.com/dexon-foundation/dexon/swarm/storage"
+ "github.com/dexon-foundation/dexon/swarm/testutil"
)
func TestIntervalsLive(t *testing.T) {
diff --git a/swarm/network/stream/lightnode_test.go b/swarm/network/stream/lightnode_test.go
index 65cde2411..3f674db7d 100644
--- a/swarm/network/stream/lightnode_test.go
+++ b/swarm/network/stream/lightnode_test.go
@@ -18,7 +18,7 @@ package stream
import (
"testing"
- p2ptest "github.com/ethereum/go-ethereum/p2p/testing"
+ p2ptest "github.com/dexon-foundation/dexon/p2p/testing"
)
// This test checks the default behavior of the server, that is
diff --git a/swarm/network/stream/messages.go b/swarm/network/stream/messages.go
index eb1b2983e..611ed97f9 100644
--- a/swarm/network/stream/messages.go
+++ b/swarm/network/stream/messages.go
@@ -21,11 +21,11 @@ import (
"fmt"
"time"
- "github.com/ethereum/go-ethereum/metrics"
- "github.com/ethereum/go-ethereum/swarm/log"
- bv "github.com/ethereum/go-ethereum/swarm/network/bitvector"
- "github.com/ethereum/go-ethereum/swarm/spancontext"
- "github.com/ethereum/go-ethereum/swarm/storage"
+ "github.com/dexon-foundation/dexon/metrics"
+ "github.com/dexon-foundation/dexon/swarm/log"
+ bv "github.com/dexon-foundation/dexon/swarm/network/bitvector"
+ "github.com/dexon-foundation/dexon/swarm/spancontext"
+ "github.com/dexon-foundation/dexon/swarm/storage"
"github.com/opentracing/opentracing-go"
)
diff --git a/swarm/network/stream/peer.go b/swarm/network/stream/peer.go
index 4bccf56f5..7d3188f15 100644
--- a/swarm/network/stream/peer.go
+++ b/swarm/network/stream/peer.go
@@ -23,14 +23,14 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/metrics"
- "github.com/ethereum/go-ethereum/p2p/protocols"
- "github.com/ethereum/go-ethereum/swarm/log"
- pq "github.com/ethereum/go-ethereum/swarm/network/priorityqueue"
- "github.com/ethereum/go-ethereum/swarm/network/stream/intervals"
- "github.com/ethereum/go-ethereum/swarm/spancontext"
- "github.com/ethereum/go-ethereum/swarm/state"
- "github.com/ethereum/go-ethereum/swarm/storage"
+ "github.com/dexon-foundation/dexon/metrics"
+ "github.com/dexon-foundation/dexon/p2p/protocols"
+ "github.com/dexon-foundation/dexon/swarm/log"
+ pq "github.com/dexon-foundation/dexon/swarm/network/priorityqueue"
+ "github.com/dexon-foundation/dexon/swarm/network/stream/intervals"
+ "github.com/dexon-foundation/dexon/swarm/spancontext"
+ "github.com/dexon-foundation/dexon/swarm/state"
+ "github.com/dexon-foundation/dexon/swarm/storage"
opentracing "github.com/opentracing/opentracing-go"
)
diff --git a/swarm/network/stream/snapshot_retrieval_test.go b/swarm/network/stream/snapshot_retrieval_test.go
index 932e28b32..25b835d2f 100644
--- a/swarm/network/stream/snapshot_retrieval_test.go
+++ b/swarm/network/stream/snapshot_retrieval_test.go
@@ -23,14 +23,14 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/simulations/adapters"
- "github.com/ethereum/go-ethereum/swarm/log"
- "github.com/ethereum/go-ethereum/swarm/network"
- "github.com/ethereum/go-ethereum/swarm/network/simulation"
- "github.com/ethereum/go-ethereum/swarm/state"
- "github.com/ethereum/go-ethereum/swarm/storage"
+ "github.com/dexon-foundation/dexon/node"
+ "github.com/dexon-foundation/dexon/p2p/enode"
+ "github.com/dexon-foundation/dexon/p2p/simulations/adapters"
+ "github.com/dexon-foundation/dexon/swarm/log"
+ "github.com/dexon-foundation/dexon/swarm/network"
+ "github.com/dexon-foundation/dexon/swarm/network/simulation"
+ "github.com/dexon-foundation/dexon/swarm/state"
+ "github.com/dexon-foundation/dexon/swarm/storage"
)
//constants for random file generation
diff --git a/swarm/network/stream/snapshot_sync_test.go b/swarm/network/stream/snapshot_sync_test.go
index 4a632c8c9..c9c97ed8b 100644
--- a/swarm/network/stream/snapshot_sync_test.go
+++ b/swarm/network/stream/snapshot_sync_test.go
@@ -24,20 +24,20 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/simulations"
- "github.com/ethereum/go-ethereum/p2p/simulations/adapters"
- "github.com/ethereum/go-ethereum/swarm/network"
- "github.com/ethereum/go-ethereum/swarm/network/simulation"
- "github.com/ethereum/go-ethereum/swarm/pot"
- "github.com/ethereum/go-ethereum/swarm/state"
- "github.com/ethereum/go-ethereum/swarm/storage"
- "github.com/ethereum/go-ethereum/swarm/storage/mock"
- mockmem "github.com/ethereum/go-ethereum/swarm/storage/mock/mem"
- "github.com/ethereum/go-ethereum/swarm/testutil"
+ "github.com/dexon-foundation/dexon/common"
+ "github.com/dexon-foundation/dexon/log"
+ "github.com/dexon-foundation/dexon/node"
+ "github.com/dexon-foundation/dexon/p2p/enode"
+ "github.com/dexon-foundation/dexon/p2p/simulations"
+ "github.com/dexon-foundation/dexon/p2p/simulations/adapters"
+ "github.com/dexon-foundation/dexon/swarm/network"
+ "github.com/dexon-foundation/dexon/swarm/network/simulation"
+ "github.com/dexon-foundation/dexon/swarm/pot"
+ "github.com/dexon-foundation/dexon/swarm/state"
+ "github.com/dexon-foundation/dexon/swarm/storage"
+ "github.com/dexon-foundation/dexon/swarm/storage/mock"
+ mockmem "github.com/dexon-foundation/dexon/swarm/storage/mock/mem"
+ "github.com/dexon-foundation/dexon/swarm/testutil"
)
const MaxTimeout = 600
diff --git a/swarm/network/stream/stream.go b/swarm/network/stream/stream.go
index 32e107823..a7c7d8a2f 100644
--- a/swarm/network/stream/stream.go
+++ b/swarm/network/stream/stream.go
@@ -25,17 +25,17 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/metrics"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/protocols"
- "github.com/ethereum/go-ethereum/rpc"
- "github.com/ethereum/go-ethereum/swarm/log"
- "github.com/ethereum/go-ethereum/swarm/network"
- "github.com/ethereum/go-ethereum/swarm/network/stream/intervals"
- "github.com/ethereum/go-ethereum/swarm/pot"
- "github.com/ethereum/go-ethereum/swarm/state"
- "github.com/ethereum/go-ethereum/swarm/storage"
+ "github.com/dexon-foundation/dexon/metrics"
+ "github.com/dexon-foundation/dexon/p2p"
+ "github.com/dexon-foundation/dexon/p2p/enode"
+ "github.com/dexon-foundation/dexon/p2p/protocols"
+ "github.com/dexon-foundation/dexon/rpc"
+ "github.com/dexon-foundation/dexon/swarm/log"
+ "github.com/dexon-foundation/dexon/swarm/network"
+ "github.com/dexon-foundation/dexon/swarm/network/stream/intervals"
+ "github.com/dexon-foundation/dexon/swarm/pot"
+ "github.com/dexon-foundation/dexon/swarm/state"
+ "github.com/dexon-foundation/dexon/swarm/storage"
)
const (
diff --git a/swarm/network/stream/streamer_test.go b/swarm/network/stream/streamer_test.go
index 16c74d3b3..ed1602813 100644
--- a/swarm/network/stream/streamer_test.go
+++ b/swarm/network/stream/streamer_test.go
@@ -24,8 +24,8 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/crypto/sha3"
- p2ptest "github.com/ethereum/go-ethereum/p2p/testing"
+ "github.com/dexon-foundation/dexon/crypto/sha3"
+ p2ptest "github.com/dexon-foundation/dexon/p2p/testing"
)
func TestStreamerSubscribe(t *testing.T) {
diff --git a/swarm/network/stream/syncer.go b/swarm/network/stream/syncer.go
index 4bfbac8b0..6b0f1b9ec 100644
--- a/swarm/network/stream/syncer.go
+++ b/swarm/network/stream/syncer.go
@@ -21,9 +21,9 @@ import (
"strconv"
"time"
- "github.com/ethereum/go-ethereum/metrics"
- "github.com/ethereum/go-ethereum/swarm/log"
- "github.com/ethereum/go-ethereum/swarm/storage"
+ "github.com/dexon-foundation/dexon/metrics"
+ "github.com/dexon-foundation/dexon/swarm/log"
+ "github.com/dexon-foundation/dexon/swarm/storage"
)
const (
diff --git a/swarm/network/stream/syncer_test.go b/swarm/network/stream/syncer_test.go
index 3e3cee18d..4c312a804 100644
--- a/swarm/network/stream/syncer_test.go
+++ b/swarm/network/stream/syncer_test.go
@@ -26,18 +26,18 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/simulations/adapters"
- "github.com/ethereum/go-ethereum/swarm/log"
- "github.com/ethereum/go-ethereum/swarm/network"
- "github.com/ethereum/go-ethereum/swarm/network/simulation"
- "github.com/ethereum/go-ethereum/swarm/state"
- "github.com/ethereum/go-ethereum/swarm/storage"
- "github.com/ethereum/go-ethereum/swarm/storage/mock"
- mockmem "github.com/ethereum/go-ethereum/swarm/storage/mock/mem"
- "github.com/ethereum/go-ethereum/swarm/testutil"
+ "github.com/dexon-foundation/dexon/common"
+ "github.com/dexon-foundation/dexon/node"
+ "github.com/dexon-foundation/dexon/p2p/enode"
+ "github.com/dexon-foundation/dexon/p2p/simulations/adapters"
+ "github.com/dexon-foundation/dexon/swarm/log"
+ "github.com/dexon-foundation/dexon/swarm/network"
+ "github.com/dexon-foundation/dexon/swarm/network/simulation"
+ "github.com/dexon-foundation/dexon/swarm/state"
+ "github.com/dexon-foundation/dexon/swarm/storage"
+ "github.com/dexon-foundation/dexon/swarm/storage/mock"
+ mockmem "github.com/dexon-foundation/dexon/swarm/storage/mock/mem"
+ "github.com/dexon-foundation/dexon/swarm/testutil"
)
const dataChunkCount = 200
diff --git a/swarm/network/stream/visualized_snapshot_sync_sim_test.go b/swarm/network/stream/visualized_snapshot_sync_sim_test.go
index f6d618020..02f7b4537 100644
--- a/swarm/network/stream/visualized_snapshot_sync_sim_test.go
+++ b/swarm/network/stream/visualized_snapshot_sync_sim_test.go
@@ -24,12 +24,12 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/discover"
- "github.com/ethereum/go-ethereum/p2p/simulations"
- "github.com/ethereum/go-ethereum/swarm/log"
- "github.com/ethereum/go-ethereum/swarm/network/simulation"
- "github.com/ethereum/go-ethereum/swarm/storage"
+ "github.com/dexon-foundation/dexon/p2p"
+ "github.com/dexon-foundation/dexon/p2p/discover"
+ "github.com/dexon-foundation/dexon/p2p/simulations"
+ "github.com/dexon-foundation/dexon/swarm/log"
+ "github.com/dexon-foundation/dexon/swarm/network/simulation"
+ "github.com/dexon-foundation/dexon/swarm/storage"
)
/*