aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/swarm
diff options
context:
space:
mode:
authorWei-Ning Huang <w@cobinhood.com>2018-09-26 10:48:31 +0800
committerWei-Ning Huang <w@byzantine-lab.io>2019-06-12 17:23:38 +0800
commit21cbe9d5b1630be351329a5715fd599030a00122 (patch)
treed595b8cceb54662497d44b102b6ddbbd60ec0a01 /cmd/swarm
parent2ba220653fdf945844896458821808f2edd8f4af (diff)
downloadgo-tangerine-21cbe9d5b1630be351329a5715fd599030a00122.tar.gz
go-tangerine-21cbe9d5b1630be351329a5715fd599030a00122.tar.zst
go-tangerine-21cbe9d5b1630be351329a5715fd599030a00122.zip
Change import go github.com/dexon-foundation/dexon
Diffstat (limited to 'cmd/swarm')
-rw-r--r--cmd/swarm/access.go6
-rw-r--r--cmd/swarm/access_test.go12
-rw-r--r--cmd/swarm/config.go12
-rw-r--r--cmd/swarm/config_test.go8
-rw-r--r--cmd/swarm/db.go8
-rw-r--r--cmd/swarm/download.go8
-rw-r--r--cmd/swarm/explore.go4
-rw-r--r--cmd/swarm/export_test.go4
-rw-r--r--cmd/swarm/feeds.go12
-rw-r--r--cmd/swarm/feeds_test.go18
-rw-r--r--cmd/swarm/fs.go8
-rw-r--r--cmd/swarm/fs_test.go4
-rw-r--r--cmd/swarm/global-store/global_store.go10
-rw-r--r--cmd/swarm/global-store/global_store_test.go6
-rw-r--r--cmd/swarm/global-store/main.go4
-rw-r--r--cmd/swarm/global-store/run_test.go2
-rw-r--r--cmd/swarm/hash.go4
-rw-r--r--cmd/swarm/list.go4
-rw-r--r--cmd/swarm/main.go36
-rw-r--r--cmd/swarm/manifest.go6
-rw-r--r--cmd/swarm/manifest_test.go6
-rw-r--r--cmd/swarm/mimegen/generator.go2
-rw-r--r--cmd/swarm/run_test.go18
-rw-r--r--cmd/swarm/swarm-smoke/feed_upload_and_sync.go12
-rw-r--r--cmd/swarm/swarm-smoke/main.go12
-rw-r--r--cmd/swarm/swarm-smoke/sliding_window.go6
-rw-r--r--cmd/swarm/swarm-smoke/upload_and_sync.go12
-rw-r--r--cmd/swarm/swarm-smoke/upload_speed.go6
-rw-r--r--cmd/swarm/swarm-smoke/util.go10
-rw-r--r--cmd/swarm/swarm-snapshot/create.go12
-rw-r--r--cmd/swarm/swarm-snapshot/create_test.go2
-rw-r--r--cmd/swarm/swarm-snapshot/main.go4
-rw-r--r--cmd/swarm/swarm-snapshot/run_test.go2
-rw-r--r--cmd/swarm/upload.go6
-rw-r--r--cmd/swarm/upload_test.go6
35 files changed, 146 insertions, 146 deletions
diff --git a/cmd/swarm/access.go b/cmd/swarm/access.go
index 072541b65..a1cefa271 100644
--- a/cmd/swarm/access.go
+++ b/cmd/swarm/access.go
@@ -23,9 +23,9 @@ import (
"io/ioutil"
"strings"
- "github.com/ethereum/go-ethereum/cmd/utils"
- "github.com/ethereum/go-ethereum/swarm/api"
- "github.com/ethereum/go-ethereum/swarm/api/client"
+ "github.com/dexon-foundation/dexon/cmd/utils"
+ "github.com/dexon-foundation/dexon/swarm/api"
+ "github.com/dexon-foundation/dexon/swarm/api/client"
"gopkg.in/urfave/cli.v1"
)
diff --git a/cmd/swarm/access_test.go b/cmd/swarm/access_test.go
index 967ef2742..498d668cd 100644
--- a/cmd/swarm/access_test.go
+++ b/cmd/swarm/access_test.go
@@ -31,12 +31,12 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/crypto/ecies"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/swarm/api"
- swarmapi "github.com/ethereum/go-ethereum/swarm/api/client"
- "github.com/ethereum/go-ethereum/swarm/testutil"
+ "github.com/dexon-foundation/dexon/crypto"
+ "github.com/dexon-foundation/dexon/crypto/ecies"
+ "github.com/dexon-foundation/dexon/log"
+ "github.com/dexon-foundation/dexon/swarm/api"
+ swarmapi "github.com/dexon-foundation/dexon/swarm/api/client"
+ "github.com/dexon-foundation/dexon/swarm/testutil"
"golang.org/x/crypto/sha3"
)
diff --git a/cmd/swarm/config.go b/cmd/swarm/config.go
index 98d4dee7b..68f15184f 100644
--- a/cmd/swarm/config.go
+++ b/cmd/swarm/config.go
@@ -29,13 +29,13 @@ import (
cli "gopkg.in/urfave/cli.v1"
- "github.com/ethereum/go-ethereum/cmd/utils"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/node"
+ "github.com/dexon-foundation/dexon/cmd/utils"
+ "github.com/dexon-foundation/dexon/common"
+ "github.com/dexon-foundation/dexon/log"
+ "github.com/dexon-foundation/dexon/node"
"github.com/naoina/toml"
- bzzapi "github.com/ethereum/go-ethereum/swarm/api"
+ bzzapi "github.com/dexon-foundation/dexon/swarm/api"
)
var (
@@ -97,7 +97,7 @@ var tomlSettings = toml.Config{
MissingField: func(rt reflect.Type, field string) error {
link := ""
if unicode.IsUpper(rune(rt.Name()[0])) && rt.PkgPath() != "main" {
- link = fmt.Sprintf(", check github.com/ethereum/go-ethereum/swarm/api/config.go for available fields")
+ link = fmt.Sprintf(", check github.com/dexon-foundation/dexon/swarm/api/config.go for available fields")
}
return fmt.Errorf("field '%s' is not defined in %s%s", field, rt.String(), link)
},
diff --git a/cmd/swarm/config_test.go b/cmd/swarm/config_test.go
index 18be316e5..6bc613274 100644
--- a/cmd/swarm/config_test.go
+++ b/cmd/swarm/config_test.go
@@ -26,11 +26,11 @@ import (
"testing"
"time"
+ "github.com/dexon-foundation/dexon/cmd/utils"
+ "github.com/dexon-foundation/dexon/rpc"
+ "github.com/dexon-foundation/dexon/swarm"
+ "github.com/dexon-foundation/dexon/swarm/api"
"github.com/docker/docker/pkg/reexec"
- "github.com/ethereum/go-ethereum/cmd/utils"
- "github.com/ethereum/go-ethereum/rpc"
- "github.com/ethereum/go-ethereum/swarm"
- "github.com/ethereum/go-ethereum/swarm/api"
)
func TestConfigDump(t *testing.T) {
diff --git a/cmd/swarm/db.go b/cmd/swarm/db.go
index 7916beffc..6445883ad 100644
--- a/cmd/swarm/db.go
+++ b/cmd/swarm/db.go
@@ -22,10 +22,10 @@ import (
"os"
"path/filepath"
- "github.com/ethereum/go-ethereum/cmd/utils"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/swarm/storage"
+ "github.com/dexon-foundation/dexon/cmd/utils"
+ "github.com/dexon-foundation/dexon/common"
+ "github.com/dexon-foundation/dexon/log"
+ "github.com/dexon-foundation/dexon/swarm/storage"
"gopkg.in/urfave/cli.v1"
)
diff --git a/cmd/swarm/download.go b/cmd/swarm/download.go
index fcbefa020..63f1131d6 100644
--- a/cmd/swarm/download.go
+++ b/cmd/swarm/download.go
@@ -21,10 +21,10 @@ import (
"path/filepath"
"strings"
- "github.com/ethereum/go-ethereum/cmd/utils"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/swarm/api"
- swarm "github.com/ethereum/go-ethereum/swarm/api/client"
+ "github.com/dexon-foundation/dexon/cmd/utils"
+ "github.com/dexon-foundation/dexon/log"
+ "github.com/dexon-foundation/dexon/swarm/api"
+ swarm "github.com/dexon-foundation/dexon/swarm/api/client"
"gopkg.in/urfave/cli.v1"
)
diff --git a/cmd/swarm/explore.go b/cmd/swarm/explore.go
index 5b5b8bf41..2280cade8 100644
--- a/cmd/swarm/explore.go
+++ b/cmd/swarm/explore.go
@@ -22,8 +22,8 @@ import (
"fmt"
"os"
- "github.com/ethereum/go-ethereum/cmd/utils"
- "github.com/ethereum/go-ethereum/swarm/storage"
+ "github.com/dexon-foundation/dexon/cmd/utils"
+ "github.com/dexon-foundation/dexon/swarm/storage"
"gopkg.in/urfave/cli.v1"
)
diff --git a/cmd/swarm/export_test.go b/cmd/swarm/export_test.go
index e8671eea7..21bd9d4b0 100644
--- a/cmd/swarm/export_test.go
+++ b/cmd/swarm/export_test.go
@@ -26,8 +26,8 @@ import (
"strings"
"testing"
- "github.com/ethereum/go-ethereum/swarm"
- "github.com/ethereum/go-ethereum/swarm/testutil"
+ "github.com/dexon-foundation/dexon/swarm"
+ "github.com/dexon-foundation/dexon/swarm/testutil"
)
// TestCLISwarmExportImport perform the following test:
diff --git a/cmd/swarm/feeds.go b/cmd/swarm/feeds.go
index 6cd971a92..9b6f67a45 100644
--- a/cmd/swarm/feeds.go
+++ b/cmd/swarm/feeds.go
@@ -21,13 +21,13 @@ import (
"fmt"
"strings"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/dexon-foundation/dexon/common"
+ "github.com/dexon-foundation/dexon/common/hexutil"
+ "github.com/dexon-foundation/dexon/crypto"
- "github.com/ethereum/go-ethereum/cmd/utils"
- swarm "github.com/ethereum/go-ethereum/swarm/api/client"
- "github.com/ethereum/go-ethereum/swarm/storage/feed"
+ "github.com/dexon-foundation/dexon/cmd/utils"
+ swarm "github.com/dexon-foundation/dexon/swarm/api/client"
+ "github.com/dexon-foundation/dexon/swarm/storage/feed"
"gopkg.in/urfave/cli.v1"
)
diff --git a/cmd/swarm/feeds_test.go b/cmd/swarm/feeds_test.go
index 4c40f62a8..672cbade7 100644
--- a/cmd/swarm/feeds_test.go
+++ b/cmd/swarm/feeds_test.go
@@ -23,15 +23,15 @@ import (
"os"
"testing"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/swarm/api"
- swarm "github.com/ethereum/go-ethereum/swarm/api/client"
- swarmhttp "github.com/ethereum/go-ethereum/swarm/api/http"
- "github.com/ethereum/go-ethereum/swarm/storage/feed"
- "github.com/ethereum/go-ethereum/swarm/storage/feed/lookup"
- "github.com/ethereum/go-ethereum/swarm/testutil"
+ "github.com/dexon-foundation/dexon/common/hexutil"
+ "github.com/dexon-foundation/dexon/crypto"
+ "github.com/dexon-foundation/dexon/log"
+ "github.com/dexon-foundation/dexon/swarm/api"
+ swarm "github.com/dexon-foundation/dexon/swarm/api/client"
+ swarmhttp "github.com/dexon-foundation/dexon/swarm/api/http"
+ "github.com/dexon-foundation/dexon/swarm/storage/feed"
+ "github.com/dexon-foundation/dexon/swarm/storage/feed/lookup"
+ "github.com/dexon-foundation/dexon/swarm/testutil"
)
func TestCLIFeedUpdate(t *testing.T) {
diff --git a/cmd/swarm/fs.go b/cmd/swarm/fs.go
index edeeddff8..ba68ed7b7 100644
--- a/cmd/swarm/fs.go
+++ b/cmd/swarm/fs.go
@@ -23,10 +23,10 @@ import (
"strings"
"time"
- "github.com/ethereum/go-ethereum/cmd/utils"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/rpc"
- "github.com/ethereum/go-ethereum/swarm/fuse"
+ "github.com/dexon-foundation/dexon/cmd/utils"
+ "github.com/dexon-foundation/dexon/log"
+ "github.com/dexon-foundation/dexon/rpc"
+ "github.com/dexon-foundation/dexon/swarm/fuse"
"gopkg.in/urfave/cli.v1"
)
diff --git a/cmd/swarm/fs_test.go b/cmd/swarm/fs_test.go
index 5f58d6c0d..096178ebf 100644
--- a/cmd/swarm/fs_test.go
+++ b/cmd/swarm/fs_test.go
@@ -29,8 +29,8 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/cmd/utils"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/dexon-foundation/dexon/cmd/utils"
+ "github.com/dexon-foundation/dexon/log"
)
type testFile struct {
diff --git a/cmd/swarm/global-store/global_store.go b/cmd/swarm/global-store/global_store.go
index a55756e1c..1210e0c3c 100644
--- a/cmd/swarm/global-store/global_store.go
+++ b/cmd/swarm/global-store/global_store.go
@@ -21,11 +21,11 @@ import (
"net/http"
"os"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/rpc"
- "github.com/ethereum/go-ethereum/swarm/storage/mock"
- "github.com/ethereum/go-ethereum/swarm/storage/mock/db"
- "github.com/ethereum/go-ethereum/swarm/storage/mock/mem"
+ "github.com/dexon-foundation/dexon/log"
+ "github.com/dexon-foundation/dexon/rpc"
+ "github.com/dexon-foundation/dexon/swarm/storage/mock"
+ "github.com/dexon-foundation/dexon/swarm/storage/mock/db"
+ "github.com/dexon-foundation/dexon/swarm/storage/mock/mem"
cli "gopkg.in/urfave/cli.v1"
)
diff --git a/cmd/swarm/global-store/global_store_test.go b/cmd/swarm/global-store/global_store_test.go
index 85f361ed4..519c44627 100644
--- a/cmd/swarm/global-store/global_store_test.go
+++ b/cmd/swarm/global-store/global_store_test.go
@@ -25,9 +25,9 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/rpc"
- mockRPC "github.com/ethereum/go-ethereum/swarm/storage/mock/rpc"
+ "github.com/dexon-foundation/dexon/common"
+ "github.com/dexon-foundation/dexon/rpc"
+ mockRPC "github.com/dexon-foundation/dexon/swarm/storage/mock/rpc"
)
// TestHTTP_InMemory tests in-memory global store that exposes
diff --git a/cmd/swarm/global-store/main.go b/cmd/swarm/global-store/main.go
index 51df0099a..82c6a5c3b 100644
--- a/cmd/swarm/global-store/main.go
+++ b/cmd/swarm/global-store/main.go
@@ -19,8 +19,8 @@ package main
import (
"os"
- "github.com/ethereum/go-ethereum/cmd/utils"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/dexon-foundation/dexon/cmd/utils"
+ "github.com/dexon-foundation/dexon/log"
cli "gopkg.in/urfave/cli.v1"
)
diff --git a/cmd/swarm/global-store/run_test.go b/cmd/swarm/global-store/run_test.go
index d7ef626e5..095fe9e65 100644
--- a/cmd/swarm/global-store/run_test.go
+++ b/cmd/swarm/global-store/run_test.go
@@ -21,8 +21,8 @@ import (
"os"
"testing"
+ "github.com/dexon-foundation/dexon/internal/cmdtest"
"github.com/docker/docker/pkg/reexec"
- "github.com/ethereum/go-ethereum/internal/cmdtest"
)
func init() {
diff --git a/cmd/swarm/hash.go b/cmd/swarm/hash.go
index 471feb53d..7e7fa279e 100644
--- a/cmd/swarm/hash.go
+++ b/cmd/swarm/hash.go
@@ -22,8 +22,8 @@ import (
"fmt"
"os"
- "github.com/ethereum/go-ethereum/cmd/utils"
- "github.com/ethereum/go-ethereum/swarm/storage"
+ "github.com/dexon-foundation/dexon/cmd/utils"
+ "github.com/dexon-foundation/dexon/swarm/storage"
"gopkg.in/urfave/cli.v1"
)
diff --git a/cmd/swarm/list.go b/cmd/swarm/list.go
index 5d35154a5..8ac9b7bd3 100644
--- a/cmd/swarm/list.go
+++ b/cmd/swarm/list.go
@@ -22,8 +22,8 @@ import (
"strings"
"text/tabwriter"
- "github.com/ethereum/go-ethereum/cmd/utils"
- swarm "github.com/ethereum/go-ethereum/swarm/api/client"
+ "github.com/dexon-foundation/dexon/cmd/utils"
+ swarm "github.com/dexon-foundation/dexon/swarm/api/client"
"gopkg.in/urfave/cli.v1"
)
diff --git a/cmd/swarm/main.go b/cmd/swarm/main.go
index 3053ea1b3..362c1717b 100644
--- a/cmd/swarm/main.go
+++ b/cmd/swarm/main.go
@@ -29,24 +29,24 @@ import (
"strings"
"syscall"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/accounts/keystore"
- "github.com/ethereum/go-ethereum/cmd/utils"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/console"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/internal/debug"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/rpc"
- "github.com/ethereum/go-ethereum/swarm"
- bzzapi "github.com/ethereum/go-ethereum/swarm/api"
- swarmmetrics "github.com/ethereum/go-ethereum/swarm/metrics"
- "github.com/ethereum/go-ethereum/swarm/storage/mock"
- mockrpc "github.com/ethereum/go-ethereum/swarm/storage/mock/rpc"
- "github.com/ethereum/go-ethereum/swarm/tracing"
- sv "github.com/ethereum/go-ethereum/swarm/version"
+ "github.com/dexon-foundation/dexon/accounts"
+ "github.com/dexon-foundation/dexon/accounts/keystore"
+ "github.com/dexon-foundation/dexon/cmd/utils"
+ "github.com/dexon-foundation/dexon/common"
+ "github.com/dexon-foundation/dexon/console"
+ "github.com/dexon-foundation/dexon/crypto"
+ "github.com/dexon-foundation/dexon/internal/debug"
+ "github.com/dexon-foundation/dexon/log"
+ "github.com/dexon-foundation/dexon/node"
+ "github.com/dexon-foundation/dexon/p2p/enode"
+ "github.com/dexon-foundation/dexon/rpc"
+ "github.com/dexon-foundation/dexon/swarm"
+ bzzapi "github.com/dexon-foundation/dexon/swarm/api"
+ swarmmetrics "github.com/dexon-foundation/dexon/swarm/metrics"
+ "github.com/dexon-foundation/dexon/swarm/storage/mock"
+ mockrpc "github.com/dexon-foundation/dexon/swarm/storage/mock/rpc"
+ "github.com/dexon-foundation/dexon/swarm/tracing"
+ sv "github.com/dexon-foundation/dexon/swarm/version"
cli "gopkg.in/urfave/cli.v1"
)
diff --git a/cmd/swarm/manifest.go b/cmd/swarm/manifest.go
index 312c72fa2..ad918b813 100644
--- a/cmd/swarm/manifest.go
+++ b/cmd/swarm/manifest.go
@@ -22,9 +22,9 @@ import (
"os"
"strings"
- "github.com/ethereum/go-ethereum/cmd/utils"
- "github.com/ethereum/go-ethereum/swarm/api"
- swarm "github.com/ethereum/go-ethereum/swarm/api/client"
+ "github.com/dexon-foundation/dexon/cmd/utils"
+ "github.com/dexon-foundation/dexon/swarm/api"
+ swarm "github.com/dexon-foundation/dexon/swarm/api/client"
"gopkg.in/urfave/cli.v1"
)
diff --git a/cmd/swarm/manifest_test.go b/cmd/swarm/manifest_test.go
index 01d982aa7..55a0e596d 100644
--- a/cmd/swarm/manifest_test.go
+++ b/cmd/swarm/manifest_test.go
@@ -24,9 +24,9 @@ import (
"runtime"
"testing"
- "github.com/ethereum/go-ethereum/swarm/api"
- swarm "github.com/ethereum/go-ethereum/swarm/api/client"
- swarmhttp "github.com/ethereum/go-ethereum/swarm/api/http"
+ "github.com/dexon-foundation/dexon/swarm/api"
+ swarm "github.com/dexon-foundation/dexon/swarm/api/client"
+ swarmhttp "github.com/dexon-foundation/dexon/swarm/api/http"
)
// TestManifestChange tests manifest add, update and remove
diff --git a/cmd/swarm/mimegen/generator.go b/cmd/swarm/mimegen/generator.go
index 68f9e306e..c290351cc 100644
--- a/cmd/swarm/mimegen/generator.go
+++ b/cmd/swarm/mimegen/generator.go
@@ -101,7 +101,7 @@ func main() {
}
}
-var tpl = `// Code generated by github.com/ethereum/go-ethereum/cmd/swarm/mimegen. DO NOT EDIT.
+var tpl = `// Code generated by github.com/dexon-foundation/dexon/cmd/swarm/mimegen. DO NOT EDIT.
package {{ .PackageName }}
diff --git a/cmd/swarm/run_test.go b/cmd/swarm/run_test.go
index 4a6a56d9b..c509ae307 100644
--- a/cmd/swarm/run_test.go
+++ b/cmd/swarm/run_test.go
@@ -32,16 +32,16 @@ import (
"testing"
"time"
+ "github.com/dexon-foundation/dexon/accounts"
+ "github.com/dexon-foundation/dexon/accounts/keystore"
+ "github.com/dexon-foundation/dexon/internal/cmdtest"
+ "github.com/dexon-foundation/dexon/node"
+ "github.com/dexon-foundation/dexon/p2p"
+ "github.com/dexon-foundation/dexon/rpc"
+ "github.com/dexon-foundation/dexon/swarm"
+ "github.com/dexon-foundation/dexon/swarm/api"
+ swarmhttp "github.com/dexon-foundation/dexon/swarm/api/http"
"github.com/docker/docker/pkg/reexec"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/accounts/keystore"
- "github.com/ethereum/go-ethereum/internal/cmdtest"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/rpc"
- "github.com/ethereum/go-ethereum/swarm"
- "github.com/ethereum/go-ethereum/swarm/api"
- swarmhttp "github.com/ethereum/go-ethereum/swarm/api/http"
)
var loglevel = flag.Int("loglevel", 3, "verbosity of logs")
diff --git a/cmd/swarm/swarm-smoke/feed_upload_and_sync.go b/cmd/swarm/swarm-smoke/feed_upload_and_sync.go
index 6b3fed0c7..66e36b71a 100644
--- a/cmd/swarm/swarm-smoke/feed_upload_and_sync.go
+++ b/cmd/swarm/swarm-smoke/feed_upload_and_sync.go
@@ -12,12 +12,12 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
- "github.com/ethereum/go-ethereum/swarm/storage/feed"
- "github.com/ethereum/go-ethereum/swarm/testutil"
+ "github.com/dexon-foundation/dexon/common/hexutil"
+ "github.com/dexon-foundation/dexon/crypto"
+ "github.com/dexon-foundation/dexon/log"
+ "github.com/dexon-foundation/dexon/metrics"
+ "github.com/dexon-foundation/dexon/swarm/storage/feed"
+ "github.com/dexon-foundation/dexon/swarm/testutil"
"github.com/pborman/uuid"
cli "gopkg.in/urfave/cli.v1"
)
diff --git a/cmd/swarm/swarm-smoke/main.go b/cmd/swarm/swarm-smoke/main.go
index 43d2c1ff5..343c9c3bf 100644
--- a/cmd/swarm/swarm-smoke/main.go
+++ b/cmd/swarm/swarm-smoke/main.go
@@ -21,13 +21,13 @@ import (
"os"
"sort"
- "github.com/ethereum/go-ethereum/cmd/utils"
- gethmetrics "github.com/ethereum/go-ethereum/metrics"
- "github.com/ethereum/go-ethereum/metrics/influxdb"
- swarmmetrics "github.com/ethereum/go-ethereum/swarm/metrics"
- "github.com/ethereum/go-ethereum/swarm/tracing"
+ "github.com/dexon-foundation/dexon/cmd/utils"
+ gethmetrics "github.com/dexon-foundation/dexon/metrics"
+ "github.com/dexon-foundation/dexon/metrics/influxdb"
+ swarmmetrics "github.com/dexon-foundation/dexon/swarm/metrics"
+ "github.com/dexon-foundation/dexon/swarm/tracing"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/dexon-foundation/dexon/log"
cli "gopkg.in/urfave/cli.v1"
)
diff --git a/cmd/swarm/swarm-smoke/sliding_window.go b/cmd/swarm/swarm-smoke/sliding_window.go
index d313bbc37..3b17952d4 100644
--- a/cmd/swarm/swarm-smoke/sliding_window.go
+++ b/cmd/swarm/swarm-smoke/sliding_window.go
@@ -22,9 +22,9 @@ import (
"math/rand"
"time"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
- "github.com/ethereum/go-ethereum/swarm/testutil"
+ "github.com/dexon-foundation/dexon/log"
+ "github.com/dexon-foundation/dexon/metrics"
+ "github.com/dexon-foundation/dexon/swarm/testutil"
"github.com/pborman/uuid"
cli "gopkg.in/urfave/cli.v1"
diff --git a/cmd/swarm/swarm-smoke/upload_and_sync.go b/cmd/swarm/swarm-smoke/upload_and_sync.go
index 90230df25..1ea9f2b67 100644
--- a/cmd/swarm/swarm-smoke/upload_and_sync.go
+++ b/cmd/swarm/swarm-smoke/upload_and_sync.go
@@ -26,12 +26,12 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
- "github.com/ethereum/go-ethereum/rpc"
- "github.com/ethereum/go-ethereum/swarm/api"
- "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/metrics"
+ "github.com/dexon-foundation/dexon/rpc"
+ "github.com/dexon-foundation/dexon/swarm/api"
+ "github.com/dexon-foundation/dexon/swarm/storage"
+ "github.com/dexon-foundation/dexon/swarm/testutil"
"github.com/pborman/uuid"
cli "gopkg.in/urfave/cli.v1"
diff --git a/cmd/swarm/swarm-smoke/upload_speed.go b/cmd/swarm/swarm-smoke/upload_speed.go
index 20bf7b86c..b44374d4e 100644
--- a/cmd/swarm/swarm-smoke/upload_speed.go
+++ b/cmd/swarm/swarm-smoke/upload_speed.go
@@ -21,9 +21,9 @@ import (
"fmt"
"time"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
- "github.com/ethereum/go-ethereum/swarm/testutil"
+ "github.com/dexon-foundation/dexon/log"
+ "github.com/dexon-foundation/dexon/metrics"
+ "github.com/dexon-foundation/dexon/swarm/testutil"
cli "gopkg.in/urfave/cli.v1"
)
diff --git a/cmd/swarm/swarm-smoke/util.go b/cmd/swarm/swarm-smoke/util.go
index 87abb44b0..588af39c7 100644
--- a/cmd/swarm/swarm-smoke/util.go
+++ b/cmd/swarm/swarm-smoke/util.go
@@ -32,11 +32,11 @@ import (
"strings"
"time"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
- "github.com/ethereum/go-ethereum/swarm/api"
- "github.com/ethereum/go-ethereum/swarm/api/client"
- "github.com/ethereum/go-ethereum/swarm/spancontext"
+ "github.com/dexon-foundation/dexon/log"
+ "github.com/dexon-foundation/dexon/metrics"
+ "github.com/dexon-foundation/dexon/swarm/api"
+ "github.com/dexon-foundation/dexon/swarm/api/client"
+ "github.com/dexon-foundation/dexon/swarm/spancontext"
opentracing "github.com/opentracing/opentracing-go"
"github.com/pborman/uuid"
cli "gopkg.in/urfave/cli.v1"
diff --git a/cmd/swarm/swarm-snapshot/create.go b/cmd/swarm/swarm-snapshot/create.go
index 127fde8ae..2e4dc084d 100644
--- a/cmd/swarm/swarm-snapshot/create.go
+++ b/cmd/swarm/swarm-snapshot/create.go
@@ -29,12 +29,12 @@ import (
"sync"
"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/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"
+ "github.com/dexon-foundation/dexon/p2p/simulations/adapters"
+ "github.com/dexon-foundation/dexon/swarm/network"
+ "github.com/dexon-foundation/dexon/swarm/network/simulation"
cli "gopkg.in/urfave/cli.v1"
)
diff --git a/cmd/swarm/swarm-snapshot/create_test.go b/cmd/swarm/swarm-snapshot/create_test.go
index c9445168d..5ade096c3 100644
--- a/cmd/swarm/swarm-snapshot/create_test.go
+++ b/cmd/swarm/swarm-snapshot/create_test.go
@@ -27,7 +27,7 @@ import (
"strings"
"testing"
- "github.com/ethereum/go-ethereum/p2p/simulations"
+ "github.com/dexon-foundation/dexon/p2p/simulations"
)
// TestSnapshotCreate is a high level e2e test that tests for snapshot generation.
diff --git a/cmd/swarm/swarm-snapshot/main.go b/cmd/swarm/swarm-snapshot/main.go
index 184727e4d..11e4174d0 100644
--- a/cmd/swarm/swarm-snapshot/main.go
+++ b/cmd/swarm/swarm-snapshot/main.go
@@ -19,8 +19,8 @@ package main
import (
"os"
- "github.com/ethereum/go-ethereum/cmd/utils"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/dexon-foundation/dexon/cmd/utils"
+ "github.com/dexon-foundation/dexon/log"
cli "gopkg.in/urfave/cli.v1"
)
diff --git a/cmd/swarm/swarm-snapshot/run_test.go b/cmd/swarm/swarm-snapshot/run_test.go
index d9a041597..e02f06682 100644
--- a/cmd/swarm/swarm-snapshot/run_test.go
+++ b/cmd/swarm/swarm-snapshot/run_test.go
@@ -21,8 +21,8 @@ import (
"os"
"testing"
+ "github.com/dexon-foundation/dexon/internal/cmdtest"
"github.com/docker/docker/pkg/reexec"
- "github.com/ethereum/go-ethereum/internal/cmdtest"
)
func init() {
diff --git a/cmd/swarm/upload.go b/cmd/swarm/upload.go
index 992f2d6e9..8603d58f3 100644
--- a/cmd/swarm/upload.go
+++ b/cmd/swarm/upload.go
@@ -29,10 +29,10 @@ import (
"strconv"
"strings"
- "github.com/ethereum/go-ethereum/log"
- swarm "github.com/ethereum/go-ethereum/swarm/api/client"
+ "github.com/dexon-foundation/dexon/log"
+ swarm "github.com/dexon-foundation/dexon/swarm/api/client"
- "github.com/ethereum/go-ethereum/cmd/utils"
+ "github.com/dexon-foundation/dexon/cmd/utils"
"gopkg.in/urfave/cli.v1"
)
diff --git a/cmd/swarm/upload_test.go b/cmd/swarm/upload_test.go
index 616486e37..6cdc53037 100644
--- a/cmd/swarm/upload_test.go
+++ b/cmd/swarm/upload_test.go
@@ -30,9 +30,9 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/log"
- swarmapi "github.com/ethereum/go-ethereum/swarm/api/client"
- "github.com/ethereum/go-ethereum/swarm/testutil"
+ "github.com/dexon-foundation/dexon/log"
+ swarmapi "github.com/dexon-foundation/dexon/swarm/api/client"
+ "github.com/dexon-foundation/dexon/swarm/testutil"
"github.com/mattn/go-colorable"
)