aboutsummaryrefslogtreecommitdiffstats
path: root/swarm/network/simulation
diff options
context:
space:
mode:
Diffstat (limited to 'swarm/network/simulation')
-rw-r--r--swarm/network/simulation/bucket.go2
-rw-r--r--swarm/network/simulation/bucket_test.go4
-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.go12
-rw-r--r--swarm/network/simulation/service.go6
-rw-r--r--swarm/network/simulation/simulation.go12
-rw-r--r--swarm/network/simulation/simulation_test.go8
13 files changed, 45 insertions, 45 deletions
diff --git a/swarm/network/simulation/bucket.go b/swarm/network/simulation/bucket.go
index 49a1f4309..63f2e543c 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 2273d35a2..148745d9c 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 functionality using subtests.
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 9d1492979..fd66f3813 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 dffd03a03..0ce9e5066 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 c58d402b0..bc491f724 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 36b244d3d..14708df8f 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 24afe51a4..1f3c389a7 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 bae5afb26..fe8a174f9 100644
--- a/swarm/network/simulation/node_test.go
+++ b/swarm/network/simulation/node_test.go
@@ -23,12 +23,12 @@ 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"
- "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"
+ "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 0ac8149a9..dac85a10b 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 e18d19a67..a3afb118f 100644
--- a/swarm/network/simulation/simulation.go
+++ b/swarm/network/simulation/simulation.go
@@ -23,12 +23,12 @@ 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/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"
)
// 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 1d0338f59..b28999d6b 100644
--- a/swarm/network/simulation/simulation_test.go
+++ b/swarm/network/simulation/simulation_test.go
@@ -24,10 +24,10 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/node"
- "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/simulations"
+ "github.com/dexon-foundation/dexon/p2p/simulations/adapters"
"github.com/mattn/go-colorable"
)