aboutsummaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
authorWei-Ning Huang <w@cobinhood.com>2018-09-26 10:48:31 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-09 21:32:49 +0800
commitd056357e4999c6c70c8b8e85a9e4f533895ed6c2 (patch)
treebe9f205d2ed8c73d2130b47f01fed2670c1b4d64 /rpc
parent953e13b21b0aae335ef655a1907a8883f1ba7be2 (diff)
downloaddexon-d056357e4999c6c70c8b8e85a9e4f533895ed6c2.tar
dexon-d056357e4999c6c70c8b8e85a9e4f533895ed6c2.tar.gz
dexon-d056357e4999c6c70c8b8e85a9e4f533895ed6c2.tar.bz2
dexon-d056357e4999c6c70c8b8e85a9e4f533895ed6c2.tar.lz
dexon-d056357e4999c6c70c8b8e85a9e4f533895ed6c2.tar.xz
dexon-d056357e4999c6c70c8b8e85a9e4f533895ed6c2.tar.zst
dexon-d056357e4999c6c70c8b8e85a9e4f533895ed6c2.zip
Change import go github.com/dexon-foundation/dexon
Diffstat (limited to 'rpc')
-rw-r--r--rpc/client.go2
-rw-r--r--rpc/client_example_test.go2
-rw-r--r--rpc/client_test.go4
-rw-r--r--rpc/endpoints.go2
-rw-r--r--rpc/http.go2
-rw-r--r--rpc/ipc.go4
-rw-r--r--rpc/ipc_unix.go2
-rw-r--r--rpc/json.go2
-rw-r--r--rpc/server.go2
-rw-r--r--rpc/types.go2
-rw-r--r--rpc/types_test.go2
-rw-r--r--rpc/websocket.go2
12 files changed, 14 insertions, 14 deletions
diff --git a/rpc/client.go b/rpc/client.go
index 6254c95ff..2b5e79848 100644
--- a/rpc/client.go
+++ b/rpc/client.go
@@ -32,7 +32,7 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/dexon-foundation/dexon/log"
)
var (
diff --git a/rpc/client_example_test.go b/rpc/client_example_test.go
index 3bb8717b8..261c6fb70 100644
--- a/rpc/client_example_test.go
+++ b/rpc/client_example_test.go
@@ -22,7 +22,7 @@ import (
"math/big"
"time"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/dexon-foundation/dexon/rpc"
)
// In this example, our client wishes to track the latest 'block number'
diff --git a/rpc/client_test.go b/rpc/client_test.go
index a8195c0af..ecb550521 100644
--- a/rpc/client_test.go
+++ b/rpc/client_test.go
@@ -31,7 +31,7 @@ import (
"time"
"github.com/davecgh/go-spew/spew"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/dexon-foundation/dexon/log"
)
func TestClientRequest(t *testing.T) {
@@ -323,7 +323,7 @@ func TestClientSubscribeClose(t *testing.T) {
}
}
-// This test reproduces https://github.com/ethereum/go-ethereum/issues/17837 where the
+// This test reproduces https://github.com/dexon-foundation/dexon/issues/17837 where the
// client hangs during shutdown when Unsubscribe races with Client.Close.
func TestClientCloseUnsubscribeRace(t *testing.T) {
service := &NotificationTestService{}
diff --git a/rpc/endpoints.go b/rpc/endpoints.go
index 8ca6d4eb0..bf5f650aa 100644
--- a/rpc/endpoints.go
+++ b/rpc/endpoints.go
@@ -19,7 +19,7 @@ package rpc
import (
"net"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/dexon-foundation/dexon/log"
)
// StartHTTPEndpoint starts the HTTP RPC endpoint, configured with cors/vhosts/modules
diff --git a/rpc/http.go b/rpc/http.go
index 674166fb3..4c2e16a50 100644
--- a/rpc/http.go
+++ b/rpc/http.go
@@ -31,7 +31,7 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/dexon-foundation/dexon/log"
"github.com/rs/cors"
)
diff --git a/rpc/ipc.go b/rpc/ipc.go
index 4cce1cf74..1dc318e2d 100644
--- a/rpc/ipc.go
+++ b/rpc/ipc.go
@@ -20,8 +20,8 @@ import (
"context"
"net"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p/netutil"
+ "github.com/dexon-foundation/dexon/log"
+ "github.com/dexon-foundation/dexon/p2p/netutil"
)
// ServeListener accepts connections on l, serving JSON-RPC on them.
diff --git a/rpc/ipc_unix.go b/rpc/ipc_unix.go
index 707b47fd7..c6218dbd9 100644
--- a/rpc/ipc_unix.go
+++ b/rpc/ipc_unix.go
@@ -25,7 +25,7 @@ import (
"os"
"path/filepath"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/dexon-foundation/dexon/log"
)
/*
diff --git a/rpc/json.go b/rpc/json.go
index a523eeb8e..1853a715f 100644
--- a/rpc/json.go
+++ b/rpc/json.go
@@ -26,7 +26,7 @@ import (
"strings"
"sync"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/dexon-foundation/dexon/log"
)
const (
diff --git a/rpc/server.go b/rpc/server.go
index 214e1d3ed..bdd1877ab 100644
--- a/rpc/server.go
+++ b/rpc/server.go
@@ -26,7 +26,7 @@ import (
"sync/atomic"
mapset "github.com/deckarep/golang-set"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/dexon-foundation/dexon/log"
)
const MetadataApi = "rpc"
diff --git a/rpc/types.go b/rpc/types.go
index 4252c3602..368e840f0 100644
--- a/rpc/types.go
+++ b/rpc/types.go
@@ -24,7 +24,7 @@ import (
"sync"
mapset "github.com/deckarep/golang-set"
- "github.com/ethereum/go-ethereum/common/hexutil"
+ "github.com/dexon-foundation/dexon/common/hexutil"
)
// API describes the set of methods offered over the RPC interface
diff --git a/rpc/types_test.go b/rpc/types_test.go
index 68b6d3c54..cd0859925 100644
--- a/rpc/types_test.go
+++ b/rpc/types_test.go
@@ -20,7 +20,7 @@ import (
"encoding/json"
"testing"
- "github.com/ethereum/go-ethereum/common/math"
+ "github.com/dexon-foundation/dexon/common/math"
)
func TestBlockNumberJSONUnmarshal(t *testing.T) {
diff --git a/rpc/websocket.go b/rpc/websocket.go
index eae8320e5..8874e5e60 100644
--- a/rpc/websocket.go
+++ b/rpc/websocket.go
@@ -31,7 +31,7 @@ import (
"time"
mapset "github.com/deckarep/golang-set"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/dexon-foundation/dexon/log"
"golang.org/x/net/websocket"
)