aboutsummaryrefslogtreecommitdiffstats
path: root/node
diff options
context:
space:
mode:
authorWei-Ning Huang <w@byzantine-lab.io>2019-06-12 17:31:08 +0800
committerWei-Ning Huang <w@byzantine-lab.io>2019-09-17 16:57:29 +0800
commitac088de6322fc16ebe75c2e5554be73754bf1fe2 (patch)
tree086b7827d46a4d07b834cd94be73beaabb77b734 /node
parent67d565f3f0e398e99bef96827f729e3e4b0edf31 (diff)
downloadgo-tangerine-ac088de6322fc16ebe75c2e5554be73754bf1fe2.tar.gz
go-tangerine-ac088de6322fc16ebe75c2e5554be73754bf1fe2.tar.zst
go-tangerine-ac088de6322fc16ebe75c2e5554be73754bf1fe2.zip
Rebrand as tangerine-network/go-tangerine
Diffstat (limited to 'node')
-rw-r--r--node/api.go12
-rw-r--r--node/config.go18
-rw-r--r--node/config_test.go4
-rw-r--r--node/defaults.go12
-rw-r--r--node/node.go14
-rw-r--r--node/node_example_test.go6
-rw-r--r--node/node_test.go6
-rw-r--r--node/service.go10
-rw-r--r--node/utils_test.go4
9 files changed, 43 insertions, 43 deletions
diff --git a/node/api.go b/node/api.go
index e2e214888..02de526f4 100644
--- a/node/api.go
+++ b/node/api.go
@@ -22,12 +22,12 @@ import (
"strings"
"time"
- "github.com/dexon-foundation/dexon/common/hexutil"
- "github.com/dexon-foundation/dexon/crypto"
- "github.com/dexon-foundation/dexon/metrics"
- "github.com/dexon-foundation/dexon/p2p"
- "github.com/dexon-foundation/dexon/p2p/enode"
- "github.com/dexon-foundation/dexon/rpc"
+ "github.com/tangerine-network/go-tangerine/common/hexutil"
+ "github.com/tangerine-network/go-tangerine/crypto"
+ "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/rpc"
)
// PrivateAdminAPI is the collection of administrative API methods exposed only
diff --git a/node/config.go b/node/config.go
index 8305ac145..149df7822 100644
--- a/node/config.go
+++ b/node/config.go
@@ -26,15 +26,15 @@ import (
"strings"
"sync"
- "github.com/dexon-foundation/dexon/accounts"
- "github.com/dexon-foundation/dexon/accounts/keystore"
- "github.com/dexon-foundation/dexon/accounts/usbwallet"
- "github.com/dexon-foundation/dexon/common"
- "github.com/dexon-foundation/dexon/crypto"
- "github.com/dexon-foundation/dexon/log"
- "github.com/dexon-foundation/dexon/p2p"
- "github.com/dexon-foundation/dexon/p2p/enode"
- "github.com/dexon-foundation/dexon/rpc"
+ "github.com/tangerine-network/go-tangerine/accounts"
+ "github.com/tangerine-network/go-tangerine/accounts/keystore"
+ "github.com/tangerine-network/go-tangerine/accounts/usbwallet"
+ "github.com/tangerine-network/go-tangerine/common"
+ "github.com/tangerine-network/go-tangerine/crypto"
+ "github.com/tangerine-network/go-tangerine/log"
+ "github.com/tangerine-network/go-tangerine/p2p"
+ "github.com/tangerine-network/go-tangerine/p2p/enode"
+ "github.com/tangerine-network/go-tangerine/rpc"
)
const (
diff --git a/node/config_test.go b/node/config_test.go
index 6bc40d455..4fe11dfa5 100644
--- a/node/config_test.go
+++ b/node/config_test.go
@@ -24,8 +24,8 @@ import (
"runtime"
"testing"
- "github.com/dexon-foundation/dexon/crypto"
- "github.com/dexon-foundation/dexon/p2p"
+ "github.com/tangerine-network/go-tangerine/crypto"
+ "github.com/tangerine-network/go-tangerine/p2p"
)
// Tests that datadirs can be successfully created, be them manually configured
diff --git a/node/defaults.go b/node/defaults.go
index 90db6ea68..131124053 100644
--- a/node/defaults.go
+++ b/node/defaults.go
@@ -22,9 +22,9 @@ import (
"path/filepath"
"runtime"
- "github.com/dexon-foundation/dexon/p2p"
- "github.com/dexon-foundation/dexon/p2p/nat"
- "github.com/dexon-foundation/dexon/rpc"
+ "github.com/tangerine-network/go-tangerine/p2p"
+ "github.com/tangerine-network/go-tangerine/p2p/nat"
+ "github.com/tangerine-network/go-tangerine/rpc"
)
const (
@@ -57,11 +57,11 @@ func DefaultDataDir() string {
home := homeDir()
if home != "" {
if runtime.GOOS == "darwin" {
- return filepath.Join(home, "Library", "Dexon")
+ return filepath.Join(home, "Library", "Tangerine")
} else if runtime.GOOS == "windows" {
- return filepath.Join(home, "AppData", "Roaming", "Dexon")
+ return filepath.Join(home, "AppData", "Roaming", "Tangerine")
} else {
- return filepath.Join(home, ".dexon")
+ return filepath.Join(home, ".tangerine")
}
}
// As we cannot guess a stable location, return empty and handle later
diff --git a/node/node.go b/node/node.go
index 5f2c30e9b..746925951 100644
--- a/node/node.go
+++ b/node/node.go
@@ -26,14 +26,14 @@ import (
"strings"
"sync"
- "github.com/dexon-foundation/dexon/accounts"
- "github.com/dexon-foundation/dexon/ethdb"
- "github.com/dexon-foundation/dexon/event"
- "github.com/dexon-foundation/dexon/internal/debug"
- "github.com/dexon-foundation/dexon/log"
- "github.com/dexon-foundation/dexon/p2p"
- "github.com/dexon-foundation/dexon/rpc"
"github.com/prometheus/prometheus/util/flock"
+ "github.com/tangerine-network/go-tangerine/accounts"
+ "github.com/tangerine-network/go-tangerine/ethdb"
+ "github.com/tangerine-network/go-tangerine/event"
+ "github.com/tangerine-network/go-tangerine/internal/debug"
+ "github.com/tangerine-network/go-tangerine/log"
+ "github.com/tangerine-network/go-tangerine/p2p"
+ "github.com/tangerine-network/go-tangerine/rpc"
)
// Node is a container on which services can be registered.
diff --git a/node/node_example_test.go b/node/node_example_test.go
index 4d4613af4..4ef1f7276 100644
--- a/node/node_example_test.go
+++ b/node/node_example_test.go
@@ -20,9 +20,9 @@ import (
"fmt"
"log"
- "github.com/dexon-foundation/dexon/node"
- "github.com/dexon-foundation/dexon/p2p"
- "github.com/dexon-foundation/dexon/rpc"
+ "github.com/tangerine-network/go-tangerine/node"
+ "github.com/tangerine-network/go-tangerine/p2p"
+ "github.com/tangerine-network/go-tangerine/rpc"
)
// SampleService is a trivial network service that can be attached to a node for
diff --git a/node/node_test.go b/node/node_test.go
index 9e203823a..b79c988c3 100644
--- a/node/node_test.go
+++ b/node/node_test.go
@@ -24,9 +24,9 @@ import (
"testing"
"time"
- "github.com/dexon-foundation/dexon/crypto"
- "github.com/dexon-foundation/dexon/p2p"
- "github.com/dexon-foundation/dexon/rpc"
+ "github.com/tangerine-network/go-tangerine/crypto"
+ "github.com/tangerine-network/go-tangerine/p2p"
+ "github.com/tangerine-network/go-tangerine/rpc"
)
var (
diff --git a/node/service.go b/node/service.go
index 380f01c0f..1ecad5fcf 100644
--- a/node/service.go
+++ b/node/service.go
@@ -19,11 +19,11 @@ package node
import (
"reflect"
- "github.com/dexon-foundation/dexon/accounts"
- "github.com/dexon-foundation/dexon/ethdb"
- "github.com/dexon-foundation/dexon/event"
- "github.com/dexon-foundation/dexon/p2p"
- "github.com/dexon-foundation/dexon/rpc"
+ "github.com/tangerine-network/go-tangerine/accounts"
+ "github.com/tangerine-network/go-tangerine/ethdb"
+ "github.com/tangerine-network/go-tangerine/event"
+ "github.com/tangerine-network/go-tangerine/p2p"
+ "github.com/tangerine-network/go-tangerine/rpc"
)
// ServiceContext is a collection of service independent options inherited from
diff --git a/node/utils_test.go b/node/utils_test.go
index 24f42a7cb..dc59670f4 100644
--- a/node/utils_test.go
+++ b/node/utils_test.go
@@ -22,8 +22,8 @@ package node
import (
"reflect"
- "github.com/dexon-foundation/dexon/p2p"
- "github.com/dexon-foundation/dexon/rpc"
+ "github.com/tangerine-network/go-tangerine/p2p"
+ "github.com/tangerine-network/go-tangerine/rpc"
)
// NoopService is a trivial implementation of the Service interface.