diff options
Diffstat (limited to 'swarm/network/stream')
-rw-r--r-- | swarm/network/stream/common_test.go | 20 | ||||
-rw-r--r-- | swarm/network/stream/delivery.go | 12 | ||||
-rw-r--r-- | swarm/network/stream/delivery_test.go | 26 | ||||
-rw-r--r-- | swarm/network/stream/intervals/dbstore_test.go | 2 | ||||
-rw-r--r-- | swarm/network/stream/intervals/store_test.go | 2 | ||||
-rw-r--r-- | swarm/network/stream/intervals_test.go | 16 | ||||
-rw-r--r-- | swarm/network/stream/lightnode_test.go | 2 | ||||
-rw-r--r-- | swarm/network/stream/messages.go | 10 | ||||
-rw-r--r-- | swarm/network/stream/peer.go | 16 | ||||
-rw-r--r-- | swarm/network/stream/snapshot_retrieval_test.go | 14 | ||||
-rw-r--r-- | swarm/network/stream/snapshot_sync_test.go | 28 | ||||
-rw-r--r-- | swarm/network/stream/stream.go | 20 | ||||
-rw-r--r-- | swarm/network/stream/streamer_test.go | 18 | ||||
-rw-r--r-- | swarm/network/stream/syncer.go | 6 | ||||
-rw-r--r-- | swarm/network/stream/syncer_test.go | 22 | ||||
-rw-r--r-- | swarm/network/stream/visualized_snapshot_sync_sim_test.go | 22 |
16 files changed, 118 insertions, 118 deletions
diff --git a/swarm/network/stream/common_test.go b/swarm/network/stream/common_test.go index ebee84130..3fd67d5f8 100644 --- a/swarm/network/stream/common_test.go +++ b/swarm/network/stream/common_test.go @@ -30,17 +30,17 @@ import ( "sync/atomic" "time" - "github.com/dexon-foundation/dexon/log" - "github.com/dexon-foundation/dexon/p2p/enode" - "github.com/dexon-foundation/dexon/p2p/simulations/adapters" - 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/state" - "github.com/dexon-foundation/dexon/swarm/storage" - mockmem "github.com/dexon-foundation/dexon/swarm/storage/mock/mem" - "github.com/dexon-foundation/dexon/swarm/testutil" colorable "github.com/mattn/go-colorable" + "github.com/tangerine-network/go-tangerine/log" + "github.com/tangerine-network/go-tangerine/p2p/enode" + "github.com/tangerine-network/go-tangerine/p2p/simulations/adapters" + p2ptest "github.com/tangerine-network/go-tangerine/p2p/testing" + "github.com/tangerine-network/go-tangerine/swarm/network" + "github.com/tangerine-network/go-tangerine/swarm/network/simulation" + "github.com/tangerine-network/go-tangerine/swarm/state" + "github.com/tangerine-network/go-tangerine/swarm/storage" + mockmem "github.com/tangerine-network/go-tangerine/swarm/storage/mock/mem" + "github.com/tangerine-network/go-tangerine/swarm/testutil" ) var ( diff --git a/swarm/network/stream/delivery.go b/swarm/network/stream/delivery.go index bd14cb182..e3391ff6c 100644 --- a/swarm/network/stream/delivery.go +++ b/swarm/network/stream/delivery.go @@ -21,13 +21,13 @@ import ( "errors" "fmt" - "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" + "github.com/tangerine-network/go-tangerine/metrics" + "github.com/tangerine-network/go-tangerine/p2p/enode" + "github.com/tangerine-network/go-tangerine/swarm/log" + "github.com/tangerine-network/go-tangerine/swarm/network" + "github.com/tangerine-network/go-tangerine/swarm/spancontext" + "github.com/tangerine-network/go-tangerine/swarm/storage" ) const ( diff --git a/swarm/network/stream/delivery_test.go b/swarm/network/stream/delivery_test.go index 6a051460b..baecfa75a 100644 --- a/swarm/network/stream/delivery_test.go +++ b/swarm/network/stream/delivery_test.go @@ -25,19 +25,19 @@ import ( "testing" "time" - "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" + "github.com/tangerine-network/go-tangerine/node" + "github.com/tangerine-network/go-tangerine/p2p" + "github.com/tangerine-network/go-tangerine/p2p/enode" + "github.com/tangerine-network/go-tangerine/p2p/protocols" + "github.com/tangerine-network/go-tangerine/p2p/simulations/adapters" + p2ptest "github.com/tangerine-network/go-tangerine/p2p/testing" + "github.com/tangerine-network/go-tangerine/swarm/log" + "github.com/tangerine-network/go-tangerine/swarm/network" + pq "github.com/tangerine-network/go-tangerine/swarm/network/priorityqueue" + "github.com/tangerine-network/go-tangerine/swarm/network/simulation" + "github.com/tangerine-network/go-tangerine/swarm/state" + "github.com/tangerine-network/go-tangerine/swarm/storage" + "github.com/tangerine-network/go-tangerine/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 9d07a95a6..d63e50df0 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/dexon-foundation/dexon/swarm/state" + "github.com/tangerine-network/go-tangerine/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 c1db2687a..30aa62734 100644 --- a/swarm/network/stream/intervals/store_test.go +++ b/swarm/network/stream/intervals/store_test.go @@ -19,7 +19,7 @@ package intervals import ( "testing" - "github.com/dexon-foundation/dexon/swarm/state" + "github.com/tangerine-network/go-tangerine/swarm/state" ) // TestInmemoryStore tests basic functionality of InmemoryStore. diff --git a/swarm/network/stream/intervals_test.go b/swarm/network/stream/intervals_test.go index c72311a59..af14aa0f0 100644 --- a/swarm/network/stream/intervals_test.go +++ b/swarm/network/stream/intervals_test.go @@ -25,14 +25,14 @@ import ( "testing" "time" - "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/simulation" - "github.com/dexon-foundation/dexon/swarm/state" - "github.com/dexon-foundation/dexon/swarm/storage" - "github.com/dexon-foundation/dexon/swarm/testutil" + "github.com/tangerine-network/go-tangerine/log" + "github.com/tangerine-network/go-tangerine/node" + "github.com/tangerine-network/go-tangerine/p2p/enode" + "github.com/tangerine-network/go-tangerine/p2p/simulations/adapters" + "github.com/tangerine-network/go-tangerine/swarm/network/simulation" + "github.com/tangerine-network/go-tangerine/swarm/state" + "github.com/tangerine-network/go-tangerine/swarm/storage" + "github.com/tangerine-network/go-tangerine/swarm/testutil" ) func TestIntervalsLive(t *testing.T) { diff --git a/swarm/network/stream/lightnode_test.go b/swarm/network/stream/lightnode_test.go index 889b44c23..cf7f0b0df 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/dexon-foundation/dexon/p2p/testing" + p2ptest "github.com/tangerine-network/go-tangerine/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 cb18d5a2a..88053e4f4 100644 --- a/swarm/network/stream/messages.go +++ b/swarm/network/stream/messages.go @@ -21,12 +21,12 @@ import ( "fmt" "time" - "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" + "github.com/tangerine-network/go-tangerine/metrics" + "github.com/tangerine-network/go-tangerine/swarm/log" + bv "github.com/tangerine-network/go-tangerine/swarm/network/bitvector" + "github.com/tangerine-network/go-tangerine/swarm/spancontext" + "github.com/tangerine-network/go-tangerine/swarm/storage" ) var syncBatchTimeout = 30 * time.Second diff --git a/swarm/network/stream/peer.go b/swarm/network/stream/peer.go index 12a933a29..3f80b19fb 100644 --- a/swarm/network/stream/peer.go +++ b/swarm/network/stream/peer.go @@ -23,15 +23,15 @@ import ( "sync" "time" - "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" + "github.com/tangerine-network/go-tangerine/metrics" + "github.com/tangerine-network/go-tangerine/p2p/protocols" + "github.com/tangerine-network/go-tangerine/swarm/log" + pq "github.com/tangerine-network/go-tangerine/swarm/network/priorityqueue" + "github.com/tangerine-network/go-tangerine/swarm/network/stream/intervals" + "github.com/tangerine-network/go-tangerine/swarm/spancontext" + "github.com/tangerine-network/go-tangerine/swarm/state" + "github.com/tangerine-network/go-tangerine/swarm/storage" ) type notFoundError struct { diff --git a/swarm/network/stream/snapshot_retrieval_test.go b/swarm/network/stream/snapshot_retrieval_test.go index 67db13365..da49ed4b4 100644 --- a/swarm/network/stream/snapshot_retrieval_test.go +++ b/swarm/network/stream/snapshot_retrieval_test.go @@ -22,13 +22,13 @@ import ( "testing" "time" - "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/simulation" - "github.com/dexon-foundation/dexon/swarm/state" - "github.com/dexon-foundation/dexon/swarm/storage" + "github.com/tangerine-network/go-tangerine/node" + "github.com/tangerine-network/go-tangerine/p2p/enode" + "github.com/tangerine-network/go-tangerine/p2p/simulations/adapters" + "github.com/tangerine-network/go-tangerine/swarm/log" + "github.com/tangerine-network/go-tangerine/swarm/network/simulation" + "github.com/tangerine-network/go-tangerine/swarm/state" + "github.com/tangerine-network/go-tangerine/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 8a25e2b06..7afdeb31a 100644 --- a/swarm/network/stream/snapshot_sync_test.go +++ b/swarm/network/stream/snapshot_sync_test.go @@ -26,20 +26,20 @@ import ( "testing" "time" - "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" + "github.com/tangerine-network/go-tangerine/common" + "github.com/tangerine-network/go-tangerine/log" + "github.com/tangerine-network/go-tangerine/node" + "github.com/tangerine-network/go-tangerine/p2p/enode" + "github.com/tangerine-network/go-tangerine/p2p/simulations" + "github.com/tangerine-network/go-tangerine/p2p/simulations/adapters" + "github.com/tangerine-network/go-tangerine/swarm/network" + "github.com/tangerine-network/go-tangerine/swarm/network/simulation" + "github.com/tangerine-network/go-tangerine/swarm/pot" + "github.com/tangerine-network/go-tangerine/swarm/state" + "github.com/tangerine-network/go-tangerine/swarm/storage" + "github.com/tangerine-network/go-tangerine/swarm/storage/mock" + mockmem "github.com/tangerine-network/go-tangerine/swarm/storage/mock/mem" + "github.com/tangerine-network/go-tangerine/swarm/testutil" ) const MaxTimeout = 600 diff --git a/swarm/network/stream/stream.go b/swarm/network/stream/stream.go index ab9f8d152..32218a688 100644 --- a/swarm/network/stream/stream.go +++ b/swarm/network/stream/stream.go @@ -25,16 +25,16 @@ import ( "sync" "time" - "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/state" - "github.com/dexon-foundation/dexon/swarm/storage" + "github.com/tangerine-network/go-tangerine/metrics" + "github.com/tangerine-network/go-tangerine/p2p" + "github.com/tangerine-network/go-tangerine/p2p/enode" + "github.com/tangerine-network/go-tangerine/p2p/protocols" + "github.com/tangerine-network/go-tangerine/rpc" + "github.com/tangerine-network/go-tangerine/swarm/log" + "github.com/tangerine-network/go-tangerine/swarm/network" + "github.com/tangerine-network/go-tangerine/swarm/network/stream/intervals" + "github.com/tangerine-network/go-tangerine/swarm/state" + "github.com/tangerine-network/go-tangerine/swarm/storage" ) const ( diff --git a/swarm/network/stream/streamer_test.go b/swarm/network/stream/streamer_test.go index aee069823..adbf353b6 100644 --- a/swarm/network/stream/streamer_test.go +++ b/swarm/network/stream/streamer_test.go @@ -27,15 +27,15 @@ import ( "testing" "time" - "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/adapters" - 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/state" + "github.com/tangerine-network/go-tangerine/common" + "github.com/tangerine-network/go-tangerine/log" + "github.com/tangerine-network/go-tangerine/node" + "github.com/tangerine-network/go-tangerine/p2p/enode" + "github.com/tangerine-network/go-tangerine/p2p/simulations/adapters" + p2ptest "github.com/tangerine-network/go-tangerine/p2p/testing" + "github.com/tangerine-network/go-tangerine/swarm/network" + "github.com/tangerine-network/go-tangerine/swarm/network/simulation" + "github.com/tangerine-network/go-tangerine/swarm/state" "golang.org/x/crypto/sha3" ) diff --git a/swarm/network/stream/syncer.go b/swarm/network/stream/syncer.go index 0a53cd3c8..53710a83d 100644 --- a/swarm/network/stream/syncer.go +++ b/swarm/network/stream/syncer.go @@ -21,9 +21,9 @@ import ( "strconv" "time" - "github.com/dexon-foundation/dexon/metrics" - "github.com/dexon-foundation/dexon/swarm/log" - "github.com/dexon-foundation/dexon/swarm/storage" + "github.com/tangerine-network/go-tangerine/metrics" + "github.com/tangerine-network/go-tangerine/swarm/log" + "github.com/tangerine-network/go-tangerine/swarm/storage" ) const ( diff --git a/swarm/network/stream/syncer_test.go b/swarm/network/stream/syncer_test.go index b1491f501..0a42b9c41 100644 --- a/swarm/network/stream/syncer_test.go +++ b/swarm/network/stream/syncer_test.go @@ -27,17 +27,17 @@ import ( "testing" "time" - "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" - "github.com/dexon-foundation/dexon/swarm/testutil" + "github.com/tangerine-network/go-tangerine/common" + "github.com/tangerine-network/go-tangerine/node" + "github.com/tangerine-network/go-tangerine/p2p/enode" + "github.com/tangerine-network/go-tangerine/p2p/simulations/adapters" + "github.com/tangerine-network/go-tangerine/swarm/log" + "github.com/tangerine-network/go-tangerine/swarm/network" + "github.com/tangerine-network/go-tangerine/swarm/network/simulation" + "github.com/tangerine-network/go-tangerine/swarm/state" + "github.com/tangerine-network/go-tangerine/swarm/storage" + "github.com/tangerine-network/go-tangerine/swarm/storage/mock" + "github.com/tangerine-network/go-tangerine/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 21cc77e59..50854677b 100644 --- a/swarm/network/stream/visualized_snapshot_sync_sim_test.go +++ b/swarm/network/stream/visualized_snapshot_sync_sim_test.go @@ -28,17 +28,17 @@ import ( "testing" "time" - "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" - "github.com/dexon-foundation/dexon/p2p/simulations/adapters" - "github.com/dexon-foundation/dexon/rlp" - "github.com/dexon-foundation/dexon/swarm/log" - "github.com/dexon-foundation/dexon/swarm/network/simulation" - "github.com/dexon-foundation/dexon/swarm/state" - "github.com/dexon-foundation/dexon/swarm/storage" + "github.com/tangerine-network/go-tangerine/node" + "github.com/tangerine-network/go-tangerine/p2p" + "github.com/tangerine-network/go-tangerine/p2p/enode" + "github.com/tangerine-network/go-tangerine/p2p/protocols" + "github.com/tangerine-network/go-tangerine/p2p/simulations" + "github.com/tangerine-network/go-tangerine/p2p/simulations/adapters" + "github.com/tangerine-network/go-tangerine/rlp" + "github.com/tangerine-network/go-tangerine/swarm/log" + "github.com/tangerine-network/go-tangerine/swarm/network/simulation" + "github.com/tangerine-network/go-tangerine/swarm/state" + "github.com/tangerine-network/go-tangerine/swarm/storage" ) /* |