diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md
index b0bad225a4c6..72dee4361bae 100644
--- a/.github/CONTRIBUTING.md
+++ b/.github/CONTRIBUTING.md
@@ -2,7 +2,7 @@
Before you do a feature request please check and make sure that it isn't possible
through some other means. The JavaScript enabled console is a powerful feature
-in the right hands. Please check our [Bitchin' tricks](https://github.com/teamnsrg/go-ethereum/wiki/bitchin-tricks) wiki page for more info
+in the right hands. Please check our [Bitchin' tricks](https://github.com/teamnsrg/ethereum-p2p/wiki/bitchin-tricks) wiki page for more info
and help.
## Contributing
@@ -11,6 +11,6 @@ If you'd like to contribute to go-ethereum please fork, fix, commit and
send a pull request. Commits which do not comply with the coding standards
are ignored (use gofmt!).
-See [Developers' Guide](https://github.com/teamnsrg/go-ethereum/wiki/Developers'-Guide)
+See [Developers' Guide](https://github.com/teamnsrg/ethereum-p2p/wiki/Developers'-Guide)
for more details on configuring your environment, testing, and
dependency management.
diff --git a/.travis.yml b/.travis.yml
index 2c4ae4326c34..946c9bcb3fd1 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,5 +1,5 @@
language: go
-go_import_path: github.com/teamnsrg/go-ethereum
+go_import_path: github.com/teamnsrg/ethereum-p2p
sudo: false
matrix:
include:
diff --git a/README.md b/README.md
index 8ed37ce8aaeb..5e068301dc3a 100644
--- a/README.md
+++ b/README.md
@@ -4,7 +4,7 @@ Official golang implementation of the Ethereum protocol.
[](https://godoc.org/github.com/teamnsrg/go-ethereum)
+)](https://godoc.org/github.com/teamnsrg/ethereum-p2p)
[](https://gitter.im/ethereum/go-ethereum?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
Automated builds are available for stable releases and the unstable master branch.
@@ -13,7 +13,7 @@ Binary archives are published at https://geth.ethereum.org/downloads/.
## Building the source
For prerequisites and detailed build instructions please read the
-[Installation Instructions](https://github.com/teamnsrg/go-ethereum/wiki/Building-Ethereum)
+[Installation Instructions](https://github.com/teamnsrg/ethereum-p2p/wiki/Building-Ethereum)
on the wiki.
Building geth requires both a Go (version 1.7 or later) and a C compiler.
@@ -32,8 +32,8 @@ The go-ethereum project comes with several wrappers/executables found in the `cm
| Command | Description |
|:----------:|-------------|
-| **`geth`** | Our main Ethereum CLI client. It is the entry point into the Ethereum network (main-, test- or private net), capable of running as a full node (default) archive node (retaining all historical state) or a light node (retrieving data live). It can be used by other processes as a gateway into the Ethereum network via JSON RPC endpoints exposed on top of HTTP, WebSocket and/or IPC transports. `geth --help` and the [CLI Wiki page](https://github.com/teamnsrg/go-ethereum/wiki/Command-Line-Options) for command line options. |
-| `abigen` | Source code generator to convert Ethereum contract definitions into easy to use, compile-time type-safe Go packages. It operates on plain [Ethereum contract ABIs](https://github.com/ethereum/wiki/wiki/Ethereum-Contract-ABI) with expanded functionality if the contract bytecode is also available. However it also accepts Solidity source files, making development much more streamlined. Please see our [Native DApps](https://github.com/teamnsrg/go-ethereum/wiki/Native-DApps:-Go-bindings-to-Ethereum-contracts) wiki page for details. |
+| **`geth`** | Our main Ethereum CLI client. It is the entry point into the Ethereum network (main-, test- or private net), capable of running as a full node (default) archive node (retaining all historical state) or a light node (retrieving data live). It can be used by other processes as a gateway into the Ethereum network via JSON RPC endpoints exposed on top of HTTP, WebSocket and/or IPC transports. `geth --help` and the [CLI Wiki page](https://github.com/teamnsrg/ethereum-p2p/wiki/Command-Line-Options) for command line options. |
+| `abigen` | Source code generator to convert Ethereum contract definitions into easy to use, compile-time type-safe Go packages. It operates on plain [Ethereum contract ABIs](https://github.com/ethereum/wiki/wiki/Ethereum-Contract-ABI) with expanded functionality if the contract bytecode is also available. However it also accepts Solidity source files, making development much more streamlined. Please see our [Native DApps](https://github.com/teamnsrg/ethereum-p2p/wiki/Native-DApps:-Go-bindings-to-Ethereum-contracts) wiki page for details. |
| `bootnode` | Stripped down version of our Ethereum client implementation that only takes part in the network node discovery protocol, but does not run any of the higher level application protocols. It can be used as a lightweight bootstrap node to aid in finding peers in private networks. |
| `evm` | Developer utility version of the EVM (Ethereum Virtual Machine) that is capable of running bytecode snippets within a configurable environment and execution mode. Its purpose is to allow isolated, fine-grained debugging of EVM opcodes (e.g. `evm --code 60ff60ff --debug`). |
| `gethrpctest` | Developer utility tool to support our [ethereum/rpc-test](https://github.com/ethereum/rpc-tests) test suite which validates baseline conformity to the [Ethereum JSON RPC](https://github.com/ethereum/wiki/wiki/JSON-RPC) specs. Please see the [test suite's readme](https://github.com/ethereum/rpc-tests/blob/master/README.md) for details. |
@@ -44,7 +44,7 @@ The go-ethereum project comes with several wrappers/executables found in the `cm
## Running geth
Going through all the possible command line flags is out of scope here (please consult our
-[CLI Wiki page](https://github.com/teamnsrg/go-ethereum/wiki/Command-Line-Options)), but we've
+[CLI Wiki page](https://github.com/teamnsrg/ethereum-p2p/wiki/Command-Line-Options)), but we've
enumerated a few common parameter combos to get you up to speed quickly on how you can run your
own Geth instance.
@@ -66,9 +66,9 @@ This command will:
* Bump the memory allowance of the database to 512MB (`--cache=512`), which can help significantly in
sync times especially for HDD users. This flag is optional and you can set it as high or as low as
you'd like, though we'd recommend the 512MB - 2GB range.
- * Start up Geth's built-in interactive [JavaScript console](https://github.com/teamnsrg/go-ethereum/wiki/JavaScript-Console),
+ * Start up Geth's built-in interactive [JavaScript console](https://github.com/teamnsrg/ethereum-p2p/wiki/JavaScript-Console),
(via the trailing `console` subcommand) through which you can invoke all official [`web3` methods](https://github.com/ethereum/wiki/wiki/JavaScript-API)
- as well as Geth's own [management APIs](https://github.com/teamnsrg/go-ethereum/wiki/Management-APIs).
+ as well as Geth's own [management APIs](https://github.com/teamnsrg/ethereum-p2p/wiki/Management-APIs).
This too is optional and if you leave it out you can always attach to an already running Geth instance
with `geth attach`.
@@ -137,7 +137,7 @@ Do not forget `--rpcaddr 0.0.0.0`, if you want to access RPC from other containe
As a developer, sooner rather than later you'll want to start interacting with Geth and the Ethereum
network via your own programs and not manually through the console. To aid this, Geth has built in
support for a JSON-RPC based APIs ([standard APIs](https://github.com/ethereum/wiki/wiki/JSON-RPC) and
-[Geth specific APIs](https://github.com/teamnsrg/go-ethereum/wiki/Management-APIs)). These can be
+[Geth specific APIs](https://github.com/teamnsrg/ethereum-p2p/wiki/Management-APIs)). These can be
exposed via HTTP, WebSockets and IPC (unix sockets on unix based platforms, and named pipes on Windows).
The IPC interface is enabled by default and exposes all the APIs supported by Geth, whereas the HTTP
@@ -290,7 +290,7 @@ Please make sure your contributions adhere to our coding guidelines:
* Commit messages should be prefixed with the package(s) they modify.
* E.g. "eth, rpc: make trace configs optional"
-Please see the [Developers' Guide](https://github.com/teamnsrg/go-ethereum/wiki/Developers'-Guide)
+Please see the [Developers' Guide](https://github.com/teamnsrg/ethereum-p2p/wiki/Developers'-Guide)
for more details on configuring your environment, managing project dependencies and testing procedures.
## License
diff --git a/accounts/abi/abi_test.go b/accounts/abi/abi_test.go
index 849095cd6f20..6fbe81025c08 100644
--- a/accounts/abi/abi_test.go
+++ b/accounts/abi/abi_test.go
@@ -25,8 +25,8 @@ import (
"strings"
"testing"
- "github.com/teamnsrg/go-ethereum/common"
- "github.com/teamnsrg/go-ethereum/crypto"
+ "github.com/teamnsrg/ethereum-p2p/common"
+ "github.com/teamnsrg/ethereum-p2p/crypto"
)
const jsondata = `
diff --git a/accounts/abi/bind/auth.go b/accounts/abi/bind/auth.go
index d6d5acee5a71..9cc15b2a610a 100644
--- a/accounts/abi/bind/auth.go
+++ b/accounts/abi/bind/auth.go
@@ -22,10 +22,10 @@ import (
"io"
"io/ioutil"
- "github.com/teamnsrg/go-ethereum/accounts/keystore"
- "github.com/teamnsrg/go-ethereum/common"
- "github.com/teamnsrg/go-ethereum/core/types"
- "github.com/teamnsrg/go-ethereum/crypto"
+ "github.com/teamnsrg/ethereum-p2p/accounts/keystore"
+ "github.com/teamnsrg/ethereum-p2p/common"
+ "github.com/teamnsrg/ethereum-p2p/core/types"
+ "github.com/teamnsrg/ethereum-p2p/crypto"
)
// NewTransactor is a utility method to easily create a transaction signer from
diff --git a/accounts/abi/bind/backend.go b/accounts/abi/bind/backend.go
index ba1333a7a1fd..760cc3f3deec 100644
--- a/accounts/abi/bind/backend.go
+++ b/accounts/abi/bind/backend.go
@@ -21,9 +21,9 @@ import (
"errors"
"math/big"
- "github.com/teamnsrg/go-ethereum"
- "github.com/teamnsrg/go-ethereum/common"
- "github.com/teamnsrg/go-ethereum/core/types"
+ "github.com/teamnsrg/ethereum-p2p"
+ "github.com/teamnsrg/ethereum-p2p/common"
+ "github.com/teamnsrg/ethereum-p2p/core/types"
)
var (
diff --git a/accounts/abi/bind/backends/simulated.go b/accounts/abi/bind/backends/simulated.go
index 9cdcee5f06f2..76c674668471 100644
--- a/accounts/abi/bind/backends/simulated.go
+++ b/accounts/abi/bind/backends/simulated.go
@@ -24,17 +24,17 @@ import (
"sync"
"time"
- "github.com/teamnsrg/go-ethereum"
- "github.com/teamnsrg/go-ethereum/accounts/abi/bind"
- "github.com/teamnsrg/go-ethereum/common"
- "github.com/teamnsrg/go-ethereum/common/math"
- "github.com/teamnsrg/go-ethereum/consensus/ethash"
- "github.com/teamnsrg/go-ethereum/core"
- "github.com/teamnsrg/go-ethereum/core/state"
- "github.com/teamnsrg/go-ethereum/core/types"
- "github.com/teamnsrg/go-ethereum/core/vm"
- "github.com/teamnsrg/go-ethereum/ethdb"
- "github.com/teamnsrg/go-ethereum/params"
+ "github.com/teamnsrg/ethereum-p2p"
+ "github.com/teamnsrg/ethereum-p2p/accounts/abi/bind"
+ "github.com/teamnsrg/ethereum-p2p/common"
+ "github.com/teamnsrg/ethereum-p2p/common/math"
+ "github.com/teamnsrg/ethereum-p2p/consensus/ethash"
+ "github.com/teamnsrg/ethereum-p2p/core"
+ "github.com/teamnsrg/ethereum-p2p/core/state"
+ "github.com/teamnsrg/ethereum-p2p/core/types"
+ "github.com/teamnsrg/ethereum-p2p/core/vm"
+ "github.com/teamnsrg/ethereum-p2p/ethdb"
+ "github.com/teamnsrg/ethereum-p2p/params"
)
// This nil assignment ensures compile time that SimulatedBackend implements bind.ContractBackend.
diff --git a/accounts/abi/bind/base.go b/accounts/abi/bind/base.go
index a88936792714..72e1ecd575e4 100644
--- a/accounts/abi/bind/base.go
+++ b/accounts/abi/bind/base.go
@@ -22,11 +22,11 @@ import (
"fmt"
"math/big"
- "github.com/teamnsrg/go-ethereum"
- "github.com/teamnsrg/go-ethereum/accounts/abi"
- "github.com/teamnsrg/go-ethereum/common"
- "github.com/teamnsrg/go-ethereum/core/types"
- "github.com/teamnsrg/go-ethereum/crypto"
+ "github.com/teamnsrg/ethereum-p2p"
+ "github.com/teamnsrg/ethereum-p2p/accounts/abi"
+ "github.com/teamnsrg/ethereum-p2p/common"
+ "github.com/teamnsrg/ethereum-p2p/core/types"
+ "github.com/teamnsrg/ethereum-p2p/crypto"
)
// SignerFn is a signer function callback when a contract requires a method to
diff --git a/accounts/abi/bind/bind.go b/accounts/abi/bind/bind.go
index 26e17c323b13..36431fe028a5 100644
--- a/accounts/abi/bind/bind.go
+++ b/accounts/abi/bind/bind.go
@@ -17,7 +17,7 @@
// Package bind generates Ethereum contract Go bindings.
//
// Detailed usage document and tutorial available on the go-ethereum Wiki page:
-// https://github.com/teamnsrg/go-ethereum/wiki/Native-DApps:-Go-bindings-to-Ethereum-contracts
+// https://github.com/teamnsrg/ethereum-p2p/wiki/Native-DApps:-Go-bindings-to-Ethereum-contracts
package bind
import (
@@ -28,7 +28,7 @@ import (
"text/template"
"unicode"
- "github.com/teamnsrg/go-ethereum/accounts/abi"
+ "github.com/teamnsrg/ethereum-p2p/accounts/abi"
"golang.org/x/tools/imports"
)
diff --git a/accounts/abi/bind/template.go b/accounts/abi/bind/template.go
index 4d2ff1f4754c..e6dcad91063e 100644
--- a/accounts/abi/bind/template.go
+++ b/accounts/abi/bind/template.go
@@ -16,7 +16,7 @@
package bind
-import "github.com/teamnsrg/go-ethereum/accounts/abi"
+import "github.com/teamnsrg/ethereum-p2p/accounts/abi"
// tmplData is the data structure required to fill the binding template.
type tmplData struct {
diff --git a/accounts/abi/bind/util.go b/accounts/abi/bind/util.go
index 370d926e2eb8..d8517361c854 100644
--- a/accounts/abi/bind/util.go
+++ b/accounts/abi/bind/util.go
@@ -21,9 +21,9 @@ import (
"fmt"
"time"
- "github.com/teamnsrg/go-ethereum/common"
- "github.com/teamnsrg/go-ethereum/core/types"
- "github.com/teamnsrg/go-ethereum/log"
+ "github.com/teamnsrg/ethereum-p2p/common"
+ "github.com/teamnsrg/ethereum-p2p/core/types"
+ "github.com/teamnsrg/ethereum-p2p/log"
)
// WaitMined waits for tx to be mined on the blockchain.
diff --git a/accounts/abi/bind/util_test.go b/accounts/abi/bind/util_test.go
index 54cc1d69be47..9db05884f13d 100644
--- a/accounts/abi/bind/util_test.go
+++ b/accounts/abi/bind/util_test.go
@@ -22,12 +22,12 @@ import (
"testing"
"time"
- "github.com/teamnsrg/go-ethereum/accounts/abi/bind"
- "github.com/teamnsrg/go-ethereum/accounts/abi/bind/backends"
- "github.com/teamnsrg/go-ethereum/common"
- "github.com/teamnsrg/go-ethereum/core"
- "github.com/teamnsrg/go-ethereum/core/types"
- "github.com/teamnsrg/go-ethereum/crypto"
+ "github.com/teamnsrg/ethereum-p2p/accounts/abi/bind"
+ "github.com/teamnsrg/ethereum-p2p/accounts/abi/bind/backends"
+ "github.com/teamnsrg/ethereum-p2p/common"
+ "github.com/teamnsrg/ethereum-p2p/core"
+ "github.com/teamnsrg/ethereum-p2p/core/types"
+ "github.com/teamnsrg/ethereum-p2p/crypto"
)
var testKey, _ = crypto.HexToECDSA("b71c71a67e1177ad4e901695e1b4b9ee17ae16c6668d313eac2f96dbcda3f291")
diff --git a/accounts/abi/event.go b/accounts/abi/event.go
index af41814bf110..640e976b79fc 100644
--- a/accounts/abi/event.go
+++ b/accounts/abi/event.go
@@ -21,8 +21,8 @@ import (
"reflect"
"strings"
- "github.com/teamnsrg/go-ethereum/common"
- "github.com/teamnsrg/go-ethereum/crypto"
+ "github.com/teamnsrg/ethereum-p2p/common"
+ "github.com/teamnsrg/ethereum-p2p/crypto"
)
// Event is an event potentially triggered by the EVM's LOG mechanism. The Event
diff --git a/accounts/abi/event_test.go b/accounts/abi/event_test.go
index eb9e0ddd836a..5b210080cfa5 100644
--- a/accounts/abi/event_test.go
+++ b/accounts/abi/event_test.go
@@ -20,8 +20,8 @@ import (
"strings"
"testing"
- "github.com/teamnsrg/go-ethereum/common"
- "github.com/teamnsrg/go-ethereum/crypto"
+ "github.com/teamnsrg/ethereum-p2p/common"
+ "github.com/teamnsrg/ethereum-p2p/crypto"
)
func TestEventId(t *testing.T) {
diff --git a/accounts/abi/method.go b/accounts/abi/method.go
index 44819820407a..d8d0f350fc40 100644
--- a/accounts/abi/method.go
+++ b/accounts/abi/method.go
@@ -21,7 +21,7 @@ import (
"reflect"
"strings"
- "github.com/teamnsrg/go-ethereum/crypto"
+ "github.com/teamnsrg/ethereum-p2p/crypto"
)
// Callable method given a `Name` and whether the method is a constant.
diff --git a/accounts/abi/numbers.go b/accounts/abi/numbers.go
index 9c28ac7027c1..4d68923c8991 100644
--- a/accounts/abi/numbers.go
+++ b/accounts/abi/numbers.go
@@ -20,8 +20,8 @@ import (
"math/big"
"reflect"
- "github.com/teamnsrg/go-ethereum/common"
- "github.com/teamnsrg/go-ethereum/common/math"
+ "github.com/teamnsrg/ethereum-p2p/common"
+ "github.com/teamnsrg/ethereum-p2p/common/math"
)
var (
diff --git a/accounts/abi/pack.go b/accounts/abi/pack.go
index e80b853a93cc..a13e9ba4c2f2 100644
--- a/accounts/abi/pack.go
+++ b/accounts/abi/pack.go
@@ -20,8 +20,8 @@ import (
"math/big"
"reflect"
- "github.com/teamnsrg/go-ethereum/common"
- "github.com/teamnsrg/go-ethereum/common/math"
+ "github.com/teamnsrg/ethereum-p2p/common"
+ "github.com/teamnsrg/ethereum-p2p/common/math"
)
// packBytesSlice packs the given bytes as [L, V] as the canonical representation
diff --git a/accounts/abi/pack_test.go b/accounts/abi/pack_test.go
index c5e1d8b133db..e605d08163ff 100644
--- a/accounts/abi/pack_test.go
+++ b/accounts/abi/pack_test.go
@@ -24,7 +24,7 @@ import (
"strings"
"testing"
- "github.com/teamnsrg/go-ethereum/common"
+ "github.com/teamnsrg/ethereum-p2p/common"
)
func TestPack(t *testing.T) {
diff --git a/accounts/abi/type_test.go b/accounts/abi/type_test.go
index 105a8eceea67..22379f43957f 100644
--- a/accounts/abi/type_test.go
+++ b/accounts/abi/type_test.go
@@ -22,7 +22,7 @@ import (
"testing"
"github.com/davecgh/go-spew/spew"
- "github.com/teamnsrg/go-ethereum/common"
+ "github.com/teamnsrg/ethereum-p2p/common"
)
// typeWithoutStringer is a alias for the Type type which simply doesn't implement
diff --git a/accounts/abi/unpack.go b/accounts/abi/unpack.go
index cf737a432f9d..c526b1269cce 100644
--- a/accounts/abi/unpack.go
+++ b/accounts/abi/unpack.go
@@ -22,7 +22,7 @@ import (
"math/big"
"reflect"
- "github.com/teamnsrg/go-ethereum/common"
+ "github.com/teamnsrg/ethereum-p2p/common"
)
// unpacker is a utility interface that enables us to have
diff --git a/accounts/abi/unpack_test.go b/accounts/abi/unpack_test.go
index b1229cdfb2b3..795b7f1e3723 100644
--- a/accounts/abi/unpack_test.go
+++ b/accounts/abi/unpack_test.go
@@ -25,7 +25,7 @@ import (
"strings"
"testing"
- "github.com/teamnsrg/go-ethereum/common"
+ "github.com/teamnsrg/ethereum-p2p/common"
)
type unpackTest struct {
diff --git a/accounts/accounts.go b/accounts/accounts.go
index ee5ca27fe202..4d1002c3273a 100644
--- a/accounts/accounts.go
+++ b/accounts/accounts.go
@@ -20,10 +20,10 @@ package accounts
import (
"math/big"
- ethereum "github.com/teamnsrg/go-ethereum"
- "github.com/teamnsrg/go-ethereum/common"
- "github.com/teamnsrg/go-ethereum/core/types"
- "github.com/teamnsrg/go-ethereum/event"
+ ethereum "github.com/teamnsrg/ethereum-p2p"
+ "github.com/teamnsrg/ethereum-p2p/common"
+ "github.com/teamnsrg/ethereum-p2p/core/types"
+ "github.com/teamnsrg/ethereum-p2p/event"
)
// Account represents an Ethereum account located at a specific location defined
diff --git a/accounts/keystore/account_cache.go b/accounts/keystore/account_cache.go
index 7d5cdbf2d36e..04097e4e2c43 100644
--- a/accounts/keystore/account_cache.go
+++ b/accounts/keystore/account_cache.go
@@ -27,9 +27,9 @@ import (
"sync"
"time"
- "github.com/teamnsrg/go-ethereum/accounts"
- "github.com/teamnsrg/go-ethereum/common"
- "github.com/teamnsrg/go-ethereum/log"
+ "github.com/teamnsrg/ethereum-p2p/accounts"
+ "github.com/teamnsrg/ethereum-p2p/common"
+ "github.com/teamnsrg/ethereum-p2p/log"
"gopkg.in/fatih/set.v0"
)
diff --git a/accounts/keystore/account_cache_test.go b/accounts/keystore/account_cache_test.go
index 19e0ce518ecf..0a65b127a006 100644
--- a/accounts/keystore/account_cache_test.go
+++ b/accounts/keystore/account_cache_test.go
@@ -29,8 +29,8 @@ import (
"github.com/cespare/cp"
"github.com/davecgh/go-spew/spew"
- "github.com/teamnsrg/go-ethereum/accounts"
- "github.com/teamnsrg/go-ethereum/common"
+ "github.com/teamnsrg/ethereum-p2p/accounts"
+ "github.com/teamnsrg/ethereum-p2p/common"
)
var (
diff --git a/accounts/keystore/file_cache.go b/accounts/keystore/file_cache.go
index 9f368585542a..1e6e6a9134d9 100644
--- a/accounts/keystore/file_cache.go
+++ b/accounts/keystore/file_cache.go
@@ -24,7 +24,7 @@ import (
"sync"
"time"
- "github.com/teamnsrg/go-ethereum/log"
+ "github.com/teamnsrg/ethereum-p2p/log"
set "gopkg.in/fatih/set.v0"
)
diff --git a/accounts/keystore/key.go b/accounts/keystore/key.go
index 28f21485a47a..1aed3ec74510 100644
--- a/accounts/keystore/key.go
+++ b/accounts/keystore/key.go
@@ -30,9 +30,9 @@ import (
"time"
"github.com/pborman/uuid"
- "github.com/teamnsrg/go-ethereum/accounts"
- "github.com/teamnsrg/go-ethereum/common"
- "github.com/teamnsrg/go-ethereum/crypto"
+ "github.com/teamnsrg/ethereum-p2p/accounts"
+ "github.com/teamnsrg/ethereum-p2p/common"
+ "github.com/teamnsrg/ethereum-p2p/crypto"
)
const (
diff --git a/accounts/keystore/keystore.go b/accounts/keystore/keystore.go
index 865161c35213..d53509d99198 100644
--- a/accounts/keystore/keystore.go
+++ b/accounts/keystore/keystore.go
@@ -33,11 +33,11 @@ import (
"sync"
"time"
- "github.com/teamnsrg/go-ethereum/accounts"
- "github.com/teamnsrg/go-ethereum/common"
- "github.com/teamnsrg/go-ethereum/core/types"
- "github.com/teamnsrg/go-ethereum/crypto"
- "github.com/teamnsrg/go-ethereum/event"
+ "github.com/teamnsrg/ethereum-p2p/accounts"
+ "github.com/teamnsrg/ethereum-p2p/common"
+ "github.com/teamnsrg/ethereum-p2p/core/types"
+ "github.com/teamnsrg/ethereum-p2p/crypto"
+ "github.com/teamnsrg/ethereum-p2p/event"
)
var (
diff --git a/accounts/keystore/keystore_passphrase.go b/accounts/keystore/keystore_passphrase.go
index 92c9eb8e3bd4..5f452e3b1edd 100644
--- a/accounts/keystore/keystore_passphrase.go
+++ b/accounts/keystore/keystore_passphrase.go
@@ -37,10 +37,10 @@ import (
"path/filepath"
"github.com/pborman/uuid"
- "github.com/teamnsrg/go-ethereum/common"
- "github.com/teamnsrg/go-ethereum/common/math"
- "github.com/teamnsrg/go-ethereum/crypto"
- "github.com/teamnsrg/go-ethereum/crypto/randentropy"
+ "github.com/teamnsrg/ethereum-p2p/common"
+ "github.com/teamnsrg/ethereum-p2p/common/math"
+ "github.com/teamnsrg/ethereum-p2p/crypto"
+ "github.com/teamnsrg/ethereum-p2p/crypto/randentropy"
"golang.org/x/crypto/pbkdf2"
"golang.org/x/crypto/scrypt"
)
diff --git a/accounts/keystore/keystore_passphrase_test.go b/accounts/keystore/keystore_passphrase_test.go
index 20ecce04bfe1..fe0ef5929c95 100644
--- a/accounts/keystore/keystore_passphrase_test.go
+++ b/accounts/keystore/keystore_passphrase_test.go
@@ -20,7 +20,7 @@ import (
"io/ioutil"
"testing"
- "github.com/teamnsrg/go-ethereum/common"
+ "github.com/teamnsrg/ethereum-p2p/common"
)
const (
diff --git a/accounts/keystore/keystore_plain.go b/accounts/keystore/keystore_plain.go
index 00f2d857541d..9ead1f1ec825 100644
--- a/accounts/keystore/keystore_plain.go
+++ b/accounts/keystore/keystore_plain.go
@@ -22,7 +22,7 @@ import (
"os"
"path/filepath"
- "github.com/teamnsrg/go-ethereum/common"
+ "github.com/teamnsrg/ethereum-p2p/common"
)
type keyStorePlain struct {
diff --git a/accounts/keystore/keystore_plain_test.go b/accounts/keystore/keystore_plain_test.go
index 1335ca89f6a2..825475f681f5 100644
--- a/accounts/keystore/keystore_plain_test.go
+++ b/accounts/keystore/keystore_plain_test.go
@@ -27,8 +27,8 @@ import (
"strings"
"testing"
- "github.com/teamnsrg/go-ethereum/common"
- "github.com/teamnsrg/go-ethereum/crypto"
+ "github.com/teamnsrg/ethereum-p2p/common"
+ "github.com/teamnsrg/ethereum-p2p/crypto"
)
func tmpKeyStoreIface(t *testing.T, encrypted bool) (dir string, ks keyStore) {
diff --git a/accounts/keystore/keystore_test.go b/accounts/keystore/keystore_test.go
index 76ca1c48b6ad..e17474558ceb 100644
--- a/accounts/keystore/keystore_test.go
+++ b/accounts/keystore/keystore_test.go
@@ -26,9 +26,9 @@ import (
"testing"
"time"
- "github.com/teamnsrg/go-ethereum/accounts"
- "github.com/teamnsrg/go-ethereum/common"
- "github.com/teamnsrg/go-ethereum/event"
+ "github.com/teamnsrg/ethereum-p2p/accounts"
+ "github.com/teamnsrg/ethereum-p2p/common"
+ "github.com/teamnsrg/ethereum-p2p/event"
)
var testSigData = make([]byte, 32)
diff --git a/accounts/keystore/keystore_wallet.go b/accounts/keystore/keystore_wallet.go
index 3886d5c31cec..df38c092caa1 100644
--- a/accounts/keystore/keystore_wallet.go
+++ b/accounts/keystore/keystore_wallet.go
@@ -19,9 +19,9 @@ package keystore
import (
"math/big"
- ethereum "github.com/teamnsrg/go-ethereum"
- "github.com/teamnsrg/go-ethereum/accounts"
- "github.com/teamnsrg/go-ethereum/core/types"
+ ethereum "github.com/teamnsrg/ethereum-p2p"
+ "github.com/teamnsrg/ethereum-p2p/accounts"
+ "github.com/teamnsrg/ethereum-p2p/core/types"
)
// keystoreWallet implements the accounts.Wallet interface for the original
diff --git a/accounts/keystore/presale.go b/accounts/keystore/presale.go
index 4cadedefd7d7..26769bb0653d 100644
--- a/accounts/keystore/presale.go
+++ b/accounts/keystore/presale.go
@@ -26,8 +26,8 @@ import (
"fmt"
"github.com/pborman/uuid"
- "github.com/teamnsrg/go-ethereum/accounts"
- "github.com/teamnsrg/go-ethereum/crypto"
+ "github.com/teamnsrg/ethereum-p2p/accounts"
+ "github.com/teamnsrg/ethereum-p2p/crypto"
"golang.org/x/crypto/pbkdf2"
)
diff --git a/accounts/keystore/watch.go b/accounts/keystore/watch.go
index fe938fadb51e..325a6ed8da16 100644
--- a/accounts/keystore/watch.go
+++ b/accounts/keystore/watch.go
@@ -22,7 +22,7 @@ import (
"time"
"github.com/rjeczalik/notify"
- "github.com/teamnsrg/go-ethereum/log"
+ "github.com/teamnsrg/ethereum-p2p/log"
)
type watcher struct {
diff --git a/accounts/manager.go b/accounts/manager.go
index 868350f66c97..e8a49e164a0b 100644
--- a/accounts/manager.go
+++ b/accounts/manager.go
@@ -21,7 +21,7 @@ import (
"sort"
"sync"
- "github.com/teamnsrg/go-ethereum/event"
+ "github.com/teamnsrg/ethereum-p2p/event"
)
// Manager is an overarching account manager that can communicate with various
diff --git a/accounts/usbwallet/hub.go b/accounts/usbwallet/hub.go
index cd442be1c72d..338a3be0799c 100644
--- a/accounts/usbwallet/hub.go
+++ b/accounts/usbwallet/hub.go
@@ -23,9 +23,9 @@ import (
"time"
"github.com/karalabe/hid"
- "github.com/teamnsrg/go-ethereum/accounts"
- "github.com/teamnsrg/go-ethereum/event"
- "github.com/teamnsrg/go-ethereum/log"
+ "github.com/teamnsrg/ethereum-p2p/accounts"
+ "github.com/teamnsrg/ethereum-p2p/event"
+ "github.com/teamnsrg/ethereum-p2p/log"
)
// LedgerScheme is the protocol scheme prefixing account and wallet URLs.
diff --git a/accounts/usbwallet/ledger.go b/accounts/usbwallet/ledger.go
index 2d905aa5731d..099e81c18bed 100644
--- a/accounts/usbwallet/ledger.go
+++ b/accounts/usbwallet/ledger.go
@@ -28,12 +28,12 @@ import (
"io"
"math/big"
- "github.com/teamnsrg/go-ethereum/accounts"
- "github.com/teamnsrg/go-ethereum/common"
- "github.com/teamnsrg/go-ethereum/common/hexutil"
- "github.com/teamnsrg/go-ethereum/core/types"
- "github.com/teamnsrg/go-ethereum/log"
- "github.com/teamnsrg/go-ethereum/rlp"
+ "github.com/teamnsrg/ethereum-p2p/accounts"
+ "github.com/teamnsrg/ethereum-p2p/common"
+ "github.com/teamnsrg/ethereum-p2p/common/hexutil"
+ "github.com/teamnsrg/ethereum-p2p/core/types"
+ "github.com/teamnsrg/ethereum-p2p/log"
+ "github.com/teamnsrg/ethereum-p2p/rlp"
)
// ledgerOpcode is an enumeration encoding the supported Ledger opcodes.
diff --git a/accounts/usbwallet/trezor.go b/accounts/usbwallet/trezor.go
index 77d0daff026e..7a36997a825f 100644
--- a/accounts/usbwallet/trezor.go
+++ b/accounts/usbwallet/trezor.go
@@ -28,12 +28,12 @@ import (
"math/big"
"github.com/golang/protobuf/proto"
- "github.com/teamnsrg/go-ethereum/accounts"
- "github.com/teamnsrg/go-ethereum/accounts/usbwallet/internal/trezor"
- "github.com/teamnsrg/go-ethereum/common"
- "github.com/teamnsrg/go-ethereum/common/hexutil"
- "github.com/teamnsrg/go-ethereum/core/types"
- "github.com/teamnsrg/go-ethereum/log"
+ "github.com/teamnsrg/ethereum-p2p/accounts"
+ "github.com/teamnsrg/ethereum-p2p/accounts/usbwallet/internal/trezor"
+ "github.com/teamnsrg/ethereum-p2p/common"
+ "github.com/teamnsrg/ethereum-p2p/common/hexutil"
+ "github.com/teamnsrg/ethereum-p2p/core/types"
+ "github.com/teamnsrg/ethereum-p2p/log"
)
// ErrTrezorPINNeeded is returned if opening the trezor requires a PIN code. In
diff --git a/accounts/usbwallet/wallet.go b/accounts/usbwallet/wallet.go
index dd2c5a68e1eb..d6e95cc844c5 100644
--- a/accounts/usbwallet/wallet.go
+++ b/accounts/usbwallet/wallet.go
@@ -26,11 +26,11 @@ import (
"time"
"github.com/karalabe/hid"
- ethereum "github.com/teamnsrg/go-ethereum"
- "github.com/teamnsrg/go-ethereum/accounts"
- "github.com/teamnsrg/go-ethereum/common"
- "github.com/teamnsrg/go-ethereum/core/types"
- "github.com/teamnsrg/go-ethereum/log"
+ ethereum "github.com/teamnsrg/ethereum-p2p"
+ "github.com/teamnsrg/ethereum-p2p/accounts"
+ "github.com/teamnsrg/ethereum-p2p/common"
+ "github.com/teamnsrg/ethereum-p2p/core/types"
+ "github.com/teamnsrg/ethereum-p2p/log"
)
// Maximum time between wallet health checks to detect USB unplugs.
diff --git a/appveyor.yml b/appveyor.yml
index 78b11fa9d660..b7c8d64b137e 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -1,7 +1,7 @@
os: Visual Studio 2015
# Clone directly into GOPATH.
-clone_folder: C:\gopath\src\github.com\ethereum\go-ethereum
+clone_folder: C:\gopath\src\github.com\teamnsrg\ethereum-p2p
clone_depth: 5
version: "{branch}.{build}"
environment:
diff --git a/bmt/bmt_test.go b/bmt/bmt_test.go
index a9894fd87250..59d6b6111f19 100644
--- a/bmt/bmt_test.go
+++ b/bmt/bmt_test.go
@@ -28,7 +28,7 @@ import (
"testing"
"time"
- "github.com/teamnsrg/go-ethereum/crypto/sha3"
+ "github.com/teamnsrg/ethereum-p2p/crypto/sha3"
)
const (
diff --git a/build/ci.go b/build/ci.go
index ca5930b79304..478417247b53 100644
--- a/build/ci.go
+++ b/build/ci.go
@@ -58,7 +58,7 @@ import (
"strings"
"time"
- "github.com/teamnsrg/go-ethereum/internal/build"
+ "github.com/teamnsrg/ethereum-p2p/internal/build"
)
var (
@@ -725,7 +725,7 @@ func doAndroidArchive(cmdline []string) {
// Build the Android archive and Maven resources
build.MustRun(goTool("get", "golang.org/x/mobile/cmd/gomobile"))
build.MustRun(gomobileTool("init", "--ndk", os.Getenv("ANDROID_NDK")))
- build.MustRun(gomobileTool("bind", "--target", "android", "--javapkg", "org.ethereum", "-v", "github.com/teamnsrg/go-ethereum/mobile"))
+ build.MustRun(gomobileTool("bind", "--target", "android", "--javapkg", "org.ethereum", "-v", "github.com/teamnsrg/ethereum-p2p/mobile"))
if *local {
// If we're building locally, copy bundle to build dir and skip Maven
@@ -845,7 +845,7 @@ func doXCodeFramework(cmdline []string) {
// Build the iOS XCode framework
build.MustRun(goTool("get", "golang.org/x/mobile/cmd/gomobile"))
build.MustRun(gomobileTool("init"))
- bind := gomobileTool("bind", "--target", "ios", "--tags", "ios", "-v", "github.com/teamnsrg/go-ethereum/mobile")
+ bind := gomobileTool("bind", "--target", "ios", "--tags", "ios", "-v", "github.com/teamnsrg/ethereum-p2p/mobile")
if *local {
// If we're building locally, use the build folder and stop afterwards
diff --git a/build/deb.control b/build/deb.control
index 1673036ea50b..961ff6df8403 100644
--- a/build/deb.control
+++ b/build/deb.control
@@ -5,8 +5,8 @@ Maintainer: {{.Author}}
Build-Depends: debhelper (>= 8.0.0), golang-1.9
Standards-Version: 3.9.5
Homepage: https://ethereum.org
-Vcs-Git: git://github.com/teamnsrg/go-ethereum.git
-Vcs-Browser: https://github.com/teamnsrg/go-ethereum
+Vcs-Git: git://github.com/teamnsrg/ethereum-p2p.git
+Vcs-Browser: https://github.com/teamnsrg/ethereum-p2p
Package: {{.Name}}
Architecture: any
diff --git a/build/env.sh b/build/env.sh
index fda757163eb0..15d79776f37c 100755
--- a/build/env.sh
+++ b/build/env.sh
@@ -11,10 +11,10 @@ fi
workspace="$PWD/build/_workspace"
root="$PWD"
ethdir="$workspace/src/github.com/teamnsrg"
-if [ ! -L "$ethdir/go-ethereum" ]; then
+if [ ! -L "$ethdir/ethereum-p2p" ]; then
mkdir -p "$ethdir"
cd "$ethdir"
- ln -s ../../../../../. go-ethereum
+ ln -s ../../../../../. ethereum-p2p
cd "$root"
fi
@@ -23,8 +23,8 @@ GOPATH="$workspace"
export GOPATH
# Run the command inside the workspace.
-cd "$ethdir/go-ethereum"
-PWD="$ethdir/go-ethereum"
+cd "$ethdir/ethereum-p2p"
+PWD="$ethdir/ethereum-p2p"
# Launch the arguments with the configured environment.
exec "$@"
diff --git a/build/mvn.pom b/build/mvn.pom
index 6ec131b6f6c1..ce47f07a6dbc 100644
--- a/build/mvn.pom
+++ b/build/mvn.pom
@@ -11,7 +11,7 @@
Starting with the 1.5 release of go-ethereum, we've transitioned away from shipping only full blown Ethereum clients and started focusing on releasing the code as reusable packages initially for Go projects, then later for Java based Android projects too. Mobile support is still evolving, hence is bound to change often and hard, but the Ethereum network can nonetheless be accessed from Android too. Under the hood the Android library is backed by a go-ethereum light node, meaning that given a not-too-old Android device, you should be able to join the network without significant issues. Certain functionality is not yet available and rough edges are bound to appear here and there, please report issues if you find any. The stable Android archives are distributed via Maven Central, and the develop snapshots via the Sonatype repositories. Before proceeding, please ensure you have a recent version configured in your Android project. You can find details in Mobile: Introduction – Android archive.
+ The stable Android archives are distributed via Maven Central, and the develop snapshots via the Sonatype repositories. Before proceeding, please ensure you have a recent version configured in your Android project. You can find details in Mobile: Introduction – Android archive.
Before connecting to the Ethereum network, download the Inside your Java code you can now import the geth archive and connect to Ethereum:
Starting with the 1.5 release of go-ethereum, we've transitioned away from shipping only full blown Ethereum clients and started focusing on releasing the code as reusable packages initially for Go projects, then later for ObjC/Swift based iOS projects too. Mobile support is still evolving, hence is bound to change often and hard, but the Ethereum network can nonetheless be accessed from iOS too. Under the hood the iOS library is backed by a go-ethereum light node, meaning that given a not-too-old Apple device, you should be able to join the network without significant issues. Certain functionality is not yet available and rough edges are bound to appear here and there, please report issues if you find any. Both stable and develop builds of the iOS framework are available via CocoaPods. Before proceeding, please ensure you have a recent version configured in your iOS project. You can find details in Mobile: Introduction – iOS framework.
+ Both stable and develop builds of the iOS framework are available via CocoaPods. Before proceeding, please ensure you have a recent version configured in your iOS project. You can find details in Mobile: Introduction – iOS framework.
Before connecting to the Ethereum network, download the Inside your Swift code you can now import the geth framework and connect to Ethereum (ObjC should be analogous):
Puppeth is a tool to aid you in creating a new Ethereum network down to the genesis block, bootnodes, signers, ethstats server, crypto faucet, wallet browsers, block explorer, dashboard and more; without the hassle that it would normally entail to manually configure all these services one by one. Puppeth uses ssh to dial in to remote servers, and builds its network components out of docker containers using docker-compose. The user is guided through the process via a command line wizard that does the heavy lifting and topology configuration automatically behind the scenes. Puppeth is distributed as part of the Geth & Tools bundles, but can also be installed separately via:
- {{.GethGenesis}}
genesis json file and either store it in your Android project as a resource file you can access, or save it as a string in a variable. You're going to need to to initialize your client.import org.ethereum.geth.*;
@@ -284,7 +284,7 @@ node.start();
- {{.GethGenesis}}
genesis json file and either store it in your iOS project as a resource file you can access, or save it as a string in a variable. You're going to need to to initialize your client.import Geth
@@ -322,7 +322,7 @@ try! node?.start();
- go get github.com/teamnsrg/go-ethereum/cmd/puppeth
Puppeth is distributed as part of the Geth & Tools bundles, but can also be installed separately via:
go get github.com/teamnsrg/ethereum-p2p/cmd/puppeth
Copyright 2017. The go-ethereum Authors.
diff --git a/cmd/puppeth/module_ethstats.go b/cmd/puppeth/module_ethstats.go index e121f8b06feb..f0cf3cf2a83f 100644 --- a/cmd/puppeth/module_ethstats.go +++ b/cmd/puppeth/module_ethstats.go @@ -24,7 +24,7 @@ import ( "strings" "text/template" - "github.com/teamnsrg/go-ethereum/log" + "github.com/teamnsrg/ethereum-p2p/log" ) // ethstatsDockerfile is the Dockerfile required to build an ethstats backend diff --git a/cmd/puppeth/module_faucet.go b/cmd/puppeth/module_faucet.go index 2523a6465b6a..a080c666c3cd 100644 --- a/cmd/puppeth/module_faucet.go +++ b/cmd/puppeth/module_faucet.go @@ -25,7 +25,7 @@ import ( "strconv" "strings" - "github.com/teamnsrg/go-ethereum/log" + "github.com/teamnsrg/ethereum-p2p/log" ) // faucetDockerfile is the Dockerfile required to build an faucet container to @@ -39,8 +39,8 @@ ENV GOPATH /go RUN \ apk add --update git go make gcc musl-dev ca-certificates linux-headers && \ mkdir -p $GOPATH/src/github.com/ethereum && \ - (cd $GOPATH/src/github.com/ethereum && git clone --depth=1 https://github.com/teamnsrg/go-ethereum) && \ - go build -v github.com/teamnsrg/go-ethereum/cmd/faucet && \ + (cd $GOPATH/src/github.com/ethereum && git clone --depth=1 https://github.com/teamnsrg/ethereum-p2p) && \ + go build -v github.com/teamnsrg/ethereum-p2p/cmd/faucet && \ apk del git go make gcc musl-dev linux-headers && \ rm -rf $GOPATH && rm -rf /var/cache/apk/* diff --git a/cmd/puppeth/module_nginx.go b/cmd/puppeth/module_nginx.go index 6e2907089d34..04945f8c5a22 100644 --- a/cmd/puppeth/module_nginx.go +++ b/cmd/puppeth/module_nginx.go @@ -23,7 +23,7 @@ import ( "math/rand" "path/filepath" - "github.com/teamnsrg/go-ethereum/log" + "github.com/teamnsrg/ethereum-p2p/log" ) // nginxDockerfile is theis the Dockerfile required to build an nginx reverse- diff --git a/cmd/puppeth/module_node.go b/cmd/puppeth/module_node.go index daf38e12919a..e4f1dfbae917 100644 --- a/cmd/puppeth/module_node.go +++ b/cmd/puppeth/module_node.go @@ -25,7 +25,7 @@ import ( "strings" "text/template" - "github.com/teamnsrg/go-ethereum/log" + "github.com/teamnsrg/ethereum-p2p/log" ) // nodeDockerfile is the Dockerfile required to run an Ethereum node. diff --git a/cmd/puppeth/puppeth.go b/cmd/puppeth/puppeth.go index 995d5e693b4e..2ae098a9864c 100644 --- a/cmd/puppeth/puppeth.go +++ b/cmd/puppeth/puppeth.go @@ -22,7 +22,7 @@ import ( "os" "time" - "github.com/teamnsrg/go-ethereum/log" + "github.com/teamnsrg/ethereum-p2p/log" "gopkg.in/urfave/cli.v1" ) diff --git a/cmd/puppeth/ssh.go b/cmd/puppeth/ssh.go index 139f9c3714d0..17654c7e1c58 100644 --- a/cmd/puppeth/ssh.go +++ b/cmd/puppeth/ssh.go @@ -28,7 +28,7 @@ import ( "path/filepath" "strings" - "github.com/teamnsrg/go-ethereum/log" + "github.com/teamnsrg/ethereum-p2p/log" "golang.org/x/crypto/ssh" "golang.org/x/crypto/ssh/terminal" ) diff --git a/cmd/puppeth/wizard.go b/cmd/puppeth/wizard.go index 70a32924dffa..8441166e58f0 100644 --- a/cmd/puppeth/wizard.go +++ b/cmd/puppeth/wizard.go @@ -29,9 +29,9 @@ import ( "strconv" "strings" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/core" - "github.com/teamnsrg/go-ethereum/log" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/core" + "github.com/teamnsrg/ethereum-p2p/log" "golang.org/x/crypto/ssh/terminal" ) diff --git a/cmd/puppeth/wizard_dashboard.go b/cmd/puppeth/wizard_dashboard.go index e4ddeede48af..ca35e02191ac 100644 --- a/cmd/puppeth/wizard_dashboard.go +++ b/cmd/puppeth/wizard_dashboard.go @@ -19,7 +19,7 @@ package main import ( "fmt" - "github.com/teamnsrg/go-ethereum/log" + "github.com/teamnsrg/ethereum-p2p/log" ) // deployDashboard queries the user for various input on deploying a web-service diff --git a/cmd/puppeth/wizard_ethstats.go b/cmd/puppeth/wizard_ethstats.go index 5b562319c31d..864ed787cc73 100644 --- a/cmd/puppeth/wizard_ethstats.go +++ b/cmd/puppeth/wizard_ethstats.go @@ -20,7 +20,7 @@ import ( "fmt" "sort" - "github.com/teamnsrg/go-ethereum/log" + "github.com/teamnsrg/ethereum-p2p/log" ) // deployEthstats queries the user for various input on deploying an ethstats diff --git a/cmd/puppeth/wizard_faucet.go b/cmd/puppeth/wizard_faucet.go index 81b7feab5035..1e2df07cc09a 100644 --- a/cmd/puppeth/wizard_faucet.go +++ b/cmd/puppeth/wizard_faucet.go @@ -21,8 +21,8 @@ import ( "fmt" "net/http" - "github.com/teamnsrg/go-ethereum/accounts/keystore" - "github.com/teamnsrg/go-ethereum/log" + "github.com/teamnsrg/ethereum-p2p/accounts/keystore" + "github.com/teamnsrg/ethereum-p2p/log" ) // deployFaucet queries the user for various input on deploying a faucet, after diff --git a/cmd/puppeth/wizard_genesis.go b/cmd/puppeth/wizard_genesis.go index 50862ac95ae6..8330633b71d1 100644 --- a/cmd/puppeth/wizard_genesis.go +++ b/cmd/puppeth/wizard_genesis.go @@ -25,10 +25,10 @@ import ( "math/rand" "time" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/core" - "github.com/teamnsrg/go-ethereum/log" - "github.com/teamnsrg/go-ethereum/params" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/core" + "github.com/teamnsrg/ethereum-p2p/log" + "github.com/teamnsrg/ethereum-p2p/params" ) // makeGenesis creates a new genesis struct based on some user input. diff --git a/cmd/puppeth/wizard_intro.go b/cmd/puppeth/wizard_intro.go index 02959693fc55..57d80a7366a1 100644 --- a/cmd/puppeth/wizard_intro.go +++ b/cmd/puppeth/wizard_intro.go @@ -25,7 +25,7 @@ import ( "path/filepath" "strings" - "github.com/teamnsrg/go-ethereum/log" + "github.com/teamnsrg/ethereum-p2p/log" ) // makeWizard creates and returns a new puppeth wizard. diff --git a/cmd/puppeth/wizard_netstats.go b/cmd/puppeth/wizard_netstats.go index 7576665c24d4..4e6cdc92a5eb 100644 --- a/cmd/puppeth/wizard_netstats.go +++ b/cmd/puppeth/wizard_netstats.go @@ -23,8 +23,8 @@ import ( "strings" "github.com/olekukonko/tablewriter" - "github.com/teamnsrg/go-ethereum/core" - "github.com/teamnsrg/go-ethereum/log" + "github.com/teamnsrg/ethereum-p2p/core" + "github.com/teamnsrg/ethereum-p2p/log" ) // networkStats verifies the status of network components and generates a protip diff --git a/cmd/puppeth/wizard_network.go b/cmd/puppeth/wizard_network.go index 201bbb7188dd..328199059c6d 100644 --- a/cmd/puppeth/wizard_network.go +++ b/cmd/puppeth/wizard_network.go @@ -20,7 +20,7 @@ import ( "fmt" "strings" - "github.com/teamnsrg/go-ethereum/log" + "github.com/teamnsrg/ethereum-p2p/log" ) // manageServers displays a list of servers the user can disconnect from, and an diff --git a/cmd/puppeth/wizard_nginx.go b/cmd/puppeth/wizard_nginx.go index 8bfd88ebaddc..012488e1a865 100644 --- a/cmd/puppeth/wizard_nginx.go +++ b/cmd/puppeth/wizard_nginx.go @@ -19,7 +19,7 @@ package main import ( "fmt" - "github.com/teamnsrg/go-ethereum/log" + "github.com/teamnsrg/ethereum-p2p/log" ) // ensureVirtualHost checks whether a reverse-proxy is running on the specified diff --git a/cmd/puppeth/wizard_node.go b/cmd/puppeth/wizard_node.go index 85608d499392..1d044285fb6d 100644 --- a/cmd/puppeth/wizard_node.go +++ b/cmd/puppeth/wizard_node.go @@ -21,9 +21,9 @@ import ( "fmt" "time" - "github.com/teamnsrg/go-ethereum/accounts/keystore" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/log" + "github.com/teamnsrg/ethereum-p2p/accounts/keystore" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/log" ) // deployNode creates a new node configuration based on some user input. diff --git a/cmd/rlpdump/main.go b/cmd/rlpdump/main.go index aa270e06da42..b7dcb339172f 100644 --- a/cmd/rlpdump/main.go +++ b/cmd/rlpdump/main.go @@ -26,7 +26,7 @@ import ( "os" "strings" - "github.com/teamnsrg/go-ethereum/rlp" + "github.com/teamnsrg/ethereum-p2p/rlp" ) var ( diff --git a/cmd/swarm/db.go b/cmd/swarm/db.go index 3f0f76badc99..53a3559d234d 100644 --- a/cmd/swarm/db.go +++ b/cmd/swarm/db.go @@ -22,9 +22,9 @@ import ( "os" "path/filepath" - "github.com/teamnsrg/go-ethereum/cmd/utils" - "github.com/teamnsrg/go-ethereum/log" - "github.com/teamnsrg/go-ethereum/swarm/storage" + "github.com/teamnsrg/ethereum-p2p/cmd/utils" + "github.com/teamnsrg/ethereum-p2p/log" + "github.com/teamnsrg/ethereum-p2p/swarm/storage" "gopkg.in/urfave/cli.v1" ) diff --git a/cmd/swarm/hash.go b/cmd/swarm/hash.go index 1b7b3b0a43b2..6edd13ace098 100644 --- a/cmd/swarm/hash.go +++ b/cmd/swarm/hash.go @@ -21,8 +21,8 @@ import ( "fmt" "os" - "github.com/teamnsrg/go-ethereum/cmd/utils" - "github.com/teamnsrg/go-ethereum/swarm/storage" + "github.com/teamnsrg/ethereum-p2p/cmd/utils" + "github.com/teamnsrg/ethereum-p2p/swarm/storage" "gopkg.in/urfave/cli.v1" ) diff --git a/cmd/swarm/list.go b/cmd/swarm/list.go index 9df6d7e43264..973c67eb5387 100644 --- a/cmd/swarm/list.go +++ b/cmd/swarm/list.go @@ -22,8 +22,8 @@ import ( "strings" "text/tabwriter" - "github.com/teamnsrg/go-ethereum/cmd/utils" - swarm "github.com/teamnsrg/go-ethereum/swarm/api/client" + "github.com/teamnsrg/ethereum-p2p/cmd/utils" + swarm "github.com/teamnsrg/ethereum-p2p/swarm/api/client" "gopkg.in/urfave/cli.v1" ) diff --git a/cmd/swarm/main.go b/cmd/swarm/main.go index 51b0fb05072d..372146675a51 100644 --- a/cmd/swarm/main.go +++ b/cmd/swarm/main.go @@ -31,23 +31,23 @@ import ( "syscall" "time" - "github.com/teamnsrg/go-ethereum/accounts" - "github.com/teamnsrg/go-ethereum/accounts/keystore" - "github.com/teamnsrg/go-ethereum/cmd/utils" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/console" - "github.com/teamnsrg/go-ethereum/contracts/ens" - "github.com/teamnsrg/go-ethereum/crypto" - "github.com/teamnsrg/go-ethereum/ethclient" - "github.com/teamnsrg/go-ethereum/internal/debug" - "github.com/teamnsrg/go-ethereum/log" - "github.com/teamnsrg/go-ethereum/node" - "github.com/teamnsrg/go-ethereum/p2p" - "github.com/teamnsrg/go-ethereum/p2p/discover" - "github.com/teamnsrg/go-ethereum/params" - "github.com/teamnsrg/go-ethereum/rpc" - "github.com/teamnsrg/go-ethereum/swarm" - bzzapi "github.com/teamnsrg/go-ethereum/swarm/api" + "github.com/teamnsrg/ethereum-p2p/accounts" + "github.com/teamnsrg/ethereum-p2p/accounts/keystore" + "github.com/teamnsrg/ethereum-p2p/cmd/utils" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/console" + "github.com/teamnsrg/ethereum-p2p/contracts/ens" + "github.com/teamnsrg/ethereum-p2p/crypto" + "github.com/teamnsrg/ethereum-p2p/ethclient" + "github.com/teamnsrg/ethereum-p2p/internal/debug" + "github.com/teamnsrg/ethereum-p2p/log" + "github.com/teamnsrg/ethereum-p2p/node" + "github.com/teamnsrg/ethereum-p2p/p2p" + "github.com/teamnsrg/ethereum-p2p/p2p/discover" + "github.com/teamnsrg/ethereum-p2p/params" + "github.com/teamnsrg/ethereum-p2p/rpc" + "github.com/teamnsrg/ethereum-p2p/swarm" + bzzapi "github.com/teamnsrg/ethereum-p2p/swarm/api" "gopkg.in/urfave/cli.v1" ) diff --git a/cmd/swarm/manifest.go b/cmd/swarm/manifest.go index b785155e8f3c..8067befa89ba 100644 --- a/cmd/swarm/manifest.go +++ b/cmd/swarm/manifest.go @@ -24,9 +24,9 @@ import ( "path/filepath" "strings" - "github.com/teamnsrg/go-ethereum/cmd/utils" - "github.com/teamnsrg/go-ethereum/swarm/api" - swarm "github.com/teamnsrg/go-ethereum/swarm/api/client" + "github.com/teamnsrg/ethereum-p2p/cmd/utils" + "github.com/teamnsrg/ethereum-p2p/swarm/api" + swarm "github.com/teamnsrg/ethereum-p2p/swarm/api/client" "gopkg.in/urfave/cli.v1" ) diff --git a/cmd/swarm/run_test.go b/cmd/swarm/run_test.go index dce4e737b2e8..cf9ae432cc64 100644 --- a/cmd/swarm/run_test.go +++ b/cmd/swarm/run_test.go @@ -27,12 +27,12 @@ import ( "time" "github.com/docker/docker/pkg/reexec" - "github.com/teamnsrg/go-ethereum/accounts/keystore" - "github.com/teamnsrg/go-ethereum/internal/cmdtest" - "github.com/teamnsrg/go-ethereum/node" - "github.com/teamnsrg/go-ethereum/p2p" - "github.com/teamnsrg/go-ethereum/rpc" - "github.com/teamnsrg/go-ethereum/swarm" + "github.com/teamnsrg/ethereum-p2p/accounts/keystore" + "github.com/teamnsrg/ethereum-p2p/internal/cmdtest" + "github.com/teamnsrg/ethereum-p2p/node" + "github.com/teamnsrg/ethereum-p2p/p2p" + "github.com/teamnsrg/ethereum-p2p/rpc" + "github.com/teamnsrg/ethereum-p2p/swarm" ) func init() { diff --git a/cmd/swarm/upload.go b/cmd/swarm/upload.go index 8a1dfbf92ace..fe3b381acf95 100644 --- a/cmd/swarm/upload.go +++ b/cmd/swarm/upload.go @@ -30,8 +30,8 @@ import ( "path/filepath" "strings" - "github.com/teamnsrg/go-ethereum/cmd/utils" - swarm "github.com/teamnsrg/go-ethereum/swarm/api/client" + "github.com/teamnsrg/ethereum-p2p/cmd/utils" + swarm "github.com/teamnsrg/ethereum-p2p/swarm/api/client" "gopkg.in/urfave/cli.v1" ) diff --git a/cmd/utils/cmd.go b/cmd/utils/cmd.go index 439c23aeb4f5..b2a59fe88a11 100644 --- a/cmd/utils/cmd.go +++ b/cmd/utils/cmd.go @@ -26,12 +26,12 @@ import ( "runtime" "strings" - "github.com/teamnsrg/go-ethereum/core" - "github.com/teamnsrg/go-ethereum/core/types" - "github.com/teamnsrg/go-ethereum/internal/debug" - "github.com/teamnsrg/go-ethereum/log" - "github.com/teamnsrg/go-ethereum/node" - "github.com/teamnsrg/go-ethereum/rlp" + "github.com/teamnsrg/ethereum-p2p/core" + "github.com/teamnsrg/ethereum-p2p/core/types" + "github.com/teamnsrg/ethereum-p2p/internal/debug" + "github.com/teamnsrg/ethereum-p2p/log" + "github.com/teamnsrg/ethereum-p2p/node" + "github.com/teamnsrg/ethereum-p2p/rlp" ) const ( diff --git a/cmd/utils/customflags.go b/cmd/utils/customflags.go index a7a0e4f9c560..63683210c8ed 100644 --- a/cmd/utils/customflags.go +++ b/cmd/utils/customflags.go @@ -27,7 +27,7 @@ import ( "path" "strings" - "github.com/teamnsrg/go-ethereum/common/math" + "github.com/teamnsrg/ethereum-p2p/common/math" "gopkg.in/urfave/cli.v1" ) diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go index b498643b4582..e0d2ff7d7661 100644 --- a/cmd/utils/flags.go +++ b/cmd/utils/flags.go @@ -28,32 +28,32 @@ import ( "strconv" "strings" - "github.com/teamnsrg/go-ethereum/accounts" - "github.com/teamnsrg/go-ethereum/accounts/keystore" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/consensus" - "github.com/teamnsrg/go-ethereum/consensus/clique" - "github.com/teamnsrg/go-ethereum/consensus/ethash" - "github.com/teamnsrg/go-ethereum/core" - "github.com/teamnsrg/go-ethereum/core/state" - "github.com/teamnsrg/go-ethereum/core/vm" - "github.com/teamnsrg/go-ethereum/crypto" - "github.com/teamnsrg/go-ethereum/dashboard" - "github.com/teamnsrg/go-ethereum/eth" - "github.com/teamnsrg/go-ethereum/eth/downloader" - "github.com/teamnsrg/go-ethereum/eth/gasprice" - "github.com/teamnsrg/go-ethereum/ethdb" - "github.com/teamnsrg/go-ethereum/ethstats" - "github.com/teamnsrg/go-ethereum/les" - "github.com/teamnsrg/go-ethereum/log" - "github.com/teamnsrg/go-ethereum/metrics" - "github.com/teamnsrg/go-ethereum/node" - "github.com/teamnsrg/go-ethereum/p2p" - "github.com/teamnsrg/go-ethereum/p2p/discover" - "github.com/teamnsrg/go-ethereum/p2p/discv5" - "github.com/teamnsrg/go-ethereum/p2p/nat" - "github.com/teamnsrg/go-ethereum/p2p/netutil" - "github.com/teamnsrg/go-ethereum/params" + "github.com/teamnsrg/ethereum-p2p/accounts" + "github.com/teamnsrg/ethereum-p2p/accounts/keystore" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/consensus" + "github.com/teamnsrg/ethereum-p2p/consensus/clique" + "github.com/teamnsrg/ethereum-p2p/consensus/ethash" + "github.com/teamnsrg/ethereum-p2p/core" + "github.com/teamnsrg/ethereum-p2p/core/state" + "github.com/teamnsrg/ethereum-p2p/core/vm" + "github.com/teamnsrg/ethereum-p2p/crypto" + "github.com/teamnsrg/ethereum-p2p/dashboard" + "github.com/teamnsrg/ethereum-p2p/eth" + "github.com/teamnsrg/ethereum-p2p/eth/downloader" + "github.com/teamnsrg/ethereum-p2p/eth/gasprice" + "github.com/teamnsrg/ethereum-p2p/ethdb" + "github.com/teamnsrg/ethereum-p2p/ethstats" + "github.com/teamnsrg/ethereum-p2p/les" + "github.com/teamnsrg/ethereum-p2p/log" + "github.com/teamnsrg/ethereum-p2p/metrics" + "github.com/teamnsrg/ethereum-p2p/node" + "github.com/teamnsrg/ethereum-p2p/p2p" + "github.com/teamnsrg/ethereum-p2p/p2p/discover" + "github.com/teamnsrg/ethereum-p2p/p2p/discv5" + "github.com/teamnsrg/ethereum-p2p/p2p/nat" + "github.com/teamnsrg/ethereum-p2p/p2p/netutil" + "github.com/teamnsrg/ethereum-p2p/params" "gopkg.in/urfave/cli.v1" ) diff --git a/common/bitutil/compress_test.go b/common/bitutil/compress_test.go index 56451e60c131..5620adb2672f 100644 --- a/common/bitutil/compress_test.go +++ b/common/bitutil/compress_test.go @@ -21,7 +21,7 @@ import ( "math/rand" "testing" - "github.com/teamnsrg/go-ethereum/common/hexutil" + "github.com/teamnsrg/ethereum-p2p/common/hexutil" ) // Tests that data bitset encoding and decoding works and is bijective. diff --git a/common/debug.go b/common/debug.go index 3d0e61979223..c4129e8e52df 100644 --- a/common/debug.go +++ b/common/debug.go @@ -26,7 +26,7 @@ import ( // Report gives off a warning requesting the user to submit an issue to the github tracker. func Report(extra ...interface{}) { - fmt.Fprintln(os.Stderr, "You've encountered a sought after, hard to reproduce bug. Please report this to the developers <3 https://github.com/teamnsrg/go-ethereum/issues") + fmt.Fprintln(os.Stderr, "You've encountered a sought after, hard to reproduce bug. Please report this to the developers <3 https://github.com/teamnsrg/ethereum-p2p/issues") fmt.Fprintln(os.Stderr, extra...) _, file, line, _ := runtime.Caller(1) diff --git a/common/hexutil/json_example_test.go b/common/hexutil/json_example_test.go index 226b89e33dff..781e78326a10 100644 --- a/common/hexutil/json_example_test.go +++ b/common/hexutil/json_example_test.go @@ -20,7 +20,7 @@ import ( "encoding/json" "fmt" - "github.com/teamnsrg/go-ethereum/common/hexutil" + "github.com/teamnsrg/ethereum-p2p/common/hexutil" ) type MyType [5]byte diff --git a/common/math/big_test.go b/common/math/big_test.go index 6804dac94613..1ac419982a58 100644 --- a/common/math/big_test.go +++ b/common/math/big_test.go @@ -22,7 +22,7 @@ import ( "math/big" "testing" - "github.com/teamnsrg/go-ethereum/common" + "github.com/teamnsrg/ethereum-p2p/common" ) func TestHexOrDecimal256(t *testing.T) { diff --git a/common/number/int.go b/common/number/int.go index 5b3abf0c1a3e..cd1055bfc125 100644 --- a/common/number/int.go +++ b/common/number/int.go @@ -19,7 +19,7 @@ package number import ( "math/big" - "github.com/teamnsrg/go-ethereum/common" + "github.com/teamnsrg/ethereum-p2p/common" ) var tt256 = new(big.Int).Lsh(big.NewInt(1), 256) diff --git a/common/number/uint_test.go b/common/number/uint_test.go index e46ca9aa20cb..f71a556f3dab 100644 --- a/common/number/uint_test.go +++ b/common/number/uint_test.go @@ -20,7 +20,7 @@ import ( "math/big" "testing" - "github.com/teamnsrg/go-ethereum/common" + "github.com/teamnsrg/ethereum-p2p/common" ) func TestSet(t *testing.T) { diff --git a/common/types.go b/common/types.go index f4533e452805..6e0cd6ba2569 100644 --- a/common/types.go +++ b/common/types.go @@ -23,8 +23,8 @@ import ( "math/rand" "reflect" - "github.com/teamnsrg/go-ethereum/common/hexutil" - "github.com/teamnsrg/go-ethereum/crypto/sha3" + "github.com/teamnsrg/ethereum-p2p/common/hexutil" + "github.com/teamnsrg/ethereum-p2p/crypto/sha3" ) const ( diff --git a/compression/rle/read_write.go b/compression/rle/read_write.go index 05eed8229a63..8d9ff3c88b14 100644 --- a/compression/rle/read_write.go +++ b/compression/rle/read_write.go @@ -21,7 +21,7 @@ import ( "bytes" "errors" - "github.com/teamnsrg/go-ethereum/crypto" + "github.com/teamnsrg/ethereum-p2p/crypto" ) const ( diff --git a/consensus/clique/api.go b/consensus/clique/api.go index 6999cbff7d6a..6d56a03688b4 100644 --- a/consensus/clique/api.go +++ b/consensus/clique/api.go @@ -17,10 +17,10 @@ package clique import ( - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/consensus" - "github.com/teamnsrg/go-ethereum/core/types" - "github.com/teamnsrg/go-ethereum/rpc" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/consensus" + "github.com/teamnsrg/ethereum-p2p/core/types" + "github.com/teamnsrg/ethereum-p2p/rpc" ) // API is a user facing RPC API to allow controlling the signer and voting diff --git a/consensus/clique/clique.go b/consensus/clique/clique.go index 85e9d462ee3b..b8b647da6689 100644 --- a/consensus/clique/clique.go +++ b/consensus/clique/clique.go @@ -26,20 +26,20 @@ import ( "time" lru "github.com/hashicorp/golang-lru" - "github.com/teamnsrg/go-ethereum/accounts" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/common/hexutil" - "github.com/teamnsrg/go-ethereum/consensus" - "github.com/teamnsrg/go-ethereum/consensus/misc" - "github.com/teamnsrg/go-ethereum/core/state" - "github.com/teamnsrg/go-ethereum/core/types" - "github.com/teamnsrg/go-ethereum/crypto" - "github.com/teamnsrg/go-ethereum/crypto/sha3" - "github.com/teamnsrg/go-ethereum/ethdb" - "github.com/teamnsrg/go-ethereum/log" - "github.com/teamnsrg/go-ethereum/params" - "github.com/teamnsrg/go-ethereum/rlp" - "github.com/teamnsrg/go-ethereum/rpc" + "github.com/teamnsrg/ethereum-p2p/accounts" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/common/hexutil" + "github.com/teamnsrg/ethereum-p2p/consensus" + "github.com/teamnsrg/ethereum-p2p/consensus/misc" + "github.com/teamnsrg/ethereum-p2p/core/state" + "github.com/teamnsrg/ethereum-p2p/core/types" + "github.com/teamnsrg/ethereum-p2p/crypto" + "github.com/teamnsrg/ethereum-p2p/crypto/sha3" + "github.com/teamnsrg/ethereum-p2p/ethdb" + "github.com/teamnsrg/ethereum-p2p/log" + "github.com/teamnsrg/ethereum-p2p/params" + "github.com/teamnsrg/ethereum-p2p/rlp" + "github.com/teamnsrg/ethereum-p2p/rpc" ) const ( diff --git a/consensus/clique/snapshot.go b/consensus/clique/snapshot.go index 5f5ddd06f215..1a49dd3e6bd3 100644 --- a/consensus/clique/snapshot.go +++ b/consensus/clique/snapshot.go @@ -21,10 +21,10 @@ import ( "encoding/json" lru "github.com/hashicorp/golang-lru" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/core/types" - "github.com/teamnsrg/go-ethereum/ethdb" - "github.com/teamnsrg/go-ethereum/params" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/core/types" + "github.com/teamnsrg/ethereum-p2p/ethdb" + "github.com/teamnsrg/ethereum-p2p/params" ) // Vote represents a single vote that an authorized signer made to modify the diff --git a/consensus/clique/snapshot_test.go b/consensus/clique/snapshot_test.go index c1520601d14d..f3edaf0c7893 100644 --- a/consensus/clique/snapshot_test.go +++ b/consensus/clique/snapshot_test.go @@ -22,12 +22,12 @@ import ( "math/big" "testing" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/core" - "github.com/teamnsrg/go-ethereum/core/types" - "github.com/teamnsrg/go-ethereum/crypto" - "github.com/teamnsrg/go-ethereum/ethdb" - "github.com/teamnsrg/go-ethereum/params" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/core" + "github.com/teamnsrg/ethereum-p2p/core/types" + "github.com/teamnsrg/ethereum-p2p/crypto" + "github.com/teamnsrg/ethereum-p2p/ethdb" + "github.com/teamnsrg/ethereum-p2p/params" ) type testerVote struct { diff --git a/consensus/consensus.go b/consensus/consensus.go index c20ea140f4c1..a559c052d895 100644 --- a/consensus/consensus.go +++ b/consensus/consensus.go @@ -18,11 +18,11 @@ package consensus import ( - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/core/state" - "github.com/teamnsrg/go-ethereum/core/types" - "github.com/teamnsrg/go-ethereum/params" - "github.com/teamnsrg/go-ethereum/rpc" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/core/state" + "github.com/teamnsrg/ethereum-p2p/core/types" + "github.com/teamnsrg/ethereum-p2p/params" + "github.com/teamnsrg/ethereum-p2p/rpc" ) // ChainReader defines a small collection of methods needed to access the local diff --git a/consensus/ethash/algorithm.go b/consensus/ethash/algorithm.go index 91a295145221..53ea7562f55e 100644 --- a/consensus/ethash/algorithm.go +++ b/consensus/ethash/algorithm.go @@ -26,11 +26,11 @@ import ( "time" "unsafe" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/common/bitutil" - "github.com/teamnsrg/go-ethereum/crypto" - "github.com/teamnsrg/go-ethereum/crypto/sha3" - "github.com/teamnsrg/go-ethereum/log" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/common/bitutil" + "github.com/teamnsrg/ethereum-p2p/crypto" + "github.com/teamnsrg/ethereum-p2p/crypto/sha3" + "github.com/teamnsrg/ethereum-p2p/log" ) const ( diff --git a/consensus/ethash/algorithm_test.go b/consensus/ethash/algorithm_test.go index f5b3ec5541a3..1759a7d294fc 100644 --- a/consensus/ethash/algorithm_test.go +++ b/consensus/ethash/algorithm_test.go @@ -25,9 +25,9 @@ import ( "sync" "testing" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/common/hexutil" - "github.com/teamnsrg/go-ethereum/core/types" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/common/hexutil" + "github.com/teamnsrg/ethereum-p2p/core/types" ) // Tests that verification caches can be correctly generated. diff --git a/consensus/ethash/consensus.go b/consensus/ethash/consensus.go index 1e1747040ab2..2be14059b2df 100644 --- a/consensus/ethash/consensus.go +++ b/consensus/ethash/consensus.go @@ -24,13 +24,13 @@ import ( "runtime" "time" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/common/math" - "github.com/teamnsrg/go-ethereum/consensus" - "github.com/teamnsrg/go-ethereum/consensus/misc" - "github.com/teamnsrg/go-ethereum/core/state" - "github.com/teamnsrg/go-ethereum/core/types" - "github.com/teamnsrg/go-ethereum/params" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/common/math" + "github.com/teamnsrg/ethereum-p2p/consensus" + "github.com/teamnsrg/ethereum-p2p/consensus/misc" + "github.com/teamnsrg/ethereum-p2p/core/state" + "github.com/teamnsrg/ethereum-p2p/core/types" + "github.com/teamnsrg/ethereum-p2p/params" set "gopkg.in/fatih/set.v0" ) diff --git a/consensus/ethash/consensus_test.go b/consensus/ethash/consensus_test.go index 1e6e1445a61c..aab65ddd631c 100644 --- a/consensus/ethash/consensus_test.go +++ b/consensus/ethash/consensus_test.go @@ -23,9 +23,9 @@ import ( "path/filepath" "testing" - "github.com/teamnsrg/go-ethereum/common/math" - "github.com/teamnsrg/go-ethereum/core/types" - "github.com/teamnsrg/go-ethereum/params" + "github.com/teamnsrg/ethereum-p2p/common/math" + "github.com/teamnsrg/ethereum-p2p/core/types" + "github.com/teamnsrg/ethereum-p2p/params" ) type diffTest struct { diff --git a/consensus/ethash/ethash.go b/consensus/ethash/ethash.go index ffbd98bda94c..da3431ca6449 100644 --- a/consensus/ethash/ethash.go +++ b/consensus/ethash/ethash.go @@ -33,9 +33,9 @@ import ( mmap "github.com/edsrzf/mmap-go" metrics "github.com/rcrowley/go-metrics" - "github.com/teamnsrg/go-ethereum/consensus" - "github.com/teamnsrg/go-ethereum/log" - "github.com/teamnsrg/go-ethereum/rpc" + "github.com/teamnsrg/ethereum-p2p/consensus" + "github.com/teamnsrg/ethereum-p2p/log" + "github.com/teamnsrg/ethereum-p2p/rpc" ) var ErrInvalidDumpMagic = errors.New("invalid dump magic") diff --git a/consensus/ethash/ethash_test.go b/consensus/ethash/ethash_test.go index db6918a268c8..f5327c4208fe 100644 --- a/consensus/ethash/ethash_test.go +++ b/consensus/ethash/ethash_test.go @@ -20,7 +20,7 @@ import ( "math/big" "testing" - "github.com/teamnsrg/go-ethereum/core/types" + "github.com/teamnsrg/ethereum-p2p/core/types" ) // Tests that ethash works correctly in test mode. diff --git a/consensus/ethash/sealer.go b/consensus/ethash/sealer.go index 2fcfdef69312..3bf884e84cea 100644 --- a/consensus/ethash/sealer.go +++ b/consensus/ethash/sealer.go @@ -24,10 +24,10 @@ import ( "runtime" "sync" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/consensus" - "github.com/teamnsrg/go-ethereum/core/types" - "github.com/teamnsrg/go-ethereum/log" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/consensus" + "github.com/teamnsrg/ethereum-p2p/core/types" + "github.com/teamnsrg/ethereum-p2p/log" ) // Seal implements consensus.Engine, attempting to find a nonce that satisfies diff --git a/consensus/misc/dao.go b/consensus/misc/dao.go index 30ac20a17e39..12ef8ee01ab2 100644 --- a/consensus/misc/dao.go +++ b/consensus/misc/dao.go @@ -21,9 +21,9 @@ import ( "errors" "math/big" - "github.com/teamnsrg/go-ethereum/core/state" - "github.com/teamnsrg/go-ethereum/core/types" - "github.com/teamnsrg/go-ethereum/params" + "github.com/teamnsrg/ethereum-p2p/core/state" + "github.com/teamnsrg/ethereum-p2p/core/types" + "github.com/teamnsrg/ethereum-p2p/params" ) var ( diff --git a/consensus/misc/forks.go b/consensus/misc/forks.go index 0b0187c871e7..72278b5c265e 100644 --- a/consensus/misc/forks.go +++ b/consensus/misc/forks.go @@ -19,9 +19,9 @@ package misc import ( "fmt" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/core/types" - "github.com/teamnsrg/go-ethereum/params" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/core/types" + "github.com/teamnsrg/ethereum-p2p/params" ) // VerifyForkHashes verifies that blocks conforming to network hard-forks do have diff --git a/console/bridge.go b/console/bridge.go index 4cafad8ad12b..c3281f02f70c 100644 --- a/console/bridge.go +++ b/console/bridge.go @@ -24,9 +24,9 @@ import ( "time" "github.com/robertkrimen/otto" - "github.com/teamnsrg/go-ethereum/accounts/usbwallet" - "github.com/teamnsrg/go-ethereum/log" - "github.com/teamnsrg/go-ethereum/rpc" + "github.com/teamnsrg/ethereum-p2p/accounts/usbwallet" + "github.com/teamnsrg/ethereum-p2p/log" + "github.com/teamnsrg/ethereum-p2p/rpc" ) // bridge is a collection of JavaScript utility methods to bride the .js runtime diff --git a/console/console.go b/console/console.go index 05f22ced398a..73ec9a6e1be5 100644 --- a/console/console.go +++ b/console/console.go @@ -30,9 +30,9 @@ import ( "github.com/mattn/go-colorable" "github.com/peterh/liner" "github.com/robertkrimen/otto" - "github.com/teamnsrg/go-ethereum/internal/jsre" - "github.com/teamnsrg/go-ethereum/internal/web3ext" - "github.com/teamnsrg/go-ethereum/rpc" + "github.com/teamnsrg/ethereum-p2p/internal/jsre" + "github.com/teamnsrg/ethereum-p2p/internal/web3ext" + "github.com/teamnsrg/ethereum-p2p/rpc" ) var ( diff --git a/console/console_test.go b/console/console_test.go index 6066b78898fa..e646af6be255 100644 --- a/console/console_test.go +++ b/console/console_test.go @@ -26,11 +26,11 @@ import ( "testing" "time" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/core" - "github.com/teamnsrg/go-ethereum/eth" - "github.com/teamnsrg/go-ethereum/internal/jsre" - "github.com/teamnsrg/go-ethereum/node" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/core" + "github.com/teamnsrg/ethereum-p2p/eth" + "github.com/teamnsrg/ethereum-p2p/internal/jsre" + "github.com/teamnsrg/ethereum-p2p/node" ) const ( diff --git a/containers/docker/develop-alpine/Dockerfile b/containers/docker/develop-alpine/Dockerfile index 861777bfc373..3999f5d65b36 100644 --- a/containers/docker/develop-alpine/Dockerfile +++ b/containers/docker/develop-alpine/Dockerfile @@ -2,7 +2,7 @@ FROM alpine:3.5 RUN \ apk add --update go git make gcc musl-dev linux-headers ca-certificates && \ - git clone --depth 1 https://github.com/teamnsrg/go-ethereum && \ + git clone --depth 1 https://github.com/teamnsrg/ethereum-p2p && \ (cd go-ethereum && make geth) && \ cp go-ethereum/build/bin/geth /geth && \ apk del go git make gcc musl-dev linux-headers && \ diff --git a/containers/docker/develop-ubuntu/Dockerfile b/containers/docker/develop-ubuntu/Dockerfile index 2128f52e5f4f..8bae897723a0 100644 --- a/containers/docker/develop-ubuntu/Dockerfile +++ b/containers/docker/develop-ubuntu/Dockerfile @@ -3,7 +3,7 @@ FROM ubuntu:xenial RUN \ apt-get update && apt-get upgrade -q -y && \ apt-get install -y --no-install-recommends golang git make gcc libc-dev ca-certificates && \ - git clone --depth 1 https://github.com/teamnsrg/go-ethereum && \ + git clone --depth 1 https://github.com/teamnsrg/ethereum-p2p && \ (cd go-ethereum && make geth) && \ cp go-ethereum/build/bin/geth /geth && \ apt-get remove -y golang git make gcc libc-dev && apt autoremove -y && apt-get clean && \ diff --git a/containers/docker/master-alpine/Dockerfile b/containers/docker/master-alpine/Dockerfile index a3425530d456..cdb70e716b86 100644 --- a/containers/docker/master-alpine/Dockerfile +++ b/containers/docker/master-alpine/Dockerfile @@ -2,7 +2,7 @@ FROM alpine:3.5 RUN \ apk add --update go git make gcc musl-dev linux-headers ca-certificates && \ - git clone --depth 1 --branch release/1.7 https://github.com/teamnsrg/go-ethereum && \ + git clone --depth 1 --branch release/1.7 https://github.com/teamnsrg/ethereum-p2p && \ (cd go-ethereum && make geth) && \ cp go-ethereum/build/bin/geth /geth && \ apk del go git make gcc musl-dev linux-headers && \ diff --git a/containers/docker/master-ubuntu/Dockerfile b/containers/docker/master-ubuntu/Dockerfile index 7e1de2d5ac6c..43e5ea685e3f 100644 --- a/containers/docker/master-ubuntu/Dockerfile +++ b/containers/docker/master-ubuntu/Dockerfile @@ -3,7 +3,7 @@ FROM ubuntu:xenial RUN \ apt-get update && apt-get upgrade -q -y && \ apt-get install -y --no-install-recommends golang git make gcc libc-dev ca-certificates && \ - git clone --depth 1 --branch release/1.7 https://github.com/teamnsrg/go-ethereum && \ + git clone --depth 1 --branch release/1.7 https://github.com/teamnsrg/ethereum-p2p && \ (cd go-ethereum && make geth) && \ cp go-ethereum/build/bin/geth /geth && \ apt-get remove -y golang git make gcc libc-dev && apt autoremove -y && apt-get clean && \ diff --git a/containers/vagrant/Vagrantfile b/containers/vagrant/Vagrantfile index 7fcd17c17236..53bb177ad84e 100644 --- a/containers/vagrant/Vagrantfile +++ b/containers/vagrant/Vagrantfile @@ -34,5 +34,5 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| end config.vm.synced_folder ".", "/vagrant", :disabled => true - config.vm.synced_folder "../../", "/home/vagrant/go/src/github.com/teamnsrg/go-ethereum" + config.vm.synced_folder "../../", "/home/vagrant/go/src/github.com/teamnsrg/ethereum-p2p" end diff --git a/containers/vagrant/provisioners/shell/centos.sh b/containers/vagrant/provisioners/shell/centos.sh index 54a0519d9e81..69f9247d6a51 100755 --- a/containers/vagrant/provisioners/shell/centos.sh +++ b/containers/vagrant/provisioners/shell/centos.sh @@ -6,6 +6,6 @@ sudo yum update -y wget --continue https://storage.googleapis.com/golang/go1.8.1.linux-amd64.tar.gz sudo tar -C /usr/local -xzf go1.8.1.linux-amd64.tar.gz -GETH_PATH="~vagrant/go/src/github.com/teamnsrg/go-ethereum/build/bin/" +GETH_PATH="~vagrant/go/src/github.com/teamnsrg/ethereum-p2p/build/bin/" echo "export PATH=$PATH:/usr/local/go/bin:$GETH_PATH" >> ~vagrant/.bashrc diff --git a/containers/vagrant/provisioners/shell/debian.sh b/containers/vagrant/provisioners/shell/debian.sh index 247226fc0265..4f435c76c121 100755 --- a/containers/vagrant/provisioners/shell/debian.sh +++ b/containers/vagrant/provisioners/shell/debian.sh @@ -6,6 +6,6 @@ sudo apt-get update wget --continue https://storage.googleapis.com/golang/go1.8.1.linux-amd64.tar.gz sudo tar -C /usr/local -xzf go1.8.1.linux-amd64.tar.gz -GETH_PATH="~vagrant/go/src/github.com/teamnsrg/go-ethereum/build/bin/" +GETH_PATH="~vagrant/go/src/github.com/teamnsrg/ethereum-p2p/build/bin/" echo "export PATH=$PATH:/usr/local/go/bin:$GETH_PATH" >> ~vagrant/.bashrc diff --git a/containers/vagrant/provisioners/shell/ubuntu.sh b/containers/vagrant/provisioners/shell/ubuntu.sh index 247226fc0265..4f435c76c121 100755 --- a/containers/vagrant/provisioners/shell/ubuntu.sh +++ b/containers/vagrant/provisioners/shell/ubuntu.sh @@ -6,6 +6,6 @@ sudo apt-get update wget --continue https://storage.googleapis.com/golang/go1.8.1.linux-amd64.tar.gz sudo tar -C /usr/local -xzf go1.8.1.linux-amd64.tar.gz -GETH_PATH="~vagrant/go/src/github.com/teamnsrg/go-ethereum/build/bin/" +GETH_PATH="~vagrant/go/src/github.com/teamnsrg/ethereum-p2p/build/bin/" echo "export PATH=$PATH:/usr/local/go/bin:$GETH_PATH" >> ~vagrant/.bashrc diff --git a/contracts/chequebook/api.go b/contracts/chequebook/api.go index 0b5e3cd9abde..ac81cebd3191 100644 --- a/contracts/chequebook/api.go +++ b/contracts/chequebook/api.go @@ -20,7 +20,7 @@ import ( "errors" "math/big" - "github.com/teamnsrg/go-ethereum/common" + "github.com/teamnsrg/ethereum-p2p/common" ) const Version = "1.0" diff --git a/contracts/chequebook/cheque.go b/contracts/chequebook/cheque.go index dab2be046efd..bdd465758749 100644 --- a/contracts/chequebook/cheque.go +++ b/contracts/chequebook/cheque.go @@ -36,14 +36,14 @@ import ( "sync" "time" - "github.com/teamnsrg/go-ethereum/accounts/abi/bind" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/common/hexutil" - "github.com/teamnsrg/go-ethereum/contracts/chequebook/contract" - "github.com/teamnsrg/go-ethereum/core/types" - "github.com/teamnsrg/go-ethereum/crypto" - "github.com/teamnsrg/go-ethereum/log" - "github.com/teamnsrg/go-ethereum/swarm/services/swap/swap" + "github.com/teamnsrg/ethereum-p2p/accounts/abi/bind" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/common/hexutil" + "github.com/teamnsrg/ethereum-p2p/contracts/chequebook/contract" + "github.com/teamnsrg/ethereum-p2p/core/types" + "github.com/teamnsrg/ethereum-p2p/crypto" + "github.com/teamnsrg/ethereum-p2p/log" + "github.com/teamnsrg/ethereum-p2p/swarm/services/swap/swap" ) // TODO(zelig): watch peer solvency and notify of bouncing cheques diff --git a/contracts/chequebook/cheque_test.go b/contracts/chequebook/cheque_test.go index 038d48a9e3d5..4568d7e84e13 100644 --- a/contracts/chequebook/cheque_test.go +++ b/contracts/chequebook/cheque_test.go @@ -24,12 +24,12 @@ import ( "testing" "time" - "github.com/teamnsrg/go-ethereum/accounts/abi/bind" - "github.com/teamnsrg/go-ethereum/accounts/abi/bind/backends" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/contracts/chequebook/contract" - "github.com/teamnsrg/go-ethereum/core" - "github.com/teamnsrg/go-ethereum/crypto" + "github.com/teamnsrg/ethereum-p2p/accounts/abi/bind" + "github.com/teamnsrg/ethereum-p2p/accounts/abi/bind/backends" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/contracts/chequebook/contract" + "github.com/teamnsrg/ethereum-p2p/core" + "github.com/teamnsrg/ethereum-p2p/crypto" ) var ( diff --git a/contracts/chequebook/contract/chequebook.go b/contracts/chequebook/contract/chequebook.go index 8bda0cc12a01..138e0535f968 100644 --- a/contracts/chequebook/contract/chequebook.go +++ b/contracts/chequebook/contract/chequebook.go @@ -7,10 +7,10 @@ import ( "math/big" "strings" - "github.com/teamnsrg/go-ethereum/accounts/abi" - "github.com/teamnsrg/go-ethereum/accounts/abi/bind" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/core/types" + "github.com/teamnsrg/ethereum-p2p/accounts/abi" + "github.com/teamnsrg/ethereum-p2p/accounts/abi/bind" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/core/types" ) // ChequebookABI is the input ABI used to generate the binding from. diff --git a/contracts/chequebook/gencode.go b/contracts/chequebook/gencode.go index 17f396866c34..6ac4e8219e73 100644 --- a/contracts/chequebook/gencode.go +++ b/contracts/chequebook/gencode.go @@ -25,11 +25,11 @@ import ( "io/ioutil" "math/big" - "github.com/teamnsrg/go-ethereum/accounts/abi/bind" - "github.com/teamnsrg/go-ethereum/accounts/abi/bind/backends" - "github.com/teamnsrg/go-ethereum/contracts/chequebook/contract" - "github.com/teamnsrg/go-ethereum/core" - "github.com/teamnsrg/go-ethereum/crypto" + "github.com/teamnsrg/ethereum-p2p/accounts/abi/bind" + "github.com/teamnsrg/ethereum-p2p/accounts/abi/bind/backends" + "github.com/teamnsrg/ethereum-p2p/contracts/chequebook/contract" + "github.com/teamnsrg/ethereum-p2p/core" + "github.com/teamnsrg/ethereum-p2p/crypto" ) var ( diff --git a/contracts/ens/contract/ens.go b/contracts/ens/contract/ens.go index 066b00343d2f..861220e44681 100644 --- a/contracts/ens/contract/ens.go +++ b/contracts/ens/contract/ens.go @@ -6,10 +6,10 @@ package contract import ( "strings" - "github.com/teamnsrg/go-ethereum/accounts/abi" - "github.com/teamnsrg/go-ethereum/accounts/abi/bind" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/core/types" + "github.com/teamnsrg/ethereum-p2p/accounts/abi" + "github.com/teamnsrg/ethereum-p2p/accounts/abi/bind" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/core/types" ) // ENSABI is the input ABI used to generate the binding from. diff --git a/contracts/ens/ens.go b/contracts/ens/ens.go index c44c75383eab..bee5f521c5e9 100644 --- a/contracts/ens/ens.go +++ b/contracts/ens/ens.go @@ -22,11 +22,11 @@ import ( "math/big" "strings" - "github.com/teamnsrg/go-ethereum/accounts/abi/bind" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/contracts/ens/contract" - "github.com/teamnsrg/go-ethereum/core/types" - "github.com/teamnsrg/go-ethereum/crypto" + "github.com/teamnsrg/ethereum-p2p/accounts/abi/bind" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/contracts/ens/contract" + "github.com/teamnsrg/ethereum-p2p/core/types" + "github.com/teamnsrg/ethereum-p2p/crypto" ) var ( diff --git a/contracts/ens/ens_test.go b/contracts/ens/ens_test.go index 3b2f2d9f69c6..4f8859dbec4a 100644 --- a/contracts/ens/ens_test.go +++ b/contracts/ens/ens_test.go @@ -20,10 +20,10 @@ import ( "math/big" "testing" - "github.com/teamnsrg/go-ethereum/accounts/abi/bind" - "github.com/teamnsrg/go-ethereum/accounts/abi/bind/backends" - "github.com/teamnsrg/go-ethereum/core" - "github.com/teamnsrg/go-ethereum/crypto" + "github.com/teamnsrg/ethereum-p2p/accounts/abi/bind" + "github.com/teamnsrg/ethereum-p2p/accounts/abi/bind/backends" + "github.com/teamnsrg/ethereum-p2p/core" + "github.com/teamnsrg/ethereum-p2p/crypto" ) var ( diff --git a/contracts/release/contract.go b/contracts/release/contract.go index cacaf347bfb9..8723b8fbe277 100644 --- a/contracts/release/contract.go +++ b/contracts/release/contract.go @@ -7,10 +7,10 @@ import ( "math/big" "strings" - "github.com/teamnsrg/go-ethereum/accounts/abi" - "github.com/teamnsrg/go-ethereum/accounts/abi/bind" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/core/types" + "github.com/teamnsrg/ethereum-p2p/accounts/abi" + "github.com/teamnsrg/ethereum-p2p/accounts/abi/bind" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/core/types" ) // ReleaseOracleABI is the input ABI used to generate the binding from. diff --git a/contracts/release/contract_test.go b/contracts/release/contract_test.go index f937c9ef275b..a53a72c3b2bc 100644 --- a/contracts/release/contract_test.go +++ b/contracts/release/contract_test.go @@ -21,11 +21,11 @@ import ( "math/big" "testing" - "github.com/teamnsrg/go-ethereum/accounts/abi/bind" - "github.com/teamnsrg/go-ethereum/accounts/abi/bind/backends" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/core" - "github.com/teamnsrg/go-ethereum/crypto" + "github.com/teamnsrg/ethereum-p2p/accounts/abi/bind" + "github.com/teamnsrg/ethereum-p2p/accounts/abi/bind/backends" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/core" + "github.com/teamnsrg/ethereum-p2p/crypto" ) // setupReleaseTest creates a blockchain simulator and deploys a version oracle diff --git a/contracts/release/release.go b/contracts/release/release.go index 69899bbc86d9..8c77df6ee6a6 100644 --- a/contracts/release/release.go +++ b/contracts/release/release.go @@ -25,15 +25,15 @@ import ( "strings" "time" - "github.com/teamnsrg/go-ethereum/accounts/abi/bind" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/eth" - "github.com/teamnsrg/go-ethereum/internal/ethapi" - "github.com/teamnsrg/go-ethereum/les" - "github.com/teamnsrg/go-ethereum/log" - "github.com/teamnsrg/go-ethereum/node" - "github.com/teamnsrg/go-ethereum/p2p" - "github.com/teamnsrg/go-ethereum/rpc" + "github.com/teamnsrg/ethereum-p2p/accounts/abi/bind" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/eth" + "github.com/teamnsrg/ethereum-p2p/internal/ethapi" + "github.com/teamnsrg/ethereum-p2p/les" + "github.com/teamnsrg/ethereum-p2p/log" + "github.com/teamnsrg/ethereum-p2p/node" + "github.com/teamnsrg/ethereum-p2p/p2p" + "github.com/teamnsrg/ethereum-p2p/rpc" ) // Interval to check for new releases @@ -149,7 +149,7 @@ func (r *ReleaseService) checkVersion() { warning := fmt.Sprintf("Client v%d.%d.%d-%x seems older than the latest upstream release v%d.%d.%d-%x", r.config.Major, r.config.Minor, r.config.Patch, r.config.Commit[:4], version.Major, version.Minor, version.Patch, version.Commit[:4]) - howtofix := fmt.Sprintf("Please check https://github.com/teamnsrg/go-ethereum/releases for new releases") + howtofix := fmt.Sprintf("Please check https://github.com/teamnsrg/ethereum-p2p/releases for new releases") separator := strings.Repeat("-", len(warning)) log.Warn(separator) diff --git a/core/asm/asm.go b/core/asm/asm.go index fea0233b7f96..f76e34192c79 100644 --- a/core/asm/asm.go +++ b/core/asm/asm.go @@ -21,7 +21,7 @@ import ( "encoding/hex" "fmt" - "github.com/teamnsrg/go-ethereum/core/vm" + "github.com/teamnsrg/ethereum-p2p/core/vm" ) // Iterator for disassembled EVM instructions diff --git a/core/asm/compiler.go b/core/asm/compiler.go index 950080f951b7..8b4822914a7f 100644 --- a/core/asm/compiler.go +++ b/core/asm/compiler.go @@ -23,8 +23,8 @@ import ( "os" "strings" - "github.com/teamnsrg/go-ethereum/common/math" - "github.com/teamnsrg/go-ethereum/core/vm" + "github.com/teamnsrg/ethereum-p2p/common/math" + "github.com/teamnsrg/ethereum-p2p/core/vm" ) // Compiler contains information about the parsed source diff --git a/core/bench_test.go b/core/bench_test.go index b3e2ac5e4fa8..fc7b4bc98a43 100644 --- a/core/bench_test.go +++ b/core/bench_test.go @@ -23,14 +23,14 @@ import ( "os" "testing" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/common/math" - "github.com/teamnsrg/go-ethereum/consensus/ethash" - "github.com/teamnsrg/go-ethereum/core/types" - "github.com/teamnsrg/go-ethereum/core/vm" - "github.com/teamnsrg/go-ethereum/crypto" - "github.com/teamnsrg/go-ethereum/ethdb" - "github.com/teamnsrg/go-ethereum/params" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/common/math" + "github.com/teamnsrg/ethereum-p2p/consensus/ethash" + "github.com/teamnsrg/ethereum-p2p/core/types" + "github.com/teamnsrg/ethereum-p2p/core/vm" + "github.com/teamnsrg/ethereum-p2p/crypto" + "github.com/teamnsrg/ethereum-p2p/ethdb" + "github.com/teamnsrg/ethereum-p2p/params" ) func BenchmarkInsertChain_empty_memdb(b *testing.B) { diff --git a/core/block_validator.go b/core/block_validator.go index d428698d2cb7..ff66594c7d18 100644 --- a/core/block_validator.go +++ b/core/block_validator.go @@ -20,11 +20,11 @@ import ( "fmt" "math/big" - "github.com/teamnsrg/go-ethereum/common/math" - "github.com/teamnsrg/go-ethereum/consensus" - "github.com/teamnsrg/go-ethereum/core/state" - "github.com/teamnsrg/go-ethereum/core/types" - "github.com/teamnsrg/go-ethereum/params" + "github.com/teamnsrg/ethereum-p2p/common/math" + "github.com/teamnsrg/ethereum-p2p/consensus" + "github.com/teamnsrg/ethereum-p2p/core/state" + "github.com/teamnsrg/ethereum-p2p/core/types" + "github.com/teamnsrg/ethereum-p2p/params" ) // BlockValidator is responsible for validating block headers, uncles and diff --git a/core/block_validator_test.go b/core/block_validator_test.go index 2af2d97f786d..5754b8005011 100644 --- a/core/block_validator_test.go +++ b/core/block_validator_test.go @@ -21,11 +21,11 @@ import ( "testing" "time" - "github.com/teamnsrg/go-ethereum/consensus/ethash" - "github.com/teamnsrg/go-ethereum/core/types" - "github.com/teamnsrg/go-ethereum/core/vm" - "github.com/teamnsrg/go-ethereum/ethdb" - "github.com/teamnsrg/go-ethereum/params" + "github.com/teamnsrg/ethereum-p2p/consensus/ethash" + "github.com/teamnsrg/ethereum-p2p/core/types" + "github.com/teamnsrg/ethereum-p2p/core/vm" + "github.com/teamnsrg/ethereum-p2p/ethdb" + "github.com/teamnsrg/ethereum-p2p/params" ) // Tests that simple header verification works, for both good and bad blocks. diff --git a/core/blockchain.go b/core/blockchain.go index 630f3a25be1a..621d83bf7c2d 100644 --- a/core/blockchain.go +++ b/core/blockchain.go @@ -28,20 +28,20 @@ import ( "time" "github.com/hashicorp/golang-lru" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/common/mclock" - "github.com/teamnsrg/go-ethereum/consensus" - "github.com/teamnsrg/go-ethereum/core/state" - "github.com/teamnsrg/go-ethereum/core/types" - "github.com/teamnsrg/go-ethereum/core/vm" - "github.com/teamnsrg/go-ethereum/crypto" - "github.com/teamnsrg/go-ethereum/ethdb" - "github.com/teamnsrg/go-ethereum/event" - "github.com/teamnsrg/go-ethereum/log" - "github.com/teamnsrg/go-ethereum/metrics" - "github.com/teamnsrg/go-ethereum/params" - "github.com/teamnsrg/go-ethereum/rlp" - "github.com/teamnsrg/go-ethereum/trie" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/common/mclock" + "github.com/teamnsrg/ethereum-p2p/consensus" + "github.com/teamnsrg/ethereum-p2p/core/state" + "github.com/teamnsrg/ethereum-p2p/core/types" + "github.com/teamnsrg/ethereum-p2p/core/vm" + "github.com/teamnsrg/ethereum-p2p/crypto" + "github.com/teamnsrg/ethereum-p2p/ethdb" + "github.com/teamnsrg/ethereum-p2p/event" + "github.com/teamnsrg/ethereum-p2p/log" + "github.com/teamnsrg/ethereum-p2p/metrics" + "github.com/teamnsrg/ethereum-p2p/params" + "github.com/teamnsrg/ethereum-p2p/rlp" + "github.com/teamnsrg/ethereum-p2p/trie" ) var ( diff --git a/core/blockchain_test.go b/core/blockchain_test.go index 464222fbf2af..2f077e6b78a4 100644 --- a/core/blockchain_test.go +++ b/core/blockchain_test.go @@ -24,14 +24,14 @@ import ( "testing" "time" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/consensus/ethash" - "github.com/teamnsrg/go-ethereum/core/state" - "github.com/teamnsrg/go-ethereum/core/types" - "github.com/teamnsrg/go-ethereum/core/vm" - "github.com/teamnsrg/go-ethereum/crypto" - "github.com/teamnsrg/go-ethereum/ethdb" - "github.com/teamnsrg/go-ethereum/params" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/consensus/ethash" + "github.com/teamnsrg/ethereum-p2p/core/state" + "github.com/teamnsrg/ethereum-p2p/core/types" + "github.com/teamnsrg/ethereum-p2p/core/vm" + "github.com/teamnsrg/ethereum-p2p/crypto" + "github.com/teamnsrg/ethereum-p2p/ethdb" + "github.com/teamnsrg/ethereum-p2p/params" ) // newTestBlockChain creates a blockchain without validation. diff --git a/core/blocks.go b/core/blocks.go index 204be55bbbec..1eb93dd43409 100644 --- a/core/blocks.go +++ b/core/blocks.go @@ -16,7 +16,7 @@ package core -import "github.com/teamnsrg/go-ethereum/common" +import "github.com/teamnsrg/ethereum-p2p/common" // BadHashes represent a set of manually tracked bad hashes (usually hard forks) var BadHashes = map[common.Hash]bool{ diff --git a/core/bloombits/generator.go b/core/bloombits/generator.go index 894eaabd116a..91b82b4e84ab 100644 --- a/core/bloombits/generator.go +++ b/core/bloombits/generator.go @@ -19,7 +19,7 @@ package bloombits import ( "errors" - "github.com/teamnsrg/go-ethereum/core/types" + "github.com/teamnsrg/ethereum-p2p/core/types" ) // errSectionOutOfBounds is returned if the user tried to add more bloom filters diff --git a/core/bloombits/generator_test.go b/core/bloombits/generator_test.go index c4bbad2bf6ad..957f1d949b16 100644 --- a/core/bloombits/generator_test.go +++ b/core/bloombits/generator_test.go @@ -21,7 +21,7 @@ import ( "math/rand" "testing" - "github.com/teamnsrg/go-ethereum/core/types" + "github.com/teamnsrg/ethereum-p2p/core/types" ) // Tests that batched bloom bits are correctly rotated from the input bloom diff --git a/core/bloombits/matcher.go b/core/bloombits/matcher.go index e99f49d7671e..88582c58bdde 100644 --- a/core/bloombits/matcher.go +++ b/core/bloombits/matcher.go @@ -26,8 +26,8 @@ import ( "sync/atomic" "time" - "github.com/teamnsrg/go-ethereum/common/bitutil" - "github.com/teamnsrg/go-ethereum/crypto" + "github.com/teamnsrg/ethereum-p2p/common/bitutil" + "github.com/teamnsrg/ethereum-p2p/crypto" ) // bloomIndexes represents the bit indexes inside the bloom filter that belong diff --git a/core/bloombits/matcher_test.go b/core/bloombits/matcher_test.go index 0d0d166a29f3..d5f58e27db77 100644 --- a/core/bloombits/matcher_test.go +++ b/core/bloombits/matcher_test.go @@ -23,7 +23,7 @@ import ( "testing" "time" - "github.com/teamnsrg/go-ethereum/common" + "github.com/teamnsrg/ethereum-p2p/common" ) const testSectionSize = 4096 @@ -82,7 +82,7 @@ func TestMatcherRandom(t *testing.T) { // Tests that the matcher can properly find matches if the starting block is // shifter from a multiple of 8. This is needed to cover an optimisation with -// bitset matching https://github.com/teamnsrg/go-ethereum/issues/15309. +// bitset matching https://github.com/teamnsrg/ethereum-p2p/issues/15309. func TestMatcherShifted(t *testing.T) { // Block 0 always matches in the tests, skip ahead of first 8 blocks with the // start to get a potential zero byte in the matcher bitset. diff --git a/core/chain_indexer.go b/core/chain_indexer.go index 1bd5a8d06b3a..c63cbe05639c 100644 --- a/core/chain_indexer.go +++ b/core/chain_indexer.go @@ -23,11 +23,11 @@ import ( "sync/atomic" "time" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/core/types" - "github.com/teamnsrg/go-ethereum/ethdb" - "github.com/teamnsrg/go-ethereum/event" - "github.com/teamnsrg/go-ethereum/log" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/core/types" + "github.com/teamnsrg/ethereum-p2p/ethdb" + "github.com/teamnsrg/ethereum-p2p/event" + "github.com/teamnsrg/ethereum-p2p/log" ) // ChainIndexerBackend defines the methods needed to process chain segments in diff --git a/core/chain_indexer_test.go b/core/chain_indexer_test.go index 9128f2281176..40053537efad 100644 --- a/core/chain_indexer_test.go +++ b/core/chain_indexer_test.go @@ -23,9 +23,9 @@ import ( "testing" "time" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/core/types" - "github.com/teamnsrg/go-ethereum/ethdb" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/core/types" + "github.com/teamnsrg/ethereum-p2p/ethdb" ) // Runs multiple tests with randomized parameters. diff --git a/core/chain_makers.go b/core/chain_makers.go index 8bab213a78c9..a541e8c5a2d6 100644 --- a/core/chain_makers.go +++ b/core/chain_makers.go @@ -20,14 +20,14 @@ import ( "fmt" "math/big" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/consensus/ethash" - "github.com/teamnsrg/go-ethereum/consensus/misc" - "github.com/teamnsrg/go-ethereum/core/state" - "github.com/teamnsrg/go-ethereum/core/types" - "github.com/teamnsrg/go-ethereum/core/vm" - "github.com/teamnsrg/go-ethereum/ethdb" - "github.com/teamnsrg/go-ethereum/params" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/consensus/ethash" + "github.com/teamnsrg/ethereum-p2p/consensus/misc" + "github.com/teamnsrg/ethereum-p2p/core/state" + "github.com/teamnsrg/ethereum-p2p/core/types" + "github.com/teamnsrg/ethereum-p2p/core/vm" + "github.com/teamnsrg/ethereum-p2p/ethdb" + "github.com/teamnsrg/ethereum-p2p/params" ) // So we can deterministically seed different blockchains diff --git a/core/chain_makers_test.go b/core/chain_makers_test.go index d3f443d7d839..ac96a3412fa5 100644 --- a/core/chain_makers_test.go +++ b/core/chain_makers_test.go @@ -20,12 +20,12 @@ import ( "fmt" "math/big" - "github.com/teamnsrg/go-ethereum/consensus/ethash" - "github.com/teamnsrg/go-ethereum/core/types" - "github.com/teamnsrg/go-ethereum/core/vm" - "github.com/teamnsrg/go-ethereum/crypto" - "github.com/teamnsrg/go-ethereum/ethdb" - "github.com/teamnsrg/go-ethereum/params" + "github.com/teamnsrg/ethereum-p2p/consensus/ethash" + "github.com/teamnsrg/ethereum-p2p/core/types" + "github.com/teamnsrg/ethereum-p2p/core/vm" + "github.com/teamnsrg/ethereum-p2p/crypto" + "github.com/teamnsrg/ethereum-p2p/ethdb" + "github.com/teamnsrg/ethereum-p2p/params" ) func ExampleGenerateChain() { diff --git a/core/dao_test.go b/core/dao_test.go index 74699d347f71..b683a568b8cf 100644 --- a/core/dao_test.go +++ b/core/dao_test.go @@ -20,10 +20,10 @@ import ( "math/big" "testing" - "github.com/teamnsrg/go-ethereum/consensus/ethash" - "github.com/teamnsrg/go-ethereum/core/vm" - "github.com/teamnsrg/go-ethereum/ethdb" - "github.com/teamnsrg/go-ethereum/params" + "github.com/teamnsrg/ethereum-p2p/consensus/ethash" + "github.com/teamnsrg/ethereum-p2p/core/vm" + "github.com/teamnsrg/ethereum-p2p/ethdb" + "github.com/teamnsrg/ethereum-p2p/params" ) // Tests that DAO-fork enabled clients can properly filter out fork-commencing diff --git a/core/database_util.go b/core/database_util.go index 9c896d657770..10b40d7bf0f2 100644 --- a/core/database_util.go +++ b/core/database_util.go @@ -24,13 +24,13 @@ import ( "fmt" "math/big" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/core/types" - "github.com/teamnsrg/go-ethereum/ethdb" - "github.com/teamnsrg/go-ethereum/log" - "github.com/teamnsrg/go-ethereum/metrics" - "github.com/teamnsrg/go-ethereum/params" - "github.com/teamnsrg/go-ethereum/rlp" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/core/types" + "github.com/teamnsrg/ethereum-p2p/ethdb" + "github.com/teamnsrg/ethereum-p2p/log" + "github.com/teamnsrg/ethereum-p2p/metrics" + "github.com/teamnsrg/ethereum-p2p/params" + "github.com/teamnsrg/ethereum-p2p/rlp" ) // DatabaseReader wraps the Get method of a backing data store. diff --git a/core/database_util_test.go b/core/database_util_test.go index 4280da7b85da..c91d29d2a9c6 100644 --- a/core/database_util_test.go +++ b/core/database_util_test.go @@ -21,11 +21,11 @@ import ( "math/big" "testing" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/core/types" - "github.com/teamnsrg/go-ethereum/crypto/sha3" - "github.com/teamnsrg/go-ethereum/ethdb" - "github.com/teamnsrg/go-ethereum/rlp" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/core/types" + "github.com/teamnsrg/ethereum-p2p/crypto/sha3" + "github.com/teamnsrg/ethereum-p2p/ethdb" + "github.com/teamnsrg/ethereum-p2p/rlp" ) // Tests block header storage and retrieval operations. diff --git a/core/events.go b/core/events.go index 66b0d7abc072..a97cdfd8a4d7 100644 --- a/core/events.go +++ b/core/events.go @@ -17,8 +17,8 @@ package core import ( - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/core/types" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/core/types" ) // TxPreEvent is posted when a transaction enters the transaction pool. diff --git a/core/evm.go b/core/evm.go index 9fe3c00e9ab1..d0577b73b91c 100644 --- a/core/evm.go +++ b/core/evm.go @@ -19,10 +19,10 @@ package core import ( "math/big" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/consensus" - "github.com/teamnsrg/go-ethereum/core/types" - "github.com/teamnsrg/go-ethereum/core/vm" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/consensus" + "github.com/teamnsrg/ethereum-p2p/core/types" + "github.com/teamnsrg/ethereum-p2p/core/vm" ) // ChainContext supports retrieving headers and consensus parameters from the diff --git a/core/gen_genesis.go b/core/gen_genesis.go index cae4394cc0c6..7191afd71200 100644 --- a/core/gen_genesis.go +++ b/core/gen_genesis.go @@ -7,10 +7,10 @@ import ( "errors" "math/big" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/common/hexutil" - "github.com/teamnsrg/go-ethereum/common/math" - "github.com/teamnsrg/go-ethereum/params" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/common/hexutil" + "github.com/teamnsrg/ethereum-p2p/common/math" + "github.com/teamnsrg/ethereum-p2p/params" ) func (g Genesis) MarshalJSON() ([]byte, error) { diff --git a/core/gen_genesis_account.go b/core/gen_genesis_account.go index a5fd3cae8132..5c82e5e16598 100644 --- a/core/gen_genesis_account.go +++ b/core/gen_genesis_account.go @@ -7,9 +7,9 @@ import ( "errors" "math/big" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/common/hexutil" - "github.com/teamnsrg/go-ethereum/common/math" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/common/hexutil" + "github.com/teamnsrg/ethereum-p2p/common/math" ) var _ = (*genesisAccountMarshaling)(nil) diff --git a/core/genesis.go b/core/genesis.go index 6bd62f106138..11a008678f22 100644 --- a/core/genesis.go +++ b/core/genesis.go @@ -25,15 +25,15 @@ import ( "math/big" "strings" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/common/hexutil" - "github.com/teamnsrg/go-ethereum/common/math" - "github.com/teamnsrg/go-ethereum/core/state" - "github.com/teamnsrg/go-ethereum/core/types" - "github.com/teamnsrg/go-ethereum/ethdb" - "github.com/teamnsrg/go-ethereum/log" - "github.com/teamnsrg/go-ethereum/params" - "github.com/teamnsrg/go-ethereum/rlp" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/common/hexutil" + "github.com/teamnsrg/ethereum-p2p/common/math" + "github.com/teamnsrg/ethereum-p2p/core/state" + "github.com/teamnsrg/ethereum-p2p/core/types" + "github.com/teamnsrg/ethereum-p2p/ethdb" + "github.com/teamnsrg/ethereum-p2p/log" + "github.com/teamnsrg/ethereum-p2p/params" + "github.com/teamnsrg/ethereum-p2p/rlp" ) //go:generate gencodec -type Genesis -field-override genesisSpecMarshaling -out gen_genesis.go diff --git a/core/genesis_test.go b/core/genesis_test.go index 5d6628d06c46..cc60af894675 100644 --- a/core/genesis_test.go +++ b/core/genesis_test.go @@ -22,11 +22,11 @@ import ( "testing" "github.com/davecgh/go-spew/spew" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/consensus/ethash" - "github.com/teamnsrg/go-ethereum/core/vm" - "github.com/teamnsrg/go-ethereum/ethdb" - "github.com/teamnsrg/go-ethereum/params" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/consensus/ethash" + "github.com/teamnsrg/ethereum-p2p/core/vm" + "github.com/teamnsrg/ethereum-p2p/ethdb" + "github.com/teamnsrg/ethereum-p2p/params" ) func TestDefaultGenesisBlock(t *testing.T) { diff --git a/core/headerchain.go b/core/headerchain.go index f1499bbb3c02..eb03551017e2 100644 --- a/core/headerchain.go +++ b/core/headerchain.go @@ -26,12 +26,12 @@ import ( "time" "github.com/hashicorp/golang-lru" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/consensus" - "github.com/teamnsrg/go-ethereum/core/types" - "github.com/teamnsrg/go-ethereum/ethdb" - "github.com/teamnsrg/go-ethereum/log" - "github.com/teamnsrg/go-ethereum/params" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/consensus" + "github.com/teamnsrg/ethereum-p2p/core/types" + "github.com/teamnsrg/ethereum-p2p/ethdb" + "github.com/teamnsrg/ethereum-p2p/log" + "github.com/teamnsrg/ethereum-p2p/params" ) const ( diff --git a/core/helper_test.go b/core/helper_test.go index 8414f42c6024..b2424e70d25e 100644 --- a/core/helper_test.go +++ b/core/helper_test.go @@ -20,9 +20,9 @@ import ( "container/list" "fmt" - "github.com/teamnsrg/go-ethereum/core/types" - "github.com/teamnsrg/go-ethereum/ethdb" - "github.com/teamnsrg/go-ethereum/event" + "github.com/teamnsrg/ethereum-p2p/core/types" + "github.com/teamnsrg/ethereum-p2p/ethdb" + "github.com/teamnsrg/ethereum-p2p/event" ) // Implement our EthTest Manager diff --git a/core/mkalloc.go b/core/mkalloc.go index ed6f6c9defe2..71b7daba8b7f 100644 --- a/core/mkalloc.go +++ b/core/mkalloc.go @@ -34,8 +34,8 @@ import ( "sort" "strconv" - "github.com/teamnsrg/go-ethereum/core" - "github.com/teamnsrg/go-ethereum/rlp" + "github.com/teamnsrg/ethereum-p2p/core" + "github.com/teamnsrg/ethereum-p2p/rlp" ) type allocItem struct{ Addr, Balance *big.Int } diff --git a/core/state/database.go b/core/state/database.go index 21b72defe473..7c506f64c8a3 100644 --- a/core/state/database.go +++ b/core/state/database.go @@ -21,9 +21,9 @@ import ( "sync" lru "github.com/hashicorp/golang-lru" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/ethdb" - "github.com/teamnsrg/go-ethereum/trie" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/ethdb" + "github.com/teamnsrg/ethereum-p2p/trie" ) // Trie cache generation limit after which to evic trie nodes from memory. diff --git a/core/state/dump.go b/core/state/dump.go index ea7df7f7da9f..8ce96070b5c1 100644 --- a/core/state/dump.go +++ b/core/state/dump.go @@ -20,9 +20,9 @@ import ( "encoding/json" "fmt" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/rlp" - "github.com/teamnsrg/go-ethereum/trie" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/rlp" + "github.com/teamnsrg/ethereum-p2p/trie" ) type DumpAccount struct { diff --git a/core/state/iterator.go b/core/state/iterator.go index 3c433283c3d0..511f59e5beea 100644 --- a/core/state/iterator.go +++ b/core/state/iterator.go @@ -20,9 +20,9 @@ import ( "bytes" "fmt" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/rlp" - "github.com/teamnsrg/go-ethereum/trie" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/rlp" + "github.com/teamnsrg/ethereum-p2p/trie" ) // NodeIterator is an iterator to traverse the entire state trie post-order, diff --git a/core/state/iterator_test.go b/core/state/iterator_test.go index 39c5bd8e1205..b761e7ef4194 100644 --- a/core/state/iterator_test.go +++ b/core/state/iterator_test.go @@ -20,7 +20,7 @@ import ( "bytes" "testing" - "github.com/teamnsrg/go-ethereum/common" + "github.com/teamnsrg/ethereum-p2p/common" ) // Tests that the node iterator indeed walks over the entire database contents. diff --git a/core/state/journal.go b/core/state/journal.go index 5febf8915e34..8a5ec4a1742f 100644 --- a/core/state/journal.go +++ b/core/state/journal.go @@ -19,7 +19,7 @@ package state import ( "math/big" - "github.com/teamnsrg/go-ethereum/common" + "github.com/teamnsrg/ethereum-p2p/common" ) type journalEntry interface { diff --git a/core/state/managed_state.go b/core/state/managed_state.go index 994a8bcf3090..f9b113abdeef 100644 --- a/core/state/managed_state.go +++ b/core/state/managed_state.go @@ -19,7 +19,7 @@ package state import ( "sync" - "github.com/teamnsrg/go-ethereum/common" + "github.com/teamnsrg/ethereum-p2p/common" ) type account struct { diff --git a/core/state/managed_state_test.go b/core/state/managed_state_test.go index 7077f5b649e5..031f09a7abda 100644 --- a/core/state/managed_state_test.go +++ b/core/state/managed_state_test.go @@ -19,8 +19,8 @@ package state import ( "testing" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/ethdb" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/ethdb" ) var addr = common.BytesToAddress([]byte("test")) diff --git a/core/state/state_object.go b/core/state/state_object.go index 0b0a05e272f8..de763a91d3e8 100644 --- a/core/state/state_object.go +++ b/core/state/state_object.go @@ -22,10 +22,10 @@ import ( "io" "math/big" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/crypto" - "github.com/teamnsrg/go-ethereum/rlp" - "github.com/teamnsrg/go-ethereum/trie" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/crypto" + "github.com/teamnsrg/ethereum-p2p/rlp" + "github.com/teamnsrg/ethereum-p2p/trie" ) var emptyCodeHash = crypto.Keccak256(nil) diff --git a/core/state/state_test.go b/core/state/state_test.go index e34e67d53253..6c5aada425da 100644 --- a/core/state/state_test.go +++ b/core/state/state_test.go @@ -21,9 +21,9 @@ import ( "math/big" "testing" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/crypto" - "github.com/teamnsrg/go-ethereum/ethdb" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/crypto" + "github.com/teamnsrg/ethereum-p2p/ethdb" checker "gopkg.in/check.v1" ) diff --git a/core/state/statedb.go b/core/state/statedb.go index 53cee269472d..b43e9571fc92 100644 --- a/core/state/statedb.go +++ b/core/state/statedb.go @@ -23,12 +23,12 @@ import ( "sort" "sync" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/core/types" - "github.com/teamnsrg/go-ethereum/crypto" - "github.com/teamnsrg/go-ethereum/log" - "github.com/teamnsrg/go-ethereum/rlp" - "github.com/teamnsrg/go-ethereum/trie" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/core/types" + "github.com/teamnsrg/ethereum-p2p/crypto" + "github.com/teamnsrg/ethereum-p2p/log" + "github.com/teamnsrg/ethereum-p2p/rlp" + "github.com/teamnsrg/ethereum-p2p/trie" ) type revision struct { diff --git a/core/state/statedb_test.go b/core/state/statedb_test.go index 0d8cb1dee897..9e98681006fd 100644 --- a/core/state/statedb_test.go +++ b/core/state/statedb_test.go @@ -30,9 +30,9 @@ import ( check "gopkg.in/check.v1" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/core/types" - "github.com/teamnsrg/go-ethereum/ethdb" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/core/types" + "github.com/teamnsrg/ethereum-p2p/ethdb" ) // Tests that updating a state trie does not leak any database writes prior to diff --git a/core/state/sync.go b/core/state/sync.go index 48e5849736ab..a5c0a45edf4c 100644 --- a/core/state/sync.go +++ b/core/state/sync.go @@ -19,9 +19,9 @@ package state import ( "bytes" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/rlp" - "github.com/teamnsrg/go-ethereum/trie" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/rlp" + "github.com/teamnsrg/ethereum-p2p/trie" ) // NewStateSync create a new state trie download scheduler. diff --git a/core/state/sync_test.go b/core/state/sync_test.go index 62eec8f0fa13..578273e3a095 100644 --- a/core/state/sync_test.go +++ b/core/state/sync_test.go @@ -21,10 +21,10 @@ import ( "math/big" "testing" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/crypto" - "github.com/teamnsrg/go-ethereum/ethdb" - "github.com/teamnsrg/go-ethereum/trie" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/crypto" + "github.com/teamnsrg/ethereum-p2p/ethdb" + "github.com/teamnsrg/ethereum-p2p/trie" ) // testAccount is the data associated with an account used by the state tests. diff --git a/core/state_processor.go b/core/state_processor.go index 64f48520aecf..80e4426204fb 100644 --- a/core/state_processor.go +++ b/core/state_processor.go @@ -19,14 +19,14 @@ package core import ( "math/big" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/consensus" - "github.com/teamnsrg/go-ethereum/consensus/misc" - "github.com/teamnsrg/go-ethereum/core/state" - "github.com/teamnsrg/go-ethereum/core/types" - "github.com/teamnsrg/go-ethereum/core/vm" - "github.com/teamnsrg/go-ethereum/crypto" - "github.com/teamnsrg/go-ethereum/params" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/consensus" + "github.com/teamnsrg/ethereum-p2p/consensus/misc" + "github.com/teamnsrg/ethereum-p2p/core/state" + "github.com/teamnsrg/ethereum-p2p/core/types" + "github.com/teamnsrg/ethereum-p2p/core/vm" + "github.com/teamnsrg/ethereum-p2p/crypto" + "github.com/teamnsrg/ethereum-p2p/params" ) // StateProcessor is a basic Processor, which takes care of transitioning diff --git a/core/state_transition.go b/core/state_transition.go index aa153d1cc913..24583372bda5 100644 --- a/core/state_transition.go +++ b/core/state_transition.go @@ -20,11 +20,11 @@ import ( "errors" "math/big" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/common/math" - "github.com/teamnsrg/go-ethereum/core/vm" - "github.com/teamnsrg/go-ethereum/log" - "github.com/teamnsrg/go-ethereum/params" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/common/math" + "github.com/teamnsrg/ethereum-p2p/core/vm" + "github.com/teamnsrg/ethereum-p2p/log" + "github.com/teamnsrg/ethereum-p2p/params" ) var ( diff --git a/core/tx_journal.go b/core/tx_journal.go index 34b9779318fe..6423c38c2b50 100644 --- a/core/tx_journal.go +++ b/core/tx_journal.go @@ -21,10 +21,10 @@ import ( "io" "os" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/core/types" - "github.com/teamnsrg/go-ethereum/log" - "github.com/teamnsrg/go-ethereum/rlp" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/core/types" + "github.com/teamnsrg/ethereum-p2p/log" + "github.com/teamnsrg/ethereum-p2p/rlp" ) // errNoActiveJournal is returned if a transaction is attempted to be inserted diff --git a/core/tx_list.go b/core/tx_list.go index 3667c0834ab8..50b0e6f55452 100644 --- a/core/tx_list.go +++ b/core/tx_list.go @@ -22,9 +22,9 @@ import ( "math/big" "sort" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/core/types" - "github.com/teamnsrg/go-ethereum/log" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/core/types" + "github.com/teamnsrg/ethereum-p2p/log" ) // nonceHeap is a heap.Interface implementation over 64bit unsigned integers for diff --git a/core/tx_list_test.go b/core/tx_list_test.go index 7b9c9d4b89d0..8f2c3707c9e0 100644 --- a/core/tx_list_test.go +++ b/core/tx_list_test.go @@ -21,8 +21,8 @@ import ( "math/rand" "testing" - "github.com/teamnsrg/go-ethereum/core/types" - "github.com/teamnsrg/go-ethereum/crypto" + "github.com/teamnsrg/ethereum-p2p/core/types" + "github.com/teamnsrg/ethereum-p2p/crypto" ) // Tests that transactions can be added to strict lists and list contents and diff --git a/core/tx_pool.go b/core/tx_pool.go index 08a21b2927d4..0fa58f4d83fe 100644 --- a/core/tx_pool.go +++ b/core/tx_pool.go @@ -25,13 +25,13 @@ import ( "sync" "time" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/core/state" - "github.com/teamnsrg/go-ethereum/core/types" - "github.com/teamnsrg/go-ethereum/event" - "github.com/teamnsrg/go-ethereum/log" - "github.com/teamnsrg/go-ethereum/metrics" - "github.com/teamnsrg/go-ethereum/params" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/core/state" + "github.com/teamnsrg/ethereum-p2p/core/types" + "github.com/teamnsrg/ethereum-p2p/event" + "github.com/teamnsrg/ethereum-p2p/log" + "github.com/teamnsrg/ethereum-p2p/metrics" + "github.com/teamnsrg/ethereum-p2p/params" "gopkg.in/karalabe/cookiejar.v2/collections/prque" ) diff --git a/core/tx_pool_test.go b/core/tx_pool_test.go index 1eef856319dc..ae737a451040 100644 --- a/core/tx_pool_test.go +++ b/core/tx_pool_test.go @@ -26,13 +26,13 @@ import ( "testing" "time" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/core/state" - "github.com/teamnsrg/go-ethereum/core/types" - "github.com/teamnsrg/go-ethereum/crypto" - "github.com/teamnsrg/go-ethereum/ethdb" - "github.com/teamnsrg/go-ethereum/event" - "github.com/teamnsrg/go-ethereum/params" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/core/state" + "github.com/teamnsrg/ethereum-p2p/core/types" + "github.com/teamnsrg/ethereum-p2p/crypto" + "github.com/teamnsrg/ethereum-p2p/ethdb" + "github.com/teamnsrg/ethereum-p2p/event" + "github.com/teamnsrg/ethereum-p2p/params" ) // testTxPoolConfig is a transaction pool configuration without stateful disk diff --git a/core/types.go b/core/types.go index 313abbeef57f..cf7d6a0d16c9 100644 --- a/core/types.go +++ b/core/types.go @@ -19,9 +19,9 @@ package core import ( "math/big" - "github.com/teamnsrg/go-ethereum/core/state" - "github.com/teamnsrg/go-ethereum/core/types" - "github.com/teamnsrg/go-ethereum/core/vm" + "github.com/teamnsrg/ethereum-p2p/core/state" + "github.com/teamnsrg/ethereum-p2p/core/types" + "github.com/teamnsrg/ethereum-p2p/core/vm" ) // Validator is an interface which defines the standard for block validation. It diff --git a/core/types/block.go b/core/types/block.go index a800f9d2db75..24ae730714ee 100644 --- a/core/types/block.go +++ b/core/types/block.go @@ -26,10 +26,10 @@ import ( "sync/atomic" "time" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/common/hexutil" - "github.com/teamnsrg/go-ethereum/crypto/sha3" - "github.com/teamnsrg/go-ethereum/rlp" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/common/hexutil" + "github.com/teamnsrg/ethereum-p2p/crypto/sha3" + "github.com/teamnsrg/ethereum-p2p/rlp" ) var ( diff --git a/core/types/block_test.go b/core/types/block_test.go index fd7b08a33339..df1034f15460 100644 --- a/core/types/block_test.go +++ b/core/types/block_test.go @@ -23,8 +23,8 @@ import ( "reflect" "testing" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/rlp" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/rlp" ) // from bcValidBlockTest.json, "SimpleTx" diff --git a/core/types/bloom9.go b/core/types/bloom9.go index b5c2a92e330e..9a6be12ca9f8 100644 --- a/core/types/bloom9.go +++ b/core/types/bloom9.go @@ -20,8 +20,8 @@ import ( "fmt" "math/big" - "github.com/teamnsrg/go-ethereum/common/hexutil" - "github.com/teamnsrg/go-ethereum/crypto" + "github.com/teamnsrg/ethereum-p2p/common/hexutil" + "github.com/teamnsrg/ethereum-p2p/crypto" ) type bytesBacked interface { diff --git a/core/types/bloom9_test.go b/core/types/bloom9_test.go index 4e15b6c1190d..60ae5ecd1006 100644 --- a/core/types/bloom9_test.go +++ b/core/types/bloom9_test.go @@ -54,7 +54,7 @@ func TestBloom(t *testing.T) { import ( "testing" - "github.com/teamnsrg/go-ethereum/core/state" + "github.com/teamnsrg/ethereum-p2p/core/state" ) func TestBloom9(t *testing.T) { diff --git a/core/types/derive_sha.go b/core/types/derive_sha.go index 4c7ba13db97d..fdbcc805f989 100644 --- a/core/types/derive_sha.go +++ b/core/types/derive_sha.go @@ -19,9 +19,9 @@ package types import ( "bytes" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/rlp" - "github.com/teamnsrg/go-ethereum/trie" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/rlp" + "github.com/teamnsrg/ethereum-p2p/trie" ) type DerivableList interface { diff --git a/core/types/gen_header_json.go b/core/types/gen_header_json.go index 6ae8dabf1164..677649ffbec0 100644 --- a/core/types/gen_header_json.go +++ b/core/types/gen_header_json.go @@ -7,8 +7,8 @@ import ( "errors" "math/big" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/common/hexutil" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/common/hexutil" ) func (h Header) MarshalJSON() ([]byte, error) { diff --git a/core/types/gen_log_json.go b/core/types/gen_log_json.go index fe6e6d301bf2..9864dc81685f 100644 --- a/core/types/gen_log_json.go +++ b/core/types/gen_log_json.go @@ -6,8 +6,8 @@ import ( "encoding/json" "errors" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/common/hexutil" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/common/hexutil" ) func (l Log) MarshalJSON() ([]byte, error) { diff --git a/core/types/gen_receipt_json.go b/core/types/gen_receipt_json.go index bfbbf569ebac..ebebbb6972ae 100644 --- a/core/types/gen_receipt_json.go +++ b/core/types/gen_receipt_json.go @@ -7,8 +7,8 @@ import ( "errors" "math/big" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/common/hexutil" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/common/hexutil" ) func (r Receipt) MarshalJSON() ([]byte, error) { diff --git a/core/types/gen_tx_json.go b/core/types/gen_tx_json.go index aa83f592a93a..384b2e606791 100644 --- a/core/types/gen_tx_json.go +++ b/core/types/gen_tx_json.go @@ -7,8 +7,8 @@ import ( "errors" "math/big" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/common/hexutil" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/common/hexutil" ) func (t txdata) MarshalJSON() ([]byte, error) { diff --git a/core/types/log.go b/core/types/log.go index ca012673447e..2fb18fa7b737 100644 --- a/core/types/log.go +++ b/core/types/log.go @@ -20,9 +20,9 @@ import ( "fmt" "io" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/common/hexutil" - "github.com/teamnsrg/go-ethereum/rlp" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/common/hexutil" + "github.com/teamnsrg/ethereum-p2p/rlp" ) //go:generate gencodec -type Log -field-override logMarshaling -out gen_log_json.go diff --git a/core/types/log_test.go b/core/types/log_test.go index facc872002e3..d6317d078ef2 100644 --- a/core/types/log_test.go +++ b/core/types/log_test.go @@ -23,8 +23,8 @@ import ( "testing" "github.com/davecgh/go-spew/spew" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/common/hexutil" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/common/hexutil" ) var unmarshalLogTests = map[string]struct { diff --git a/core/types/receipt.go b/core/types/receipt.go index a6fa866ca39e..6825161fc7fc 100644 --- a/core/types/receipt.go +++ b/core/types/receipt.go @@ -22,9 +22,9 @@ import ( "io" "math/big" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/common/hexutil" - "github.com/teamnsrg/go-ethereum/rlp" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/common/hexutil" + "github.com/teamnsrg/ethereum-p2p/rlp" ) //go:generate gencodec -type Receipt -field-override receiptMarshaling -out gen_receipt_json.go diff --git a/core/types/transaction.go b/core/types/transaction.go index 56d5b33215c0..d5f395e3dae3 100644 --- a/core/types/transaction.go +++ b/core/types/transaction.go @@ -24,10 +24,10 @@ import ( "math/big" "sync/atomic" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/common/hexutil" - "github.com/teamnsrg/go-ethereum/crypto" - "github.com/teamnsrg/go-ethereum/rlp" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/common/hexutil" + "github.com/teamnsrg/ethereum-p2p/crypto" + "github.com/teamnsrg/ethereum-p2p/rlp" ) //go:generate gencodec -type txdata -field-override txdataMarshaling -out gen_tx_json.go diff --git a/core/types/transaction_signing.go b/core/types/transaction_signing.go index f87ece2649b6..86b81e874a7d 100644 --- a/core/types/transaction_signing.go +++ b/core/types/transaction_signing.go @@ -22,9 +22,9 @@ import ( "fmt" "math/big" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/crypto" - "github.com/teamnsrg/go-ethereum/params" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/crypto" + "github.com/teamnsrg/ethereum-p2p/params" ) var ( diff --git a/core/types/transaction_signing_test.go b/core/types/transaction_signing_test.go index 8c76d30079fe..477a6bad1ebb 100644 --- a/core/types/transaction_signing_test.go +++ b/core/types/transaction_signing_test.go @@ -20,9 +20,9 @@ import ( "math/big" "testing" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/crypto" - "github.com/teamnsrg/go-ethereum/rlp" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/crypto" + "github.com/teamnsrg/ethereum-p2p/rlp" ) func TestEIP155Signing(t *testing.T) { diff --git a/core/types/transaction_test.go b/core/types/transaction_test.go index ca30a75f872c..d4370f5d174d 100644 --- a/core/types/transaction_test.go +++ b/core/types/transaction_test.go @@ -23,9 +23,9 @@ import ( "math/big" "testing" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/crypto" - "github.com/teamnsrg/go-ethereum/rlp" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/crypto" + "github.com/teamnsrg/ethereum-p2p/rlp" ) // The values in those tests are from the Transaction Tests diff --git a/core/vm/analysis.go b/core/vm/analysis.go index 2dd7028df631..449cd4bfcb7a 100644 --- a/core/vm/analysis.go +++ b/core/vm/analysis.go @@ -19,7 +19,7 @@ package vm import ( "math/big" - "github.com/teamnsrg/go-ethereum/common" + "github.com/teamnsrg/ethereum-p2p/common" ) // destinations stores one map per contract (keyed by hash of code). diff --git a/core/vm/common.go b/core/vm/common.go index ea15c7f37f0c..143bdb28996c 100644 --- a/core/vm/common.go +++ b/core/vm/common.go @@ -19,8 +19,8 @@ package vm import ( "math/big" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/common/math" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/common/math" ) // calculates the memory size required for a step diff --git a/core/vm/contract.go b/core/vm/contract.go index 071c99b88286..9b60fce92a2f 100644 --- a/core/vm/contract.go +++ b/core/vm/contract.go @@ -19,7 +19,7 @@ package vm import ( "math/big" - "github.com/teamnsrg/go-ethereum/common" + "github.com/teamnsrg/ethereum-p2p/common" ) // ContractRef is a reference to the contract's backing object diff --git a/core/vm/contracts.go b/core/vm/contracts.go index 6613c6d4f084..bef557a885ac 100644 --- a/core/vm/contracts.go +++ b/core/vm/contracts.go @@ -21,11 +21,11 @@ import ( "errors" "math/big" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/common/math" - "github.com/teamnsrg/go-ethereum/crypto" - "github.com/teamnsrg/go-ethereum/crypto/bn256" - "github.com/teamnsrg/go-ethereum/params" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/common/math" + "github.com/teamnsrg/ethereum-p2p/crypto" + "github.com/teamnsrg/ethereum-p2p/crypto/bn256" + "github.com/teamnsrg/ethereum-p2p/params" "golang.org/x/crypto/ripemd160" ) diff --git a/core/vm/contracts_test.go b/core/vm/contracts_test.go index 9ddac4477a68..d7adb3bc2e52 100644 --- a/core/vm/contracts_test.go +++ b/core/vm/contracts_test.go @@ -5,7 +5,7 @@ import ( "math/big" "testing" - "github.com/teamnsrg/go-ethereum/common" + "github.com/teamnsrg/ethereum-p2p/common" ) // precompiledTest defines the input/output pairs for precompiled contract tests. diff --git a/core/vm/evm.go b/core/vm/evm.go index c685ddb7d050..bc626c9d6844 100644 --- a/core/vm/evm.go +++ b/core/vm/evm.go @@ -20,9 +20,9 @@ import ( "math/big" "sync/atomic" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/crypto" - "github.com/teamnsrg/go-ethereum/params" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/crypto" + "github.com/teamnsrg/ethereum-p2p/params" ) // emptyCodeHash is used by create to ensure deployment is disallowed to already diff --git a/core/vm/gas.go b/core/vm/gas.go index a54406bf6405..9eaec5bc4526 100644 --- a/core/vm/gas.go +++ b/core/vm/gas.go @@ -19,7 +19,7 @@ package vm import ( "math/big" - "github.com/teamnsrg/go-ethereum/params" + "github.com/teamnsrg/ethereum-p2p/params" ) const ( diff --git a/core/vm/gas_table.go b/core/vm/gas_table.go index 2ad74f11e226..05c4e1c0b027 100644 --- a/core/vm/gas_table.go +++ b/core/vm/gas_table.go @@ -19,9 +19,9 @@ package vm import ( "math/big" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/common/math" - "github.com/teamnsrg/go-ethereum/params" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/common/math" + "github.com/teamnsrg/ethereum-p2p/params" ) // memoryGasCosts calculates the quadratic gas for memory expansion. It does so diff --git a/core/vm/gen_structlog.go b/core/vm/gen_structlog.go index 8a345de71b58..4ec9437621ac 100644 --- a/core/vm/gen_structlog.go +++ b/core/vm/gen_structlog.go @@ -6,9 +6,9 @@ import ( "encoding/json" "math/big" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/common/hexutil" - "github.com/teamnsrg/go-ethereum/common/math" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/common/hexutil" + "github.com/teamnsrg/ethereum-p2p/common/math" ) func (s StructLog) MarshalJSON() ([]byte, error) { diff --git a/core/vm/instructions.go b/core/vm/instructions.go index dd227a555c26..7d08f5fb080a 100644 --- a/core/vm/instructions.go +++ b/core/vm/instructions.go @@ -21,11 +21,11 @@ import ( "fmt" "math/big" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/common/math" - "github.com/teamnsrg/go-ethereum/core/types" - "github.com/teamnsrg/go-ethereum/crypto" - "github.com/teamnsrg/go-ethereum/params" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/common/math" + "github.com/teamnsrg/ethereum-p2p/core/types" + "github.com/teamnsrg/ethereum-p2p/crypto" + "github.com/teamnsrg/ethereum-p2p/params" ) var ( diff --git a/core/vm/instructions_test.go b/core/vm/instructions_test.go index 801d903d29e4..728b19efffac 100644 --- a/core/vm/instructions_test.go +++ b/core/vm/instructions_test.go @@ -4,8 +4,8 @@ import ( "math/big" "testing" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/params" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/params" ) func TestByteOp(t *testing.T) { diff --git a/core/vm/interface.go b/core/vm/interface.go index e55cc5e39f60..5c7998f001a2 100644 --- a/core/vm/interface.go +++ b/core/vm/interface.go @@ -19,8 +19,8 @@ package vm import ( "math/big" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/core/types" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/core/types" ) // StateDB is an EVM database for full state querying. diff --git a/core/vm/interpreter.go b/core/vm/interpreter.go index 1868a9332cbc..22f82f79edd4 100644 --- a/core/vm/interpreter.go +++ b/core/vm/interpreter.go @@ -20,10 +20,10 @@ import ( "fmt" "sync/atomic" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/common/math" - "github.com/teamnsrg/go-ethereum/crypto" - "github.com/teamnsrg/go-ethereum/params" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/common/math" + "github.com/teamnsrg/ethereum-p2p/crypto" + "github.com/teamnsrg/ethereum-p2p/params" ) // Config are the configuration options for the Interpreter diff --git a/core/vm/jump_table.go b/core/vm/jump_table.go index ee8921863e3b..2bf648ed1f15 100644 --- a/core/vm/jump_table.go +++ b/core/vm/jump_table.go @@ -20,7 +20,7 @@ import ( "errors" "math/big" - "github.com/teamnsrg/go-ethereum/params" + "github.com/teamnsrg/ethereum-p2p/params" ) type ( diff --git a/core/vm/logger.go b/core/vm/logger.go index bff7dce785d1..8a030f940559 100644 --- a/core/vm/logger.go +++ b/core/vm/logger.go @@ -23,10 +23,10 @@ import ( "math/big" "time" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/common/hexutil" - "github.com/teamnsrg/go-ethereum/common/math" - "github.com/teamnsrg/go-ethereum/core/types" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/common/hexutil" + "github.com/teamnsrg/ethereum-p2p/common/math" + "github.com/teamnsrg/ethereum-p2p/core/types" ) type Storage map[common.Hash]common.Hash diff --git a/core/vm/logger_test.go b/core/vm/logger_test.go index 352d8c637054..f0cddccb7163 100644 --- a/core/vm/logger_test.go +++ b/core/vm/logger_test.go @@ -20,8 +20,8 @@ import ( "math/big" "testing" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/params" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/params" ) type dummyContractRef struct { diff --git a/core/vm/memory_table.go b/core/vm/memory_table.go index e4db0741a770..0cfea03f1a54 100644 --- a/core/vm/memory_table.go +++ b/core/vm/memory_table.go @@ -19,7 +19,7 @@ package vm import ( "math/big" - "github.com/teamnsrg/go-ethereum/common/math" + "github.com/teamnsrg/ethereum-p2p/common/math" ) func memorySha3(stack *Stack) *big.Int { diff --git a/core/vm/noop.go b/core/vm/noop.go index 1957332f84b4..ebfcd7894572 100644 --- a/core/vm/noop.go +++ b/core/vm/noop.go @@ -19,8 +19,8 @@ package vm import ( "math/big" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/core/types" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/core/types" ) func NoopCanTransfer(db StateDB, from common.Address, balance *big.Int) bool { diff --git a/core/vm/runtime/env.go b/core/vm/runtime/env.go index 89bab034958a..33a972febb12 100644 --- a/core/vm/runtime/env.go +++ b/core/vm/runtime/env.go @@ -19,9 +19,9 @@ package runtime import ( "math/big" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/core" - "github.com/teamnsrg/go-ethereum/core/vm" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/core" + "github.com/teamnsrg/ethereum-p2p/core/vm" ) func NewEnv(cfg *Config) *vm.EVM { diff --git a/core/vm/runtime/runtime.go b/core/vm/runtime/runtime.go index 578e6141e6f0..9e819851c384 100644 --- a/core/vm/runtime/runtime.go +++ b/core/vm/runtime/runtime.go @@ -21,12 +21,12 @@ import ( "math/big" "time" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/core/state" - "github.com/teamnsrg/go-ethereum/core/vm" - "github.com/teamnsrg/go-ethereum/crypto" - "github.com/teamnsrg/go-ethereum/ethdb" - "github.com/teamnsrg/go-ethereum/params" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/core/state" + "github.com/teamnsrg/ethereum-p2p/core/vm" + "github.com/teamnsrg/ethereum-p2p/crypto" + "github.com/teamnsrg/ethereum-p2p/ethdb" + "github.com/teamnsrg/ethereum-p2p/params" ) // Config is a basic type specifying certain configuration flags for running diff --git a/core/vm/runtime/runtime_example_test.go b/core/vm/runtime/runtime_example_test.go index 143869ac3b53..9e072120e08b 100644 --- a/core/vm/runtime/runtime_example_test.go +++ b/core/vm/runtime/runtime_example_test.go @@ -19,8 +19,8 @@ package runtime_test import ( "fmt" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/core/vm/runtime" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/core/vm/runtime" ) func ExampleExecute() { diff --git a/core/vm/runtime/runtime_test.go b/core/vm/runtime/runtime_test.go index 394a7e1c801c..f7671dfb0b30 100644 --- a/core/vm/runtime/runtime_test.go +++ b/core/vm/runtime/runtime_test.go @@ -21,11 +21,11 @@ import ( "strings" "testing" - "github.com/teamnsrg/go-ethereum/accounts/abi" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/core/state" - "github.com/teamnsrg/go-ethereum/core/vm" - "github.com/teamnsrg/go-ethereum/ethdb" + "github.com/teamnsrg/ethereum-p2p/accounts/abi" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/core/state" + "github.com/teamnsrg/ethereum-p2p/core/vm" + "github.com/teamnsrg/ethereum-p2p/ethdb" ) func TestDefaults(t *testing.T) { diff --git a/core/vm/stack_table.go b/core/vm/stack_table.go index b52664c54b9c..4dbca8e21f0d 100644 --- a/core/vm/stack_table.go +++ b/core/vm/stack_table.go @@ -19,7 +19,7 @@ package vm import ( "fmt" - "github.com/teamnsrg/go-ethereum/params" + "github.com/teamnsrg/ethereum-p2p/params" ) func makeStackFunc(pop, push int) stackValidationFunc { diff --git a/core/vm/vm_jit.go b/core/vm/vm_jit.go index c3da040a1f7f..a3bbd2d819f8 100644 --- a/core/vm/vm_jit.go +++ b/core/vm/vm_jit.go @@ -38,9 +38,9 @@ import ( "math/big" "unsafe" - "github.com/teamnsrg/go-ethereum/core/state" - "github.com/teamnsrg/go-ethereum/crypto" - "github.com/teamnsrg/go-ethereum/params" + "github.com/teamnsrg/ethereum-p2p/core/state" + "github.com/teamnsrg/ethereum-p2p/crypto" + "github.com/teamnsrg/ethereum-p2p/params" ) type JitVm struct { diff --git a/crypto/crypto.go b/crypto/crypto.go index d34f64db5eae..cbde67e8d2d4 100644 --- a/crypto/crypto.go +++ b/crypto/crypto.go @@ -28,10 +28,10 @@ import ( "math/big" "os" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/common/math" - "github.com/teamnsrg/go-ethereum/crypto/sha3" - "github.com/teamnsrg/go-ethereum/rlp" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/common/math" + "github.com/teamnsrg/ethereum-p2p/crypto/sha3" + "github.com/teamnsrg/ethereum-p2p/rlp" ) var ( diff --git a/crypto/crypto_test.go b/crypto/crypto_test.go index f0d078ec36d5..1c75d3c500b5 100644 --- a/crypto/crypto_test.go +++ b/crypto/crypto_test.go @@ -27,7 +27,7 @@ import ( "testing" "time" - "github.com/teamnsrg/go-ethereum/common" + "github.com/teamnsrg/ethereum-p2p/common" ) var testAddrHex = "970e8128ab834e8eac17ab8e3812f010678cf791" diff --git a/crypto/ecies/ecies_test.go b/crypto/ecies/ecies_test.go index 9316bd3a6d59..ae620af9bece 100644 --- a/crypto/ecies/ecies_test.go +++ b/crypto/ecies/ecies_test.go @@ -40,7 +40,7 @@ import ( "math/big" "testing" - "github.com/teamnsrg/go-ethereum/crypto" + "github.com/teamnsrg/ethereum-p2p/crypto" ) var dumpEnc bool diff --git a/crypto/ecies/params.go b/crypto/ecies/params.go index 636759a7bf9d..9d248d19bd82 100644 --- a/crypto/ecies/params.go +++ b/crypto/ecies/params.go @@ -42,7 +42,7 @@ import ( "fmt" "hash" - ethcrypto "github.com/teamnsrg/go-ethereum/crypto" + ethcrypto "github.com/teamnsrg/ethereum-p2p/crypto" ) var ( diff --git a/crypto/secp256k1/curve.go b/crypto/secp256k1/curve.go index 6f5ab40c4102..a4b9777e3e0e 100644 --- a/crypto/secp256k1/curve.go +++ b/crypto/secp256k1/curve.go @@ -37,7 +37,7 @@ import ( "sync" "unsafe" - "github.com/teamnsrg/go-ethereum/common/math" + "github.com/teamnsrg/ethereum-p2p/common/math" ) /* diff --git a/crypto/secp256k1/secp256_test.go b/crypto/secp256k1/secp256_test.go index 7a4463f4f38e..6eecfd22fa63 100644 --- a/crypto/secp256k1/secp256_test.go +++ b/crypto/secp256k1/secp256_test.go @@ -24,8 +24,8 @@ import ( "encoding/hex" "testing" - "github.com/teamnsrg/go-ethereum/common/math" - "github.com/teamnsrg/go-ethereum/crypto/randentropy" + "github.com/teamnsrg/ethereum-p2p/common/math" + "github.com/teamnsrg/ethereum-p2p/crypto/randentropy" ) const TestCount = 1000 diff --git a/crypto/signature_cgo.go b/crypto/signature_cgo.go index 1b7eb67da96b..078d13582faa 100644 --- a/crypto/signature_cgo.go +++ b/crypto/signature_cgo.go @@ -23,8 +23,8 @@ import ( "crypto/elliptic" "fmt" - "github.com/teamnsrg/go-ethereum/common/math" - "github.com/teamnsrg/go-ethereum/crypto/secp256k1" + "github.com/teamnsrg/ethereum-p2p/common/math" + "github.com/teamnsrg/ethereum-p2p/crypto/secp256k1" ) func Ecrecover(hash, sig []byte) ([]byte, error) { diff --git a/dashboard/dashboard.go b/dashboard/dashboard.go index da5275e53a21..1f3016cd2b8b 100644 --- a/dashboard/dashboard.go +++ b/dashboard/dashboard.go @@ -29,9 +29,9 @@ import ( "time" "github.com/rcrowley/go-metrics" - "github.com/teamnsrg/go-ethereum/log" - "github.com/teamnsrg/go-ethereum/p2p" - "github.com/teamnsrg/go-ethereum/rpc" + "github.com/teamnsrg/ethereum-p2p/log" + "github.com/teamnsrg/ethereum-p2p/p2p" + "github.com/teamnsrg/ethereum-p2p/rpc" "golang.org/x/net/websocket" ) diff --git a/eth/api.go b/eth/api.go index 79dc1c4976fc..86dfdc150373 100644 --- a/eth/api.go +++ b/eth/api.go @@ -28,19 +28,19 @@ import ( "strings" "time" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/common/hexutil" - "github.com/teamnsrg/go-ethereum/core" - "github.com/teamnsrg/go-ethereum/core/state" - "github.com/teamnsrg/go-ethereum/core/types" - "github.com/teamnsrg/go-ethereum/core/vm" - "github.com/teamnsrg/go-ethereum/internal/ethapi" - "github.com/teamnsrg/go-ethereum/log" - "github.com/teamnsrg/go-ethereum/miner" - "github.com/teamnsrg/go-ethereum/params" - "github.com/teamnsrg/go-ethereum/rlp" - "github.com/teamnsrg/go-ethereum/rpc" - "github.com/teamnsrg/go-ethereum/trie" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/common/hexutil" + "github.com/teamnsrg/ethereum-p2p/core" + "github.com/teamnsrg/ethereum-p2p/core/state" + "github.com/teamnsrg/ethereum-p2p/core/types" + "github.com/teamnsrg/ethereum-p2p/core/vm" + "github.com/teamnsrg/ethereum-p2p/internal/ethapi" + "github.com/teamnsrg/ethereum-p2p/log" + "github.com/teamnsrg/ethereum-p2p/miner" + "github.com/teamnsrg/ethereum-p2p/params" + "github.com/teamnsrg/ethereum-p2p/rlp" + "github.com/teamnsrg/ethereum-p2p/rpc" + "github.com/teamnsrg/ethereum-p2p/trie" ) const defaultTraceTimeout = 5 * time.Second diff --git a/eth/api_backend.go b/eth/api_backend.go index b6e29bbd2491..415ba9067df4 100644 --- a/eth/api_backend.go +++ b/eth/api_backend.go @@ -20,20 +20,20 @@ import ( "context" "math/big" - "github.com/teamnsrg/go-ethereum/accounts" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/common/math" - "github.com/teamnsrg/go-ethereum/core" - "github.com/teamnsrg/go-ethereum/core/bloombits" - "github.com/teamnsrg/go-ethereum/core/state" - "github.com/teamnsrg/go-ethereum/core/types" - "github.com/teamnsrg/go-ethereum/core/vm" - "github.com/teamnsrg/go-ethereum/eth/downloader" - "github.com/teamnsrg/go-ethereum/eth/gasprice" - "github.com/teamnsrg/go-ethereum/ethdb" - "github.com/teamnsrg/go-ethereum/event" - "github.com/teamnsrg/go-ethereum/params" - "github.com/teamnsrg/go-ethereum/rpc" + "github.com/teamnsrg/ethereum-p2p/accounts" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/common/math" + "github.com/teamnsrg/ethereum-p2p/core" + "github.com/teamnsrg/ethereum-p2p/core/bloombits" + "github.com/teamnsrg/ethereum-p2p/core/state" + "github.com/teamnsrg/ethereum-p2p/core/types" + "github.com/teamnsrg/ethereum-p2p/core/vm" + "github.com/teamnsrg/ethereum-p2p/eth/downloader" + "github.com/teamnsrg/ethereum-p2p/eth/gasprice" + "github.com/teamnsrg/ethereum-p2p/ethdb" + "github.com/teamnsrg/ethereum-p2p/event" + "github.com/teamnsrg/ethereum-p2p/params" + "github.com/teamnsrg/ethereum-p2p/rpc" ) // EthApiBackend implements ethapi.Backend for full nodes diff --git a/eth/api_test.go b/eth/api_test.go index c4ddbe4fb77a..d2a2884e8105 100644 --- a/eth/api_test.go +++ b/eth/api_test.go @@ -21,9 +21,9 @@ import ( "testing" "github.com/davecgh/go-spew/spew" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/core/state" - "github.com/teamnsrg/go-ethereum/ethdb" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/core/state" + "github.com/teamnsrg/ethereum-p2p/ethdb" ) var dumper = spew.ConfigState{Indent: " "} diff --git a/eth/backend.go b/eth/backend.go index 018ae8159d20..0f911e915240 100644 --- a/eth/backend.go +++ b/eth/backend.go @@ -25,29 +25,29 @@ import ( "sync" "sync/atomic" - "github.com/teamnsrg/go-ethereum/accounts" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/common/hexutil" - "github.com/teamnsrg/go-ethereum/consensus" - "github.com/teamnsrg/go-ethereum/consensus/clique" - "github.com/teamnsrg/go-ethereum/consensus/ethash" - "github.com/teamnsrg/go-ethereum/core" - "github.com/teamnsrg/go-ethereum/core/bloombits" - "github.com/teamnsrg/go-ethereum/core/types" - "github.com/teamnsrg/go-ethereum/core/vm" - "github.com/teamnsrg/go-ethereum/eth/downloader" - "github.com/teamnsrg/go-ethereum/eth/filters" - "github.com/teamnsrg/go-ethereum/eth/gasprice" - "github.com/teamnsrg/go-ethereum/ethdb" - "github.com/teamnsrg/go-ethereum/event" - "github.com/teamnsrg/go-ethereum/internal/ethapi" - "github.com/teamnsrg/go-ethereum/log" - "github.com/teamnsrg/go-ethereum/miner" - "github.com/teamnsrg/go-ethereum/node" - "github.com/teamnsrg/go-ethereum/p2p" - "github.com/teamnsrg/go-ethereum/params" - "github.com/teamnsrg/go-ethereum/rlp" - "github.com/teamnsrg/go-ethereum/rpc" + "github.com/teamnsrg/ethereum-p2p/accounts" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/common/hexutil" + "github.com/teamnsrg/ethereum-p2p/consensus" + "github.com/teamnsrg/ethereum-p2p/consensus/clique" + "github.com/teamnsrg/ethereum-p2p/consensus/ethash" + "github.com/teamnsrg/ethereum-p2p/core" + "github.com/teamnsrg/ethereum-p2p/core/bloombits" + "github.com/teamnsrg/ethereum-p2p/core/types" + "github.com/teamnsrg/ethereum-p2p/core/vm" + "github.com/teamnsrg/ethereum-p2p/eth/downloader" + "github.com/teamnsrg/ethereum-p2p/eth/filters" + "github.com/teamnsrg/ethereum-p2p/eth/gasprice" + "github.com/teamnsrg/ethereum-p2p/ethdb" + "github.com/teamnsrg/ethereum-p2p/event" + "github.com/teamnsrg/ethereum-p2p/internal/ethapi" + "github.com/teamnsrg/ethereum-p2p/log" + "github.com/teamnsrg/ethereum-p2p/miner" + "github.com/teamnsrg/ethereum-p2p/node" + "github.com/teamnsrg/ethereum-p2p/p2p" + "github.com/teamnsrg/ethereum-p2p/params" + "github.com/teamnsrg/ethereum-p2p/rlp" + "github.com/teamnsrg/ethereum-p2p/rpc" ) type LesServer interface { diff --git a/eth/bind.go b/eth/bind.go index 14f6e6af7fc4..37a4c704c5aa 100644 --- a/eth/bind.go +++ b/eth/bind.go @@ -20,13 +20,13 @@ import ( "context" "math/big" - "github.com/teamnsrg/go-ethereum" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/common/hexutil" - "github.com/teamnsrg/go-ethereum/core/types" - "github.com/teamnsrg/go-ethereum/internal/ethapi" - "github.com/teamnsrg/go-ethereum/rlp" - "github.com/teamnsrg/go-ethereum/rpc" + "github.com/teamnsrg/ethereum-p2p" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/common/hexutil" + "github.com/teamnsrg/ethereum-p2p/core/types" + "github.com/teamnsrg/ethereum-p2p/internal/ethapi" + "github.com/teamnsrg/ethereum-p2p/rlp" + "github.com/teamnsrg/ethereum-p2p/rpc" ) // ContractBackend implements bind.ContractBackend with direct calls to Ethereum diff --git a/eth/bloombits.go b/eth/bloombits.go index 0f4833fa07e6..893fdd772777 100644 --- a/eth/bloombits.go +++ b/eth/bloombits.go @@ -19,13 +19,13 @@ package eth import ( "time" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/common/bitutil" - "github.com/teamnsrg/go-ethereum/core" - "github.com/teamnsrg/go-ethereum/core/bloombits" - "github.com/teamnsrg/go-ethereum/core/types" - "github.com/teamnsrg/go-ethereum/ethdb" - "github.com/teamnsrg/go-ethereum/params" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/common/bitutil" + "github.com/teamnsrg/ethereum-p2p/core" + "github.com/teamnsrg/ethereum-p2p/core/bloombits" + "github.com/teamnsrg/ethereum-p2p/core/types" + "github.com/teamnsrg/ethereum-p2p/ethdb" + "github.com/teamnsrg/ethereum-p2p/params" ) const ( diff --git a/eth/config.go b/eth/config.go index 9fa97ae7653c..b79aa72c3518 100644 --- a/eth/config.go +++ b/eth/config.go @@ -23,12 +23,12 @@ import ( "path/filepath" "runtime" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/common/hexutil" - "github.com/teamnsrg/go-ethereum/core" - "github.com/teamnsrg/go-ethereum/eth/downloader" - "github.com/teamnsrg/go-ethereum/eth/gasprice" - "github.com/teamnsrg/go-ethereum/params" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/common/hexutil" + "github.com/teamnsrg/ethereum-p2p/core" + "github.com/teamnsrg/ethereum-p2p/eth/downloader" + "github.com/teamnsrg/ethereum-p2p/eth/gasprice" + "github.com/teamnsrg/ethereum-p2p/params" ) // DefaultConfig contains default settings for use on the Ethereum main net. diff --git a/eth/db_upgrade.go b/eth/db_upgrade.go index 03359da3c381..7e0b61d03cc2 100644 --- a/eth/db_upgrade.go +++ b/eth/db_upgrade.go @@ -21,11 +21,11 @@ import ( "bytes" "time" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/core" - "github.com/teamnsrg/go-ethereum/ethdb" - "github.com/teamnsrg/go-ethereum/log" - "github.com/teamnsrg/go-ethereum/rlp" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/core" + "github.com/teamnsrg/ethereum-p2p/ethdb" + "github.com/teamnsrg/ethereum-p2p/log" + "github.com/teamnsrg/ethereum-p2p/rlp" ) var deduplicateData = []byte("dbUpgrade_20170714deduplicateData") diff --git a/eth/downloader/api.go b/eth/downloader/api.go index d9e277b1e16b..5e74f1537a54 100644 --- a/eth/downloader/api.go +++ b/eth/downloader/api.go @@ -20,9 +20,9 @@ import ( "context" "sync" - ethereum "github.com/teamnsrg/go-ethereum" - "github.com/teamnsrg/go-ethereum/event" - "github.com/teamnsrg/go-ethereum/rpc" + ethereum "github.com/teamnsrg/ethereum-p2p" + "github.com/teamnsrg/ethereum-p2p/event" + "github.com/teamnsrg/ethereum-p2p/rpc" ) // PublicDownloaderAPI provides an API which gives information about the current synchronisation status. diff --git a/eth/downloader/downloader.go b/eth/downloader/downloader.go index 610f7be65a8f..8ba0afe511e7 100644 --- a/eth/downloader/downloader.go +++ b/eth/downloader/downloader.go @@ -28,13 +28,13 @@ import ( "time" "github.com/rcrowley/go-metrics" - ethereum "github.com/teamnsrg/go-ethereum" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/core/types" - "github.com/teamnsrg/go-ethereum/ethdb" - "github.com/teamnsrg/go-ethereum/event" - "github.com/teamnsrg/go-ethereum/log" - "github.com/teamnsrg/go-ethereum/params" + ethereum "github.com/teamnsrg/ethereum-p2p" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/core/types" + "github.com/teamnsrg/ethereum-p2p/ethdb" + "github.com/teamnsrg/ethereum-p2p/event" + "github.com/teamnsrg/ethereum-p2p/log" + "github.com/teamnsrg/ethereum-p2p/params" ) var ( diff --git a/eth/downloader/downloader_test.go b/eth/downloader/downloader_test.go index 7bdb319be59c..b406987980da 100644 --- a/eth/downloader/downloader_test.go +++ b/eth/downloader/downloader_test.go @@ -25,15 +25,15 @@ import ( "testing" "time" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/core" - "github.com/teamnsrg/go-ethereum/core/state" - "github.com/teamnsrg/go-ethereum/core/types" - "github.com/teamnsrg/go-ethereum/crypto" - "github.com/teamnsrg/go-ethereum/ethdb" - "github.com/teamnsrg/go-ethereum/event" - "github.com/teamnsrg/go-ethereum/params" - "github.com/teamnsrg/go-ethereum/trie" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/core" + "github.com/teamnsrg/ethereum-p2p/core/state" + "github.com/teamnsrg/ethereum-p2p/core/types" + "github.com/teamnsrg/ethereum-p2p/crypto" + "github.com/teamnsrg/ethereum-p2p/ethdb" + "github.com/teamnsrg/ethereum-p2p/event" + "github.com/teamnsrg/ethereum-p2p/params" + "github.com/teamnsrg/ethereum-p2p/trie" ) var ( diff --git a/eth/downloader/fakepeer.go b/eth/downloader/fakepeer.go index 3aee083b70fc..3bb960328c89 100644 --- a/eth/downloader/fakepeer.go +++ b/eth/downloader/fakepeer.go @@ -19,10 +19,10 @@ package downloader import ( "math/big" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/core" - "github.com/teamnsrg/go-ethereum/core/types" - "github.com/teamnsrg/go-ethereum/ethdb" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/core" + "github.com/teamnsrg/ethereum-p2p/core/types" + "github.com/teamnsrg/ethereum-p2p/ethdb" ) // FakePeer is a mock downloader peer that operates on a local database instance diff --git a/eth/downloader/metrics.go b/eth/downloader/metrics.go index dca99af7e651..75d3a28008d3 100644 --- a/eth/downloader/metrics.go +++ b/eth/downloader/metrics.go @@ -19,7 +19,7 @@ package downloader import ( - "github.com/teamnsrg/go-ethereum/metrics" + "github.com/teamnsrg/ethereum-p2p/metrics" ) var ( diff --git a/eth/downloader/peer.go b/eth/downloader/peer.go index 5c5c5f86d733..418e1a63efca 100644 --- a/eth/downloader/peer.go +++ b/eth/downloader/peer.go @@ -29,9 +29,9 @@ import ( "sync/atomic" "time" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/event" - "github.com/teamnsrg/go-ethereum/log" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/event" + "github.com/teamnsrg/ethereum-p2p/log" ) const ( diff --git a/eth/downloader/queue.go b/eth/downloader/queue.go index 4d6c62b2fedb..0e7884b95226 100644 --- a/eth/downloader/queue.go +++ b/eth/downloader/queue.go @@ -26,9 +26,9 @@ import ( "time" "github.com/rcrowley/go-metrics" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/core/types" - "github.com/teamnsrg/go-ethereum/log" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/core/types" + "github.com/teamnsrg/ethereum-p2p/log" "gopkg.in/karalabe/cookiejar.v2/collections/prque" ) diff --git a/eth/downloader/statesync.go b/eth/downloader/statesync.go index 06b33405786b..56fa9bae5b0e 100644 --- a/eth/downloader/statesync.go +++ b/eth/downloader/statesync.go @@ -23,12 +23,12 @@ import ( "sync/atomic" "time" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/core/state" - "github.com/teamnsrg/go-ethereum/crypto/sha3" - "github.com/teamnsrg/go-ethereum/ethdb" - "github.com/teamnsrg/go-ethereum/log" - "github.com/teamnsrg/go-ethereum/trie" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/core/state" + "github.com/teamnsrg/ethereum-p2p/crypto/sha3" + "github.com/teamnsrg/ethereum-p2p/ethdb" + "github.com/teamnsrg/ethereum-p2p/log" + "github.com/teamnsrg/ethereum-p2p/trie" ) // stateReq represents a batch of state fetch requests groupped together into diff --git a/eth/downloader/types.go b/eth/downloader/types.go index 3a040ece5f71..799429871309 100644 --- a/eth/downloader/types.go +++ b/eth/downloader/types.go @@ -19,7 +19,7 @@ package downloader import ( "fmt" - "github.com/teamnsrg/go-ethereum/core/types" + "github.com/teamnsrg/ethereum-p2p/core/types" ) // peerDropFn is a callback type for dropping a peer detected as malicious. diff --git a/eth/fetcher/fetcher.go b/eth/fetcher/fetcher.go index 176c387b3a12..4cd6594b3f1a 100644 --- a/eth/fetcher/fetcher.go +++ b/eth/fetcher/fetcher.go @@ -22,10 +22,10 @@ import ( "math/rand" "time" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/consensus" - "github.com/teamnsrg/go-ethereum/core/types" - "github.com/teamnsrg/go-ethereum/log" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/consensus" + "github.com/teamnsrg/ethereum-p2p/core/types" + "github.com/teamnsrg/ethereum-p2p/log" "gopkg.in/karalabe/cookiejar.v2/collections/prque" ) diff --git a/eth/fetcher/fetcher_test.go b/eth/fetcher/fetcher_test.go index afb9641768a7..9d7bcb7699ad 100644 --- a/eth/fetcher/fetcher_test.go +++ b/eth/fetcher/fetcher_test.go @@ -24,12 +24,12 @@ import ( "testing" "time" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/core" - "github.com/teamnsrg/go-ethereum/core/types" - "github.com/teamnsrg/go-ethereum/crypto" - "github.com/teamnsrg/go-ethereum/ethdb" - "github.com/teamnsrg/go-ethereum/params" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/core" + "github.com/teamnsrg/ethereum-p2p/core/types" + "github.com/teamnsrg/ethereum-p2p/crypto" + "github.com/teamnsrg/ethereum-p2p/ethdb" + "github.com/teamnsrg/ethereum-p2p/params" ) var ( diff --git a/eth/fetcher/metrics.go b/eth/fetcher/metrics.go index 487df48b9408..8bd65525408e 100644 --- a/eth/fetcher/metrics.go +++ b/eth/fetcher/metrics.go @@ -19,7 +19,7 @@ package fetcher import ( - "github.com/teamnsrg/go-ethereum/metrics" + "github.com/teamnsrg/ethereum-p2p/metrics" ) var ( diff --git a/eth/filters/api.go b/eth/filters/api.go index 511288f3ac96..6aacd4644693 100644 --- a/eth/filters/api.go +++ b/eth/filters/api.go @@ -25,12 +25,12 @@ import ( "sync" "time" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/common/hexutil" - "github.com/teamnsrg/go-ethereum/core/types" - "github.com/teamnsrg/go-ethereum/ethdb" - "github.com/teamnsrg/go-ethereum/event" - "github.com/teamnsrg/go-ethereum/rpc" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/common/hexutil" + "github.com/teamnsrg/ethereum-p2p/core/types" + "github.com/teamnsrg/ethereum-p2p/ethdb" + "github.com/teamnsrg/ethereum-p2p/event" + "github.com/teamnsrg/ethereum-p2p/rpc" ) var ( diff --git a/eth/filters/api_test.go b/eth/filters/api_test.go index 2b20abc1579a..51402c7d210c 100644 --- a/eth/filters/api_test.go +++ b/eth/filters/api_test.go @@ -21,8 +21,8 @@ import ( "fmt" "testing" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/rpc" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/rpc" ) func TestUnmarshalJSONNewFilterArgs(t *testing.T) { diff --git a/eth/filters/bench_test.go b/eth/filters/bench_test.go index 8ed7ced0535f..7dc8b735e134 100644 --- a/eth/filters/bench_test.go +++ b/eth/filters/bench_test.go @@ -23,14 +23,14 @@ import ( "testing" "time" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/common/bitutil" - "github.com/teamnsrg/go-ethereum/core" - "github.com/teamnsrg/go-ethereum/core/bloombits" - "github.com/teamnsrg/go-ethereum/core/types" - "github.com/teamnsrg/go-ethereum/ethdb" - "github.com/teamnsrg/go-ethereum/event" - "github.com/teamnsrg/go-ethereum/node" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/common/bitutil" + "github.com/teamnsrg/ethereum-p2p/core" + "github.com/teamnsrg/ethereum-p2p/core/bloombits" + "github.com/teamnsrg/ethereum-p2p/core/types" + "github.com/teamnsrg/ethereum-p2p/ethdb" + "github.com/teamnsrg/ethereum-p2p/event" + "github.com/teamnsrg/ethereum-p2p/node" ) func BenchmarkBloomBits512(b *testing.B) { diff --git a/eth/filters/filter.go b/eth/filters/filter.go index 8bce07868eae..fc1b5a9070f2 100644 --- a/eth/filters/filter.go +++ b/eth/filters/filter.go @@ -20,13 +20,13 @@ import ( "context" "math/big" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/core" - "github.com/teamnsrg/go-ethereum/core/bloombits" - "github.com/teamnsrg/go-ethereum/core/types" - "github.com/teamnsrg/go-ethereum/ethdb" - "github.com/teamnsrg/go-ethereum/event" - "github.com/teamnsrg/go-ethereum/rpc" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/core" + "github.com/teamnsrg/ethereum-p2p/core/bloombits" + "github.com/teamnsrg/ethereum-p2p/core/types" + "github.com/teamnsrg/ethereum-p2p/ethdb" + "github.com/teamnsrg/ethereum-p2p/event" + "github.com/teamnsrg/ethereum-p2p/rpc" ) type Backend interface { diff --git a/eth/filters/filter_system.go b/eth/filters/filter_system.go index e5b2a717e744..ea9913112e1e 100644 --- a/eth/filters/filter_system.go +++ b/eth/filters/filter_system.go @@ -25,11 +25,11 @@ import ( "sync" "time" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/core" - "github.com/teamnsrg/go-ethereum/core/types" - "github.com/teamnsrg/go-ethereum/event" - "github.com/teamnsrg/go-ethereum/rpc" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/core" + "github.com/teamnsrg/ethereum-p2p/core/types" + "github.com/teamnsrg/ethereum-p2p/event" + "github.com/teamnsrg/ethereum-p2p/rpc" ) // Type determines the kind of filter and is used to put the filter in to diff --git a/eth/filters/filter_system_test.go b/eth/filters/filter_system_test.go index c6e07f16ccab..84ca46e08ee8 100644 --- a/eth/filters/filter_system_test.go +++ b/eth/filters/filter_system_test.go @@ -25,14 +25,14 @@ import ( "testing" "time" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/core" - "github.com/teamnsrg/go-ethereum/core/bloombits" - "github.com/teamnsrg/go-ethereum/core/types" - "github.com/teamnsrg/go-ethereum/ethdb" - "github.com/teamnsrg/go-ethereum/event" - "github.com/teamnsrg/go-ethereum/params" - "github.com/teamnsrg/go-ethereum/rpc" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/core" + "github.com/teamnsrg/ethereum-p2p/core/bloombits" + "github.com/teamnsrg/ethereum-p2p/core/types" + "github.com/teamnsrg/ethereum-p2p/ethdb" + "github.com/teamnsrg/ethereum-p2p/event" + "github.com/teamnsrg/ethereum-p2p/params" + "github.com/teamnsrg/ethereum-p2p/rpc" ) type testBackend struct { diff --git a/eth/filters/filter_test.go b/eth/filters/filter_test.go index 213c324b788b..391a0c4b2212 100644 --- a/eth/filters/filter_test.go +++ b/eth/filters/filter_test.go @@ -23,13 +23,13 @@ import ( "os" "testing" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/core" - "github.com/teamnsrg/go-ethereum/core/types" - "github.com/teamnsrg/go-ethereum/crypto" - "github.com/teamnsrg/go-ethereum/ethdb" - "github.com/teamnsrg/go-ethereum/event" - "github.com/teamnsrg/go-ethereum/params" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/core" + "github.com/teamnsrg/ethereum-p2p/core/types" + "github.com/teamnsrg/ethereum-p2p/crypto" + "github.com/teamnsrg/ethereum-p2p/ethdb" + "github.com/teamnsrg/ethereum-p2p/event" + "github.com/teamnsrg/ethereum-p2p/params" ) func makeReceipt(addr common.Address) *types.Receipt { diff --git a/eth/gasprice/gasprice.go b/eth/gasprice/gasprice.go index aa7253f2ab54..1bf2313d71c0 100644 --- a/eth/gasprice/gasprice.go +++ b/eth/gasprice/gasprice.go @@ -22,10 +22,10 @@ import ( "sort" "sync" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/internal/ethapi" - "github.com/teamnsrg/go-ethereum/params" - "github.com/teamnsrg/go-ethereum/rpc" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/internal/ethapi" + "github.com/teamnsrg/ethereum-p2p/params" + "github.com/teamnsrg/ethereum-p2p/rpc" ) var maxPrice = big.NewInt(500 * params.Shannon) diff --git a/eth/gen_config.go b/eth/gen_config.go index d9c78fbfe5ec..6ce6206e6a0e 100644 --- a/eth/gen_config.go +++ b/eth/gen_config.go @@ -5,11 +5,11 @@ package eth import ( "math/big" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/common/hexutil" - "github.com/teamnsrg/go-ethereum/core" - "github.com/teamnsrg/go-ethereum/eth/downloader" - "github.com/teamnsrg/go-ethereum/eth/gasprice" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/common/hexutil" + "github.com/teamnsrg/ethereum-p2p/core" + "github.com/teamnsrg/ethereum-p2p/eth/downloader" + "github.com/teamnsrg/ethereum-p2p/eth/gasprice" ) func (c Config) MarshalTOML() (interface{}, error) { diff --git a/eth/handler.go b/eth/handler.go index 899fb4066bbf..9f6b110852e9 100644 --- a/eth/handler.go +++ b/eth/handler.go @@ -26,20 +26,20 @@ import ( "sync/atomic" "time" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/consensus" - "github.com/teamnsrg/go-ethereum/consensus/misc" - "github.com/teamnsrg/go-ethereum/core" - "github.com/teamnsrg/go-ethereum/core/types" - "github.com/teamnsrg/go-ethereum/eth/downloader" - "github.com/teamnsrg/go-ethereum/eth/fetcher" - "github.com/teamnsrg/go-ethereum/ethdb" - "github.com/teamnsrg/go-ethereum/event" - "github.com/teamnsrg/go-ethereum/log" - "github.com/teamnsrg/go-ethereum/p2p" - "github.com/teamnsrg/go-ethereum/p2p/discover" - "github.com/teamnsrg/go-ethereum/params" - "github.com/teamnsrg/go-ethereum/rlp" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/consensus" + "github.com/teamnsrg/ethereum-p2p/consensus/misc" + "github.com/teamnsrg/ethereum-p2p/core" + "github.com/teamnsrg/ethereum-p2p/core/types" + "github.com/teamnsrg/ethereum-p2p/eth/downloader" + "github.com/teamnsrg/ethereum-p2p/eth/fetcher" + "github.com/teamnsrg/ethereum-p2p/ethdb" + "github.com/teamnsrg/ethereum-p2p/event" + "github.com/teamnsrg/ethereum-p2p/log" + "github.com/teamnsrg/ethereum-p2p/p2p" + "github.com/teamnsrg/ethereum-p2p/p2p/discover" + "github.com/teamnsrg/ethereum-p2p/params" + "github.com/teamnsrg/ethereum-p2p/rlp" ) const ( diff --git a/eth/handler_test.go b/eth/handler_test.go index 900b56d34015..f2e8f3b210ff 100644 --- a/eth/handler_test.go +++ b/eth/handler_test.go @@ -23,18 +23,18 @@ import ( "testing" "time" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/consensus/ethash" - "github.com/teamnsrg/go-ethereum/core" - "github.com/teamnsrg/go-ethereum/core/state" - "github.com/teamnsrg/go-ethereum/core/types" - "github.com/teamnsrg/go-ethereum/core/vm" - "github.com/teamnsrg/go-ethereum/crypto" - "github.com/teamnsrg/go-ethereum/eth/downloader" - "github.com/teamnsrg/go-ethereum/ethdb" - "github.com/teamnsrg/go-ethereum/event" - "github.com/teamnsrg/go-ethereum/p2p" - "github.com/teamnsrg/go-ethereum/params" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/consensus/ethash" + "github.com/teamnsrg/ethereum-p2p/core" + "github.com/teamnsrg/ethereum-p2p/core/state" + "github.com/teamnsrg/ethereum-p2p/core/types" + "github.com/teamnsrg/ethereum-p2p/core/vm" + "github.com/teamnsrg/ethereum-p2p/crypto" + "github.com/teamnsrg/ethereum-p2p/eth/downloader" + "github.com/teamnsrg/ethereum-p2p/ethdb" + "github.com/teamnsrg/ethereum-p2p/event" + "github.com/teamnsrg/ethereum-p2p/p2p" + "github.com/teamnsrg/ethereum-p2p/params" ) var bigTxGas = new(big.Int).SetUint64(params.TxGas) diff --git a/eth/helper_test.go b/eth/helper_test.go index fbe0427642be..77773a777a1b 100644 --- a/eth/helper_test.go +++ b/eth/helper_test.go @@ -27,18 +27,18 @@ import ( "sync" "testing" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/consensus/ethash" - "github.com/teamnsrg/go-ethereum/core" - "github.com/teamnsrg/go-ethereum/core/types" - "github.com/teamnsrg/go-ethereum/core/vm" - "github.com/teamnsrg/go-ethereum/crypto" - "github.com/teamnsrg/go-ethereum/eth/downloader" - "github.com/teamnsrg/go-ethereum/ethdb" - "github.com/teamnsrg/go-ethereum/event" - "github.com/teamnsrg/go-ethereum/p2p" - "github.com/teamnsrg/go-ethereum/p2p/discover" - "github.com/teamnsrg/go-ethereum/params" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/consensus/ethash" + "github.com/teamnsrg/ethereum-p2p/core" + "github.com/teamnsrg/ethereum-p2p/core/types" + "github.com/teamnsrg/ethereum-p2p/core/vm" + "github.com/teamnsrg/ethereum-p2p/crypto" + "github.com/teamnsrg/ethereum-p2p/eth/downloader" + "github.com/teamnsrg/ethereum-p2p/ethdb" + "github.com/teamnsrg/ethereum-p2p/event" + "github.com/teamnsrg/ethereum-p2p/p2p" + "github.com/teamnsrg/ethereum-p2p/p2p/discover" + "github.com/teamnsrg/ethereum-p2p/params" ) var ( diff --git a/eth/metrics.go b/eth/metrics.go index 9b2befcf9f87..a8b5f3c7fd24 100644 --- a/eth/metrics.go +++ b/eth/metrics.go @@ -17,8 +17,8 @@ package eth import ( - "github.com/teamnsrg/go-ethereum/metrics" - "github.com/teamnsrg/go-ethereum/p2p" + "github.com/teamnsrg/ethereum-p2p/metrics" + "github.com/teamnsrg/ethereum-p2p/p2p" ) var ( diff --git a/eth/peer.go b/eth/peer.go index 5b3c9013dc8d..8bcca2382fe1 100644 --- a/eth/peer.go +++ b/eth/peer.go @@ -23,10 +23,10 @@ import ( "sync" "time" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/core/types" - "github.com/teamnsrg/go-ethereum/p2p" - "github.com/teamnsrg/go-ethereum/rlp" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/core/types" + "github.com/teamnsrg/ethereum-p2p/p2p" + "github.com/teamnsrg/ethereum-p2p/rlp" "gopkg.in/fatih/set.v0" ) diff --git a/eth/protocol.go b/eth/protocol.go index f5ddf82cb081..416f9c8fa5bd 100644 --- a/eth/protocol.go +++ b/eth/protocol.go @@ -21,11 +21,11 @@ import ( "io" "math/big" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/core" - "github.com/teamnsrg/go-ethereum/core/types" - "github.com/teamnsrg/go-ethereum/event" - "github.com/teamnsrg/go-ethereum/rlp" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/core" + "github.com/teamnsrg/ethereum-p2p/core/types" + "github.com/teamnsrg/ethereum-p2p/event" + "github.com/teamnsrg/ethereum-p2p/rlp" ) // Constants to match up protocol versions and messages diff --git a/eth/protocol_test.go b/eth/protocol_test.go index 33837cf21ba6..0f621bee4899 100644 --- a/eth/protocol_test.go +++ b/eth/protocol_test.go @@ -22,12 +22,12 @@ import ( "testing" "time" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/core/types" - "github.com/teamnsrg/go-ethereum/crypto" - "github.com/teamnsrg/go-ethereum/eth/downloader" - "github.com/teamnsrg/go-ethereum/p2p" - "github.com/teamnsrg/go-ethereum/rlp" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/core/types" + "github.com/teamnsrg/ethereum-p2p/crypto" + "github.com/teamnsrg/ethereum-p2p/eth/downloader" + "github.com/teamnsrg/ethereum-p2p/p2p" + "github.com/teamnsrg/ethereum-p2p/rlp" ) func init() { diff --git a/eth/sync.go b/eth/sync.go index d42f0fb9b53c..f98b26291924 100644 --- a/eth/sync.go +++ b/eth/sync.go @@ -21,11 +21,11 @@ import ( "sync/atomic" "time" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/core/types" - "github.com/teamnsrg/go-ethereum/eth/downloader" - "github.com/teamnsrg/go-ethereum/log" - "github.com/teamnsrg/go-ethereum/p2p/discover" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/core/types" + "github.com/teamnsrg/ethereum-p2p/eth/downloader" + "github.com/teamnsrg/ethereum-p2p/log" + "github.com/teamnsrg/ethereum-p2p/p2p/discover" ) const ( diff --git a/eth/sync_test.go b/eth/sync_test.go index b57861f4654f..b8fe5f1d1c34 100644 --- a/eth/sync_test.go +++ b/eth/sync_test.go @@ -21,9 +21,9 @@ import ( "testing" "time" - "github.com/teamnsrg/go-ethereum/eth/downloader" - "github.com/teamnsrg/go-ethereum/p2p" - "github.com/teamnsrg/go-ethereum/p2p/discover" + "github.com/teamnsrg/ethereum-p2p/eth/downloader" + "github.com/teamnsrg/ethereum-p2p/p2p" + "github.com/teamnsrg/ethereum-p2p/p2p/discover" ) // Tests that fast sync gets disabled as soon as a real block is successfully diff --git a/ethclient/ethclient.go b/ethclient/ethclient.go index 1b43ac41ff77..f3285851a46a 100644 --- a/ethclient/ethclient.go +++ b/ethclient/ethclient.go @@ -24,12 +24,12 @@ import ( "fmt" "math/big" - "github.com/teamnsrg/go-ethereum" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/common/hexutil" - "github.com/teamnsrg/go-ethereum/core/types" - "github.com/teamnsrg/go-ethereum/rlp" - "github.com/teamnsrg/go-ethereum/rpc" + "github.com/teamnsrg/ethereum-p2p" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/common/hexutil" + "github.com/teamnsrg/ethereum-p2p/core/types" + "github.com/teamnsrg/ethereum-p2p/rlp" + "github.com/teamnsrg/ethereum-p2p/rpc" ) // Client defines typed wrappers for the Ethereum RPC API. diff --git a/ethclient/ethclient_test.go b/ethclient/ethclient_test.go index 635b5fd99d52..585c77c953e5 100644 --- a/ethclient/ethclient_test.go +++ b/ethclient/ethclient_test.go @@ -16,7 +16,7 @@ package ethclient -import "github.com/teamnsrg/go-ethereum" +import "github.com/teamnsrg/ethereum-p2p" // Verify that Client implements the ethereum interfaces. var ( diff --git a/ethclient/signer.go b/ethclient/signer.go index 002faab61d3a..b57482ab2af1 100644 --- a/ethclient/signer.go +++ b/ethclient/signer.go @@ -20,8 +20,8 @@ import ( "errors" "math/big" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/core/types" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/core/types" ) // senderFromServer is a types.Signer that remembers the sender address returned by the RPC diff --git a/ethdb/database.go b/ethdb/database.go index 46ca24e72334..103ecb297702 100644 --- a/ethdb/database.go +++ b/ethdb/database.go @@ -27,8 +27,8 @@ import ( "github.com/syndtr/goleveldb/leveldb/filter" "github.com/syndtr/goleveldb/leveldb/iterator" "github.com/syndtr/goleveldb/leveldb/opt" - "github.com/teamnsrg/go-ethereum/log" - "github.com/teamnsrg/go-ethereum/metrics" + "github.com/teamnsrg/ethereum-p2p/log" + "github.com/teamnsrg/ethereum-p2p/metrics" gometrics "github.com/rcrowley/go-metrics" ) diff --git a/ethdb/database_test.go b/ethdb/database_test.go index a1cc48185184..cf28ffd0119a 100644 --- a/ethdb/database_test.go +++ b/ethdb/database_test.go @@ -25,7 +25,7 @@ import ( "sync" "testing" - "github.com/teamnsrg/go-ethereum/ethdb" + "github.com/teamnsrg/ethereum-p2p/ethdb" ) func newTestLDB() (*ethdb.LDBDatabase, func()) { diff --git a/ethdb/memory_database.go b/ethdb/memory_database.go index a1d97df5892e..126489de56fb 100644 --- a/ethdb/memory_database.go +++ b/ethdb/memory_database.go @@ -20,7 +20,7 @@ import ( "errors" "sync" - "github.com/teamnsrg/go-ethereum/common" + "github.com/teamnsrg/ethereum-p2p/common" ) /* diff --git a/ethstats/ethstats.go b/ethstats/ethstats.go index 5e52e4654f8f..43b527ca4ed0 100644 --- a/ethstats/ethstats.go +++ b/ethstats/ethstats.go @@ -30,17 +30,17 @@ import ( "strings" "time" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/common/mclock" - "github.com/teamnsrg/go-ethereum/consensus" - "github.com/teamnsrg/go-ethereum/core" - "github.com/teamnsrg/go-ethereum/core/types" - "github.com/teamnsrg/go-ethereum/eth" - "github.com/teamnsrg/go-ethereum/event" - "github.com/teamnsrg/go-ethereum/les" - "github.com/teamnsrg/go-ethereum/log" - "github.com/teamnsrg/go-ethereum/p2p" - "github.com/teamnsrg/go-ethereum/rpc" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/common/mclock" + "github.com/teamnsrg/ethereum-p2p/consensus" + "github.com/teamnsrg/ethereum-p2p/core" + "github.com/teamnsrg/ethereum-p2p/core/types" + "github.com/teamnsrg/ethereum-p2p/eth" + "github.com/teamnsrg/ethereum-p2p/event" + "github.com/teamnsrg/ethereum-p2p/les" + "github.com/teamnsrg/ethereum-p2p/log" + "github.com/teamnsrg/ethereum-p2p/p2p" + "github.com/teamnsrg/ethereum-p2p/rpc" "golang.org/x/net/websocket" ) diff --git a/event/example_feed_test.go b/event/example_feed_test.go index 0a44d52c2072..a3cacc67da51 100644 --- a/event/example_feed_test.go +++ b/event/example_feed_test.go @@ -19,7 +19,7 @@ package event_test import ( "fmt" - "github.com/teamnsrg/go-ethereum/event" + "github.com/teamnsrg/ethereum-p2p/event" ) func ExampleFeed_acknowledgedEvents() { diff --git a/event/example_scope_test.go b/event/example_scope_test.go index b5fa71c85939..b3f4da7a0802 100644 --- a/event/example_scope_test.go +++ b/event/example_scope_test.go @@ -20,7 +20,7 @@ import ( "fmt" "sync" - "github.com/teamnsrg/go-ethereum/event" + "github.com/teamnsrg/ethereum-p2p/event" ) // This example demonstrates how SubscriptionScope can be used to control the lifetime of diff --git a/event/example_subscription_test.go b/event/example_subscription_test.go index d5221599431e..d6316738c13e 100644 --- a/event/example_subscription_test.go +++ b/event/example_subscription_test.go @@ -19,7 +19,7 @@ package event_test import ( "fmt" - "github.com/teamnsrg/go-ethereum/event" + "github.com/teamnsrg/ethereum-p2p/event" ) func ExampleNewSubscription() { diff --git a/event/subscription.go b/event/subscription.go index a90f00bf0316..15d016d0c5ba 100644 --- a/event/subscription.go +++ b/event/subscription.go @@ -21,7 +21,7 @@ import ( "sync" "time" - "github.com/teamnsrg/go-ethereum/common/mclock" + "github.com/teamnsrg/ethereum-p2p/common/mclock" ) // Subscription represents a stream of events. The carrier of the events is typically a diff --git a/interfaces.go b/interfaces.go index 96a77120eaad..3ae56438be53 100644 --- a/interfaces.go +++ b/interfaces.go @@ -22,8 +22,8 @@ import ( "errors" "math/big" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/core/types" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/core/types" ) // NotFound is returned by API methods if the requested item does not exist. diff --git a/internal/debug/api.go b/internal/debug/api.go index 776a0431e044..3564a1d1be26 100644 --- a/internal/debug/api.go +++ b/internal/debug/api.go @@ -33,7 +33,7 @@ import ( "sync" "time" - "github.com/teamnsrg/go-ethereum/log" + "github.com/teamnsrg/ethereum-p2p/log" ) // Handler is the global debugging handler. diff --git a/internal/debug/flags.go b/internal/debug/flags.go index 8df23a691052..2b317746cc49 100644 --- a/internal/debug/flags.go +++ b/internal/debug/flags.go @@ -25,8 +25,8 @@ import ( "runtime" colorable "github.com/mattn/go-colorable" - "github.com/teamnsrg/go-ethereum/log" - "github.com/teamnsrg/go-ethereum/log/term" + "github.com/teamnsrg/ethereum-p2p/log" + "github.com/teamnsrg/ethereum-p2p/log/term" "gopkg.in/urfave/cli.v1" ) diff --git a/internal/debug/trace.go b/internal/debug/trace.go index 1fa2c74b5a89..9e885ae70eeb 100644 --- a/internal/debug/trace.go +++ b/internal/debug/trace.go @@ -23,7 +23,7 @@ import ( "os" "runtime/trace" - "github.com/teamnsrg/go-ethereum/log" + "github.com/teamnsrg/ethereum-p2p/log" ) // StartGoTrace turns on tracing, writing to the given file. diff --git a/internal/ethapi/addrlock.go b/internal/ethapi/addrlock.go index 5b10f10eca81..f53392c9c634 100644 --- a/internal/ethapi/addrlock.go +++ b/internal/ethapi/addrlock.go @@ -19,7 +19,7 @@ package ethapi import ( "sync" - "github.com/teamnsrg/go-ethereum/common" + "github.com/teamnsrg/ethereum-p2p/common" ) type AddrLocker struct { diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go index 2785925f0e30..f1aaf292205e 100644 --- a/internal/ethapi/api.go +++ b/internal/ethapi/api.go @@ -26,21 +26,21 @@ import ( "github.com/syndtr/goleveldb/leveldb" "github.com/syndtr/goleveldb/leveldb/util" - "github.com/teamnsrg/go-ethereum/accounts" - "github.com/teamnsrg/go-ethereum/accounts/keystore" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/common/hexutil" - "github.com/teamnsrg/go-ethereum/common/math" - "github.com/teamnsrg/go-ethereum/consensus/ethash" - "github.com/teamnsrg/go-ethereum/core" - "github.com/teamnsrg/go-ethereum/core/types" - "github.com/teamnsrg/go-ethereum/core/vm" - "github.com/teamnsrg/go-ethereum/crypto" - "github.com/teamnsrg/go-ethereum/log" - "github.com/teamnsrg/go-ethereum/p2p" - "github.com/teamnsrg/go-ethereum/params" - "github.com/teamnsrg/go-ethereum/rlp" - "github.com/teamnsrg/go-ethereum/rpc" + "github.com/teamnsrg/ethereum-p2p/accounts" + "github.com/teamnsrg/ethereum-p2p/accounts/keystore" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/common/hexutil" + "github.com/teamnsrg/ethereum-p2p/common/math" + "github.com/teamnsrg/ethereum-p2p/consensus/ethash" + "github.com/teamnsrg/ethereum-p2p/core" + "github.com/teamnsrg/ethereum-p2p/core/types" + "github.com/teamnsrg/ethereum-p2p/core/vm" + "github.com/teamnsrg/ethereum-p2p/crypto" + "github.com/teamnsrg/ethereum-p2p/log" + "github.com/teamnsrg/ethereum-p2p/p2p" + "github.com/teamnsrg/ethereum-p2p/params" + "github.com/teamnsrg/ethereum-p2p/rlp" + "github.com/teamnsrg/ethereum-p2p/rpc" ) const ( @@ -390,7 +390,7 @@ func signHash(data []byte) []byte { // // The key used to calculate the signature is decrypted with the given password. // -// https://github.com/teamnsrg/go-ethereum/wiki/Management-APIs#personal_sign +// https://github.com/teamnsrg/ethereum-p2p/wiki/Management-APIs#personal_sign func (s *PrivateAccountAPI) Sign(ctx context.Context, data hexutil.Bytes, addr common.Address, passwd string) (hexutil.Bytes, error) { // Look up the wallet containing the requested signer account := accounts.Account{Address: addr} @@ -417,7 +417,7 @@ func (s *PrivateAccountAPI) Sign(ctx context.Context, data hexutil.Bytes, addr c // Note, the signature must conform to the secp256k1 curve R, S and V values, where // the V value must be be 27 or 28 for legacy reasons. // -// https://github.com/teamnsrg/go-ethereum/wiki/Management-APIs#personal_ecRecover +// https://github.com/teamnsrg/ethereum-p2p/wiki/Management-APIs#personal_ecRecover func (s *PrivateAccountAPI) EcRecover(ctx context.Context, data, sig hexutil.Bytes) (common.Address, error) { if len(sig) != 65 { return common.Address{}, fmt.Errorf("signature must be 65 bytes long") diff --git a/internal/ethapi/backend.go b/internal/ethapi/backend.go index 53e4a0e0c562..e6cb5985cda9 100644 --- a/internal/ethapi/backend.go +++ b/internal/ethapi/backend.go @@ -21,17 +21,17 @@ import ( "context" "math/big" - "github.com/teamnsrg/go-ethereum/accounts" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/core" - "github.com/teamnsrg/go-ethereum/core/state" - "github.com/teamnsrg/go-ethereum/core/types" - "github.com/teamnsrg/go-ethereum/core/vm" - "github.com/teamnsrg/go-ethereum/eth/downloader" - "github.com/teamnsrg/go-ethereum/ethdb" - "github.com/teamnsrg/go-ethereum/event" - "github.com/teamnsrg/go-ethereum/params" - "github.com/teamnsrg/go-ethereum/rpc" + "github.com/teamnsrg/ethereum-p2p/accounts" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/core" + "github.com/teamnsrg/ethereum-p2p/core/state" + "github.com/teamnsrg/ethereum-p2p/core/types" + "github.com/teamnsrg/ethereum-p2p/core/vm" + "github.com/teamnsrg/ethereum-p2p/eth/downloader" + "github.com/teamnsrg/ethereum-p2p/ethdb" + "github.com/teamnsrg/ethereum-p2p/event" + "github.com/teamnsrg/ethereum-p2p/params" + "github.com/teamnsrg/ethereum-p2p/rpc" ) // Backend interface provides the common API services (that are provided by diff --git a/internal/ethapi/tracer.go b/internal/ethapi/tracer.go index 1afd01000fae..a58ba16319a9 100644 --- a/internal/ethapi/tracer.go +++ b/internal/ethapi/tracer.go @@ -24,9 +24,9 @@ import ( "time" "github.com/robertkrimen/otto" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/common/hexutil" - "github.com/teamnsrg/go-ethereum/core/vm" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/common/hexutil" + "github.com/teamnsrg/ethereum-p2p/core/vm" ) // fakeBig is used to provide an interface to Javascript for 'big.NewInt' diff --git a/internal/ethapi/tracer_test.go b/internal/ethapi/tracer_test.go index 890421e9c45e..999c295b2b3e 100644 --- a/internal/ethapi/tracer_test.go +++ b/internal/ethapi/tracer_test.go @@ -23,9 +23,9 @@ import ( "testing" "time" - "github.com/teamnsrg/go-ethereum/common" - "github.com/teamnsrg/go-ethereum/core/vm" - "github.com/teamnsrg/go-ethereum/params" + "github.com/teamnsrg/ethereum-p2p/common" + "github.com/teamnsrg/ethereum-p2p/core/vm" + "github.com/teamnsrg/ethereum-p2p/params" ) type account struct{} diff --git a/internal/guide/guide_test.go b/internal/guide/guide_test.go index 0e85d43ad9df..3e5ba746aecf 100644 --- a/internal/guide/guide_test.go +++ b/internal/guide/guide_test.go @@ -30,8 +30,8 @@ import ( "testing" "time" - "github.com/teamnsrg/go-ethereum/accounts/keystore" - "github.com/teamnsrg/go-ethereum/core/types" + "github.com/teamnsrg/ethereum-p2p/accounts/keystore" + "github.com/teamnsrg/ethereum-p2p/core/types" ) // Tests that the account management snippets work correctly. diff --git a/internal/jsre/deps/web3.js b/internal/jsre/deps/web3.js index c285584bac12..758d0ca73d08 100644 --- a/internal/jsre/deps/web3.js +++ b/internal/jsre/deps/web3.js @@ -5857,7 +5857,7 @@ module.exports = Shh; * @author Alex Beregszaszi