diff options
author | Hao <hao@byzantine-lab.io> | 2019-09-16 14:50:28 +0800 |
---|---|---|
committer | Hao <hao@byzantine-lab.io> | 2019-09-17 11:05:19 +0800 |
commit | 1eecef2512d9c8a2bd3c0ef4af7a7b830fa30a0f (patch) | |
tree | 8d84e1f0d02d1a2c6c32edc2e00b01bd0a8c8e3e | |
parent | f512ccb3c6a67216c064f719554f21b7ccea1a1e (diff) | |
download | tangerine-consensus-1eecef2512d9c8a2bd3c0ef4af7a7b830fa30a0f.tar.gz tangerine-consensus-1eecef2512d9c8a2bd3c0ef4af7a7b830fa30a0f.tar.zst tangerine-consensus-1eecef2512d9c8a2bd3c0ef4af7a7b830fa30a0f.zip |
misc: migrate to github.com/tangerine-network
101 files changed, 401 insertions, 408 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3509531..e952ccb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,9 +4,9 @@ before_script: - apt-get update - apt-get install -y openssl libgmp3-dev git make bash gcc libc-dev g++ - mkdir -p $GOPATH/src/gitlab.com/ - - mv /builds/byzantine-lab $GOPATH/src/gitlab.com - - mkdir -p /builds/byzantine-lab/tangerine-consensus - - cd $GOPATH/src/gitlab.com/byzantine-lab/tangerine-consensus + - mv /builds/tangerine-network $GOPATH/src/github.com + - mkdir -p /builds/tangerine-network/tangerine-consensus + - cd $GOPATH/src/github.com/tangerine-network/tangerine-consensus - bin/install_tools.sh - dep ensure -v - make dep diff --git a/.travis.yml b/.travis.yml index e6f62f5..e36010f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,5 @@ language: go -go_import_path: github.com/dexon-foundation/dexon-consensus +go_import_path: github.com/tangerine-network/tangerine-consensus os: linux dist: trusty sudo: required @@ -28,8 +28,8 @@ cache: directories: - vendor before_cache: -- rm -rf vendor/github.com/dexon-foundation/bls -- rm -rf vendor/github.com/dexon-foundation/mcl +- rm -rf vendor/github.com/tangerine-network/bls +- rm -rf vendor/github.com/tangerine-network/mcl env: - ONLY_INTEGRATION_TEST=true NO_TEST_RACE=true - ONLY_INTEGRATION_TEST=true @@ -47,6 +47,6 @@ matrix: - make dep - make lint - make vet -notifications: - slack: - secure: Asyh9eDoT6/zn6bnpDQ0CabPk6YwP2N5ACmyltT9ozeJLCoOGAsWmmVyUpHJkF/yA6Zd59ilGfC4hFMy+Wk+DZvbQL27QTsgcLf+sHzbD2CunCuJzDkO8b6JSKgZ60BH5XCLSxtf7p/0lYn+MnXCg+Ly/CFN5fwacp6gybZ+UqlH+xjvW8VSZnka2YHzRIB3P5+013scPvjr9WIJ/wxviUZetFM+AOL3Uf2t7hXEGTceYEN8bIchElazJoYpzzN0nZwHJ7/IjdbSWNnXfuJUlEEqrUHeY+shLIGZvGES9zqPIOHPFJQyh3oyknYY08wsZJpU7InS/wbOs43Pte78vhoYQbxIi5Pg4bPGAWJgTePllFV99rk7ELBoDPrEp/auSxlEu1rhq9yFsef0HePrp2KuAQHz5twnnaF3kAR6IUoa/DgWNqgw71QqdWFihEeeQGn/sYUocdp2Jc1ZVIUrafICjCPJFf5pSoAyBVnx0lA4MhyEEVdwtoOR2XXn6G4+58/IF3VfH2gqS8OlE10uA71wQb3np74RBNA4mfke3mjPKwKNXJug/txPBFxsGGq9kOVwYVm4QUwkJ5hbHciGFv29Pzvo1fhJSE5/YluaHhzLHeb8vVTBTPMwzApQBL2ZCdKPZ9bppzJiR+zR+JacE/jrHnQfpMJYoykvcGQrN/s= +# notifications: +# slack: +# secure: "TOKEN" diff --git a/GNUmakefile b/GNUmakefile index 98059bd..cba842f 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -6,9 +6,9 @@ BINDIR := $(CURDIR)/build else BINDIR := $(abspath $(BINDIR)) endif -PROJECT_ROOT=gitlab.com/byzantine-lab/tangerine-consensus +PROJECT_ROOT=github.com/tangerine-network/tangerine-consensus BLS_REPO = dexonfoundation/bls-go-alpine -BLS_LIB = vendor/github.com/byzantine-lab/bls/lib/libbls384.a +BLS_LIB = vendor/github.com/tangerine-network/bls/lib/libbls384.a BUILDER_REPO = dexonfoundation/dexon-alpine ifeq ($(DOCKER),true) @@ -10,29 +10,6 @@ revision = "9bfb2ca0346b57e246cc96fa31074df521175240" [[projects]] - branch = "master" - digest = "1:2459b6301dc545a036c458f08de757156be3d860cbaf9136d13bbcbfb91fe076" - name = "github.com/byzantine-lab/bls" - packages = ["ffi/go/bls"] - pruneopts = "UT" - revision = "5e8e1cd9adf37e993a5bea2ad116e107652f0301" - -[[projects]] - branch = "master" - digest = "1:cebb704f755e322f2b3594a3d059749ca4736ae36fbfc6e895ae7a4366d7efe5" - name = "github.com/byzantine-lab/go-tangerine" - packages = [ - "common", - "common/hexutil", - "common/math", - "crypto", - "log", - "rlp", - ] - pruneopts = "UT" - revision = "872c464cb12cf7ac6df7b9094994b043eeb228bc" - -[[projects]] digest = "1:ffe9824d294da03b391f44e1ae8281281b4afc1bdaa9588c9097785e3af10cec" name = "github.com/davecgh/go-spew" packages = ["spew"] @@ -137,6 +114,29 @@ [[projects]] branch = "master" + digest = "1:2459b6301dc545a036c458f08de757156be3d860cbaf9136d13bbcbfb91fe076" + name = "github.com/tangerine-network/bls" + packages = ["ffi/go/bls"] + pruneopts = "UT" + revision = "5e8e1cd9adf37e993a5bea2ad116e107652f0301" + +[[projects]] + branch = "master" + digest = "1:8cdce26c06a5ac16b7c3dfe942466cb705f9f8500ce468b06b111f1eea0cb9d8" + name = "github.com/tangerine-network/go-tangerine" + packages = [ + "common", + "common/hexutil", + "common/math", + "crypto", + "log", + "rlp", + ] + pruneopts = "UT" + revision = "6141928cf960d950415a9bd0eebb533dba943826" + +[[projects]] + branch = "master" digest = "1:1e44db5e6902b7d1b1d24eac5753ecf43ff6f54e847353470eb539dbf9d3768e" name = "golang.org/x/crypto" packages = ["sha3"] @@ -158,14 +158,14 @@ analyzer-name = "dep" analyzer-version = 1 input-imports = [ - "github.com/byzantine-lab/bls/ffi/go/bls", - "github.com/byzantine-lab/go-tangerine/crypto", - "github.com/byzantine-lab/go-tangerine/log", - "github.com/byzantine-lab/go-tangerine/rlp", "github.com/hashicorp/golang-lru", "github.com/naoina/toml", "github.com/stretchr/testify/suite", "github.com/syndtr/goleveldb/leveldb", + "github.com/tangerine-network/bls/ffi/go/bls", + "github.com/tangerine-network/go-tangerine/crypto", + "github.com/tangerine-network/go-tangerine/log", + "github.com/tangerine-network/go-tangerine/rlp", ] solver-name = "gps-cdcl" solver-version = 1 @@ -26,14 +26,6 @@ [[constraint]] - branch = "dev" - name = "gitlab.com/byzantine-lab/bls" - -[[constraint]] - branch = "master" - name = "gitlab.com/byzantine-lab/dexon" - -[[constraint]] name = "github.com/naoina/toml" version = "0.1.1" @@ -1,9 +1,9 @@ -[](https://circleci.com/gh/dexon-foundation/dexon-consensus) +# Tangerine Consensus -DEXON Consensus -==================== +[](https://travis-ci.org/tangerine-network/tangerine-consensus) ## Getting Started + ### Prerequisites - [Go 1.10](https://golang.org/dl/) or a newer version @@ -12,10 +12,11 @@ DEXON Consensus ### Installation 1. Clone the repo - ``` - git clone https://gitlab.com/byzantine-lab/tangerine-consensus.git - cd dexon-consensus - ``` + + ``` + git clone https://github.com/tangerine-network/tangerine-consensus.git + cd tangerine-consensus + ``` 2. Setup GOPATH, the GOPATH could be anywhere in the system. Here we use `$HOME/go`: ``` @@ -24,13 +25,13 @@ DEXON Consensus ``` You should write these settings to your `.bashrc` file. +3) Install go dependency management tool -3. Install go dependency management tool ``` ./bin/install_tools.sh ``` -4. Install all dependencies +4) Install all dependencies ``` dep ensure ``` diff --git a/bin/install_dkg_dep.sh b/bin/install_dkg_dep.sh index ed37543..4bdb9f1 100755 --- a/bin/install_dkg_dep.sh +++ b/bin/install_dkg_dep.sh @@ -7,12 +7,12 @@ fi if [ ! -d .dep/dkg ]; then mkdir -p .dep/dkg cd .dep/dkg - git clone --depth 1 -b master git://github.com/byzantine-lab/bls.git & - git clone --depth 1 -b master git://github.com/byzantine-lab/mcl.git & + git clone --depth 1 -b master git://github.com/tangerine-network/bls.git & + git clone --depth 1 -b master git://github.com/tangerine-network/mcl.git & wait cd bls make test_go -j MCL_USE_OPENSSL=0 cd ../../../ fi -cd vendor/github.com/byzantine-lab && rm -rf bls mcl +cd vendor/github.com/tangerine-network && rm -rf bls mcl ln -s ../../../.dep/dkg/* . diff --git a/cmd/tancon-simulation-peer-server/main.go b/cmd/tancon-simulation-peer-server/main.go index b0be4a4..5761250 100644 --- a/cmd/tancon-simulation-peer-server/main.go +++ b/cmd/tancon-simulation-peer-server/main.go @@ -22,8 +22,8 @@ import ( "log" "os" - "gitlab.com/byzantine-lab/tangerine-consensus/simulation" - "gitlab.com/byzantine-lab/tangerine-consensus/simulation/config" + "github.com/tangerine-network/tangerine-consensus/simulation" + "github.com/tangerine-network/tangerine-consensus/simulation/config" ) var configFile = flag.String("config", "", "path to simulation config file") diff --git a/cmd/tancon-simulation/main.go b/cmd/tancon-simulation/main.go index fba99d5..2309614 100644 --- a/cmd/tancon-simulation/main.go +++ b/cmd/tancon-simulation/main.go @@ -29,8 +29,8 @@ import ( "runtime/pprof" "time" - "gitlab.com/byzantine-lab/tangerine-consensus/simulation" - "gitlab.com/byzantine-lab/tangerine-consensus/simulation/config" + "github.com/tangerine-network/tangerine-consensus/simulation" + "github.com/tangerine-network/tangerine-consensus/simulation/config" ) var initialize = flag.Bool("init", false, "initialize config file") diff --git a/core/agreement-mgr.go b/core/agreement-mgr.go index b57e4ee..59c97b8 100644 --- a/core/agreement-mgr.go +++ b/core/agreement-mgr.go @@ -26,10 +26,10 @@ import ( lru "github.com/hashicorp/golang-lru" - "gitlab.com/byzantine-lab/tangerine-consensus/common" - "gitlab.com/byzantine-lab/tangerine-consensus/core/types" - typesDKG "gitlab.com/byzantine-lab/tangerine-consensus/core/types/dkg" - "gitlab.com/byzantine-lab/tangerine-consensus/core/utils" + "github.com/tangerine-network/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/core/types" + typesDKG "github.com/tangerine-network/tangerine-consensus/core/types/dkg" + "github.com/tangerine-network/tangerine-consensus/core/utils" ) // Errors returned from BA modules diff --git a/core/agreement-state.go b/core/agreement-state.go index 3fd2bac..d99b8b7 100644 --- a/core/agreement-state.go +++ b/core/agreement-state.go @@ -20,7 +20,7 @@ package core import ( "fmt" - "gitlab.com/byzantine-lab/tangerine-consensus/core/types" + "github.com/tangerine-network/tangerine-consensus/core/types" ) // Errors for agreement state module. diff --git a/core/agreement-state_test.go b/core/agreement-state_test.go index d21213d..6aa9ce3 100644 --- a/core/agreement-state_test.go +++ b/core/agreement-state_test.go @@ -22,10 +22,10 @@ import ( "github.com/stretchr/testify/suite" - "gitlab.com/byzantine-lab/tangerine-consensus/common" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto/ecdsa" - "gitlab.com/byzantine-lab/tangerine-consensus/core/types" - "gitlab.com/byzantine-lab/tangerine-consensus/core/utils" + "github.com/tangerine-network/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/core/crypto/ecdsa" + "github.com/tangerine-network/tangerine-consensus/core/types" + "github.com/tangerine-network/tangerine-consensus/core/utils" ) type AgreementStateTestSuite struct { diff --git a/core/agreement.go b/core/agreement.go index 287b6d6..62d1967 100644 --- a/core/agreement.go +++ b/core/agreement.go @@ -24,9 +24,9 @@ import ( "sync/atomic" "time" - "gitlab.com/byzantine-lab/tangerine-consensus/common" - "gitlab.com/byzantine-lab/tangerine-consensus/core/types" - "gitlab.com/byzantine-lab/tangerine-consensus/core/utils" + "github.com/tangerine-network/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/core/types" + "github.com/tangerine-network/tangerine-consensus/core/utils" ) // closedchan is a reusable closed channel. diff --git a/core/agreement_test.go b/core/agreement_test.go index f0df78a..af54370 100644 --- a/core/agreement_test.go +++ b/core/agreement_test.go @@ -21,11 +21,11 @@ import ( "testing" "time" - "gitlab.com/byzantine-lab/tangerine-consensus/common" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto/ecdsa" - "gitlab.com/byzantine-lab/tangerine-consensus/core/types" - "gitlab.com/byzantine-lab/tangerine-consensus/core/utils" "github.com/stretchr/testify/suite" + "github.com/tangerine-network/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/core/crypto/ecdsa" + "github.com/tangerine-network/tangerine-consensus/core/types" + "github.com/tangerine-network/tangerine-consensus/core/utils" ) // agreementTestReceiver implements core.agreementReceiver. diff --git a/core/blockchain.go b/core/blockchain.go index c6f69f2..2d7bf9a 100644 --- a/core/blockchain.go +++ b/core/blockchain.go @@ -26,10 +26,10 @@ import ( "sync" "time" - "gitlab.com/byzantine-lab/tangerine-consensus/common" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto" - "gitlab.com/byzantine-lab/tangerine-consensus/core/types" - "gitlab.com/byzantine-lab/tangerine-consensus/core/utils" + "github.com/tangerine-network/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/core/crypto" + "github.com/tangerine-network/tangerine-consensus/core/types" + "github.com/tangerine-network/tangerine-consensus/core/utils" ) // Errors for sanity check error. diff --git a/core/blockchain_test.go b/core/blockchain_test.go index 6745be3..5a0345d 100644 --- a/core/blockchain_test.go +++ b/core/blockchain_test.go @@ -23,12 +23,12 @@ import ( "testing" "time" - "gitlab.com/byzantine-lab/tangerine-consensus/common" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto" - "gitlab.com/byzantine-lab/tangerine-consensus/core/test" - "gitlab.com/byzantine-lab/tangerine-consensus/core/types" - "gitlab.com/byzantine-lab/tangerine-consensus/core/utils" "github.com/stretchr/testify/suite" + "github.com/tangerine-network/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/core/crypto" + "github.com/tangerine-network/tangerine-consensus/core/test" + "github.com/tangerine-network/tangerine-consensus/core/types" + "github.com/tangerine-network/tangerine-consensus/core/utils" ) type testTSigVerifier struct{} diff --git a/core/configuration-chain.go b/core/configuration-chain.go index c545ced..de863b4 100644 --- a/core/configuration-chain.go +++ b/core/configuration-chain.go @@ -23,12 +23,12 @@ import ( "sync" "time" - "gitlab.com/byzantine-lab/tangerine-consensus/common" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto" - "gitlab.com/byzantine-lab/tangerine-consensus/core/db" - "gitlab.com/byzantine-lab/tangerine-consensus/core/types" - typesDKG "gitlab.com/byzantine-lab/tangerine-consensus/core/types/dkg" - "gitlab.com/byzantine-lab/tangerine-consensus/core/utils" + "github.com/tangerine-network/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/core/crypto" + "github.com/tangerine-network/tangerine-consensus/core/db" + "github.com/tangerine-network/tangerine-consensus/core/types" + typesDKG "github.com/tangerine-network/tangerine-consensus/core/types/dkg" + "github.com/tangerine-network/tangerine-consensus/core/utils" ) // Errors for configuration chain.. diff --git a/core/configuration-chain_test.go b/core/configuration-chain_test.go index 96f8f63..b2e433c 100644 --- a/core/configuration-chain_test.go +++ b/core/configuration-chain_test.go @@ -27,15 +27,15 @@ import ( "github.com/stretchr/testify/suite" - "gitlab.com/byzantine-lab/tangerine-consensus/common" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto/dkg" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto/ecdsa" - "gitlab.com/byzantine-lab/tangerine-consensus/core/db" - "gitlab.com/byzantine-lab/tangerine-consensus/core/test" - "gitlab.com/byzantine-lab/tangerine-consensus/core/types" - typesDKG "gitlab.com/byzantine-lab/tangerine-consensus/core/types/dkg" - "gitlab.com/byzantine-lab/tangerine-consensus/core/utils" + "github.com/tangerine-network/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/core/crypto" + "github.com/tangerine-network/tangerine-consensus/core/crypto/dkg" + "github.com/tangerine-network/tangerine-consensus/core/crypto/ecdsa" + "github.com/tangerine-network/tangerine-consensus/core/db" + "github.com/tangerine-network/tangerine-consensus/core/test" + "github.com/tangerine-network/tangerine-consensus/core/types" + typesDKG "github.com/tangerine-network/tangerine-consensus/core/types/dkg" + "github.com/tangerine-network/tangerine-consensus/core/utils" ) type ConfigurationChainTestSuite struct { diff --git a/core/consensus.go b/core/consensus.go index 8024b54..9af7a44 100644 --- a/core/consensus.go +++ b/core/consensus.go @@ -24,13 +24,13 @@ import ( "sync" "time" - "gitlab.com/byzantine-lab/tangerine-consensus/common" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto" - cryptoDKG "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto/dkg" - "gitlab.com/byzantine-lab/tangerine-consensus/core/db" - "gitlab.com/byzantine-lab/tangerine-consensus/core/types" - typesDKG "gitlab.com/byzantine-lab/tangerine-consensus/core/types/dkg" - "gitlab.com/byzantine-lab/tangerine-consensus/core/utils" + "github.com/tangerine-network/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/core/crypto" + cryptoDKG "github.com/tangerine-network/tangerine-consensus/core/crypto/dkg" + "github.com/tangerine-network/tangerine-consensus/core/db" + "github.com/tangerine-network/tangerine-consensus/core/types" + typesDKG "github.com/tangerine-network/tangerine-consensus/core/types/dkg" + "github.com/tangerine-network/tangerine-consensus/core/utils" ) // Errors for consensus core. diff --git a/core/consensus_test.go b/core/consensus_test.go index eb5ab82..8fbec40 100644 --- a/core/consensus_test.go +++ b/core/consensus_test.go @@ -26,13 +26,13 @@ import ( "github.com/stretchr/testify/suite" - "gitlab.com/byzantine-lab/tangerine-consensus/common" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto" - "gitlab.com/byzantine-lab/tangerine-consensus/core/db" - "gitlab.com/byzantine-lab/tangerine-consensus/core/test" - "gitlab.com/byzantine-lab/tangerine-consensus/core/types" - typesDKG "gitlab.com/byzantine-lab/tangerine-consensus/core/types/dkg" - "gitlab.com/byzantine-lab/tangerine-consensus/core/utils" + "github.com/tangerine-network/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/core/crypto" + "github.com/tangerine-network/tangerine-consensus/core/db" + "github.com/tangerine-network/tangerine-consensus/core/test" + "github.com/tangerine-network/tangerine-consensus/core/types" + typesDKG "github.com/tangerine-network/tangerine-consensus/core/types/dkg" + "github.com/tangerine-network/tangerine-consensus/core/utils" ) // network implements core.Network. diff --git a/core/constant.go b/core/constant.go index 0d23d00..25a2bfc 100644 --- a/core/constant.go +++ b/core/constant.go @@ -17,7 +17,7 @@ package core -import "gitlab.com/byzantine-lab/tangerine-consensus/core/utils" +import "github.com/tangerine-network/tangerine-consensus/core/utils" // ConfigRoundShift refers to the difference between block's round and config // round derived from its state. diff --git a/core/crypto/dkg/constant.go b/core/crypto/dkg/constant.go index 3f6627b..34d7606 100644 --- a/core/crypto/dkg/constant.go +++ b/core/crypto/dkg/constant.go @@ -18,7 +18,7 @@ package dkg import ( - "github.com/byzantine-lab/bls/ffi/go/bls" + "github.com/tangerine-network/bls/ffi/go/bls" ) const ( diff --git a/core/crypto/dkg/dkg.go b/core/crypto/dkg/dkg.go index 7e5a95b..8011e18 100644 --- a/core/crypto/dkg/dkg.go +++ b/core/crypto/dkg/dkg.go @@ -24,11 +24,11 @@ import ( "sync" "sync/atomic" - "github.com/byzantine-lab/bls/ffi/go/bls" - "github.com/byzantine-lab/go-tangerine/rlp" + "github.com/tangerine-network/bls/ffi/go/bls" + "github.com/tangerine-network/go-tangerine/rlp" - "gitlab.com/byzantine-lab/tangerine-consensus/common" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto" + "github.com/tangerine-network/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/core/crypto" ) var ( diff --git a/core/crypto/dkg/dkg_test.go b/core/crypto/dkg/dkg_test.go index 8c911f3..f1e4b88 100644 --- a/core/crypto/dkg/dkg_test.go +++ b/core/crypto/dkg/dkg_test.go @@ -25,12 +25,12 @@ import ( "sync" "testing" - "github.com/byzantine-lab/bls/ffi/go/bls" - "github.com/byzantine-lab/go-tangerine/rlp" "github.com/stretchr/testify/suite" + "github.com/tangerine-network/bls/ffi/go/bls" + "github.com/tangerine-network/go-tangerine/rlp" - "gitlab.com/byzantine-lab/tangerine-consensus/common" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto" + "github.com/tangerine-network/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/core/crypto" ) type DKGTestSuite struct { diff --git a/core/crypto/dkg/utils.go b/core/crypto/dkg/utils.go index 3f9c123..2956582 100644 --- a/core/crypto/dkg/utils.go +++ b/core/crypto/dkg/utils.go @@ -22,9 +22,9 @@ import ( "fmt" "math/rand" - "github.com/byzantine-lab/bls/ffi/go/bls" + "github.com/tangerine-network/bls/ffi/go/bls" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto" + "github.com/tangerine-network/tangerine-consensus/core/crypto" ) // PartialSignature is a partial signature in DKG+TSIG protocol. diff --git a/core/crypto/ecdsa/ecdsa.go b/core/crypto/ecdsa/ecdsa.go index 8ac335d..924b1ba 100644 --- a/core/crypto/ecdsa/ecdsa.go +++ b/core/crypto/ecdsa/ecdsa.go @@ -20,10 +20,10 @@ package ecdsa import ( "crypto/ecdsa" - dexCrypto "github.com/byzantine-lab/go-tangerine/crypto" + dexCrypto "github.com/tangerine-network/go-tangerine/crypto" - "gitlab.com/byzantine-lab/tangerine-consensus/common" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto" + "github.com/tangerine-network/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/core/crypto" ) const cryptoType = "ecdsa" diff --git a/core/crypto/ecdsa/ecdsa_test.go b/core/crypto/ecdsa/ecdsa_test.go index 58c35ca..1198c04 100644 --- a/core/crypto/ecdsa/ecdsa_test.go +++ b/core/crypto/ecdsa/ecdsa_test.go @@ -20,9 +20,9 @@ package ecdsa import ( "testing" - "gitlab.com/byzantine-lab/tangerine-consensus/common" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto" "github.com/stretchr/testify/suite" + "github.com/tangerine-network/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/core/crypto" ) type ETHCryptoTestSuite struct { diff --git a/core/crypto/interfaces.go b/core/crypto/interfaces.go index 80ed8a9..7eb27d5 100644 --- a/core/crypto/interfaces.go +++ b/core/crypto/interfaces.go @@ -18,7 +18,7 @@ package crypto import ( - "gitlab.com/byzantine-lab/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/common" ) // Signature is the basic signature type in DEXON. diff --git a/core/crypto/utils.go b/core/crypto/utils.go index 303d9d8..9b7c39a 100644 --- a/core/crypto/utils.go +++ b/core/crypto/utils.go @@ -21,9 +21,9 @@ import ( "encoding/hex" "fmt" - "github.com/byzantine-lab/go-tangerine/crypto" + "github.com/tangerine-network/go-tangerine/crypto" - "gitlab.com/byzantine-lab/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/common" ) var ( diff --git a/core/db/interfaces.go b/core/db/interfaces.go index 2b142ee..1eacc81 100644 --- a/core/db/interfaces.go +++ b/core/db/interfaces.go @@ -21,9 +21,9 @@ import ( "errors" "fmt" - "gitlab.com/byzantine-lab/tangerine-consensus/common" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto/dkg" - "gitlab.com/byzantine-lab/tangerine-consensus/core/types" + "github.com/tangerine-network/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/core/crypto/dkg" + "github.com/tangerine-network/tangerine-consensus/core/types" ) var ( diff --git a/core/db/level-db.go b/core/db/level-db.go index 2158220..f06a763 100644 --- a/core/db/level-db.go +++ b/core/db/level-db.go @@ -23,10 +23,10 @@ import ( "github.com/syndtr/goleveldb/leveldb" - "gitlab.com/byzantine-lab/tangerine-consensus/common" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto/dkg" - "gitlab.com/byzantine-lab/tangerine-consensus/core/types" - "github.com/byzantine-lab/go-tangerine/rlp" + "github.com/tangerine-network/go-tangerine/rlp" + "github.com/tangerine-network/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/core/crypto/dkg" + "github.com/tangerine-network/tangerine-consensus/core/types" ) var ( diff --git a/core/db/level-db_test.go b/core/db/level-db_test.go index ffe44e4..44b880c 100644 --- a/core/db/level-db_test.go +++ b/core/db/level-db_test.go @@ -28,10 +28,10 @@ import ( "github.com/stretchr/testify/suite" - "gitlab.com/byzantine-lab/tangerine-consensus/common" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto/dkg" - "gitlab.com/byzantine-lab/tangerine-consensus/core/types" - "github.com/byzantine-lab/go-tangerine/rlp" + "github.com/tangerine-network/go-tangerine/rlp" + "github.com/tangerine-network/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/core/crypto/dkg" + "github.com/tangerine-network/tangerine-consensus/core/types" ) type LevelDBTestSuite struct { diff --git a/core/db/memory.go b/core/db/memory.go index 9491fc3..520a035 100644 --- a/core/db/memory.go +++ b/core/db/memory.go @@ -23,9 +23,9 @@ import ( "os" "sync" - "gitlab.com/byzantine-lab/tangerine-consensus/common" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto/dkg" - "gitlab.com/byzantine-lab/tangerine-consensus/core/types" + "github.com/tangerine-network/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/core/crypto/dkg" + "github.com/tangerine-network/tangerine-consensus/core/types" ) type blockSeqIterator struct { diff --git a/core/db/memory_test.go b/core/db/memory_test.go index 7160247..f44ea35 100644 --- a/core/db/memory_test.go +++ b/core/db/memory_test.go @@ -22,10 +22,10 @@ import ( "os" "testing" - "gitlab.com/byzantine-lab/tangerine-consensus/common" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto/dkg" - "gitlab.com/byzantine-lab/tangerine-consensus/core/types" "github.com/stretchr/testify/suite" + "github.com/tangerine-network/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/core/crypto/dkg" + "github.com/tangerine-network/tangerine-consensus/core/types" ) type MemBackedDBTestSuite struct { diff --git a/core/dkg-tsig-protocol.go b/core/dkg-tsig-protocol.go index 216c695..da7653d 100644 --- a/core/dkg-tsig-protocol.go +++ b/core/dkg-tsig-protocol.go @@ -21,13 +21,13 @@ import ( "fmt" "sync" - "gitlab.com/byzantine-lab/tangerine-consensus/common" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto/dkg" - "gitlab.com/byzantine-lab/tangerine-consensus/core/db" - "gitlab.com/byzantine-lab/tangerine-consensus/core/types" - typesDKG "gitlab.com/byzantine-lab/tangerine-consensus/core/types/dkg" - "gitlab.com/byzantine-lab/tangerine-consensus/core/utils" + "github.com/tangerine-network/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/core/crypto" + "github.com/tangerine-network/tangerine-consensus/core/crypto/dkg" + "github.com/tangerine-network/tangerine-consensus/core/db" + "github.com/tangerine-network/tangerine-consensus/core/types" + typesDKG "github.com/tangerine-network/tangerine-consensus/core/types/dkg" + "github.com/tangerine-network/tangerine-consensus/core/utils" ) // Errors for dkg module. diff --git a/core/dkg-tsig-protocol_test.go b/core/dkg-tsig-protocol_test.go index 873d5bb..7f8bf53 100644 --- a/core/dkg-tsig-protocol_test.go +++ b/core/dkg-tsig-protocol_test.go @@ -22,14 +22,14 @@ import ( "github.com/stretchr/testify/suite" - "gitlab.com/byzantine-lab/tangerine-consensus/common" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto/dkg" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto/ecdsa" - "gitlab.com/byzantine-lab/tangerine-consensus/core/test" - "gitlab.com/byzantine-lab/tangerine-consensus/core/types" - typesDKG "gitlab.com/byzantine-lab/tangerine-consensus/core/types/dkg" - "gitlab.com/byzantine-lab/tangerine-consensus/core/utils" + "github.com/tangerine-network/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/core/crypto" + "github.com/tangerine-network/tangerine-consensus/core/crypto/dkg" + "github.com/tangerine-network/tangerine-consensus/core/crypto/ecdsa" + "github.com/tangerine-network/tangerine-consensus/core/test" + "github.com/tangerine-network/tangerine-consensus/core/types" + typesDKG "github.com/tangerine-network/tangerine-consensus/core/types/dkg" + "github.com/tangerine-network/tangerine-consensus/core/utils" ) type DKGTSIGProtocolTestSuite struct { diff --git a/core/interfaces.go b/core/interfaces.go index 8ec4f62..2798469 100644 --- a/core/interfaces.go +++ b/core/interfaces.go @@ -20,10 +20,10 @@ package core import ( "time" - "gitlab.com/byzantine-lab/tangerine-consensus/common" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto" - "gitlab.com/byzantine-lab/tangerine-consensus/core/types" - typesDKG "gitlab.com/byzantine-lab/tangerine-consensus/core/types/dkg" + "github.com/tangerine-network/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/core/crypto" + "github.com/tangerine-network/tangerine-consensus/core/types" + typesDKG "github.com/tangerine-network/tangerine-consensus/core/types/dkg" ) // Application describes the application interface that interacts with DEXON diff --git a/core/leader-selector.go b/core/leader-selector.go index c52064a..1fcb214 100644 --- a/core/leader-selector.go +++ b/core/leader-selector.go @@ -21,9 +21,9 @@ import ( "math/big" "sync" - "gitlab.com/byzantine-lab/tangerine-consensus/common" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto" - "gitlab.com/byzantine-lab/tangerine-consensus/core/types" + "github.com/tangerine-network/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/core/crypto" + "github.com/tangerine-network/tangerine-consensus/core/types" ) type validLeaderFn func(block *types.Block, crs common.Hash) (bool, error) diff --git a/core/leader-selector_test.go b/core/leader-selector_test.go index d7471d9..c26c6ce 100644 --- a/core/leader-selector_test.go +++ b/core/leader-selector_test.go @@ -22,10 +22,10 @@ import ( "github.com/stretchr/testify/suite" - "gitlab.com/byzantine-lab/tangerine-consensus/common" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto/ecdsa" - "gitlab.com/byzantine-lab/tangerine-consensus/core/types" - "gitlab.com/byzantine-lab/tangerine-consensus/core/utils" + "github.com/tangerine-network/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/core/crypto/ecdsa" + "github.com/tangerine-network/tangerine-consensus/core/types" + "github.com/tangerine-network/tangerine-consensus/core/utils" ) type LeaderSelectorTestSuite struct { diff --git a/core/nonblocking.go b/core/nonblocking.go index 1aee401..860464c 100644 --- a/core/nonblocking.go +++ b/core/nonblocking.go @@ -21,8 +21,8 @@ import ( "fmt" "sync" - "gitlab.com/byzantine-lab/tangerine-consensus/common" - "gitlab.com/byzantine-lab/tangerine-consensus/core/types" + "github.com/tangerine-network/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/core/types" ) type blockConfirmedEvent struct { diff --git a/core/nonblocking_test.go b/core/nonblocking_test.go index 73b6f50..b44abc7 100644 --- a/core/nonblocking_test.go +++ b/core/nonblocking_test.go @@ -23,8 +23,8 @@ import ( "github.com/stretchr/testify/suite" - "gitlab.com/byzantine-lab/tangerine-consensus/common" - "gitlab.com/byzantine-lab/tangerine-consensus/core/types" + "github.com/tangerine-network/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/core/types" ) // slowApp is an Application instance slow things down in every method. diff --git a/core/syncer/agreement.go b/core/syncer/agreement.go index 0bb0637..c20bd60 100644 --- a/core/syncer/agreement.go +++ b/core/syncer/agreement.go @@ -23,11 +23,11 @@ import ( "fmt" "time" - "gitlab.com/byzantine-lab/tangerine-consensus/common" - "gitlab.com/byzantine-lab/tangerine-consensus/core" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto" - "gitlab.com/byzantine-lab/tangerine-consensus/core/types" - "gitlab.com/byzantine-lab/tangerine-consensus/core/utils" + "github.com/tangerine-network/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/core" + "github.com/tangerine-network/tangerine-consensus/core/crypto" + "github.com/tangerine-network/tangerine-consensus/core/types" + "github.com/tangerine-network/tangerine-consensus/core/utils" ) // Struct agreement implements struct of BA (Byzantine Agreement) protocol diff --git a/core/syncer/consensus.go b/core/syncer/consensus.go index 9fc02af..ecadae4 100644 --- a/core/syncer/consensus.go +++ b/core/syncer/consensus.go @@ -24,12 +24,12 @@ import ( "sync" "time" - "gitlab.com/byzantine-lab/tangerine-consensus/common" - "gitlab.com/byzantine-lab/tangerine-consensus/core" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto" - "gitlab.com/byzantine-lab/tangerine-consensus/core/db" - "gitlab.com/byzantine-lab/tangerine-consensus/core/types" - "gitlab.com/byzantine-lab/tangerine-consensus/core/utils" + "github.com/tangerine-network/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/core" + "github.com/tangerine-network/tangerine-consensus/core/crypto" + "github.com/tangerine-network/tangerine-consensus/core/db" + "github.com/tangerine-network/tangerine-consensus/core/types" + "github.com/tangerine-network/tangerine-consensus/core/utils" ) var ( diff --git a/core/syncer/watch-cat.go b/core/syncer/watch-cat.go index 5f06499..ce2b05c 100644 --- a/core/syncer/watch-cat.go +++ b/core/syncer/watch-cat.go @@ -21,10 +21,10 @@ import ( "context" "time" - "gitlab.com/byzantine-lab/tangerine-consensus/common" - "gitlab.com/byzantine-lab/tangerine-consensus/core" - "gitlab.com/byzantine-lab/tangerine-consensus/core/types" - "gitlab.com/byzantine-lab/tangerine-consensus/core/utils" + "github.com/tangerine-network/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/core" + "github.com/tangerine-network/tangerine-consensus/core/types" + "github.com/tangerine-network/tangerine-consensus/core/utils" ) type configReader interface { diff --git a/core/syncer/watch-cat_test.go b/core/syncer/watch-cat_test.go index 1ceb620..ee2911e 100644 --- a/core/syncer/watch-cat_test.go +++ b/core/syncer/watch-cat_test.go @@ -23,8 +23,8 @@ import ( "github.com/stretchr/testify/suite" - "gitlab.com/byzantine-lab/tangerine-consensus/common" - "gitlab.com/byzantine-lab/tangerine-consensus/core/types" + "github.com/tangerine-network/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/core/types" ) type WatchCatTestSuite struct { diff --git a/core/test/app.go b/core/test/app.go index b5162f9..0330278 100644 --- a/core/test/app.go +++ b/core/test/app.go @@ -23,9 +23,9 @@ import ( "sync" "time" - "gitlab.com/byzantine-lab/tangerine-consensus/common" - "gitlab.com/byzantine-lab/tangerine-consensus/core/types" - "gitlab.com/byzantine-lab/tangerine-consensus/core/utils" + "github.com/tangerine-network/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/core/types" + "github.com/tangerine-network/tangerine-consensus/core/utils" ) var ( diff --git a/core/test/app_test.go b/core/test/app_test.go index 3d1eb57..5310c1b 100644 --- a/core/test/app_test.go +++ b/core/test/app_test.go @@ -24,14 +24,14 @@ import ( "testing" "time" - "gitlab.com/byzantine-lab/tangerine-consensus/common" - "gitlab.com/byzantine-lab/tangerine-consensus/core" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto/dkg" - "gitlab.com/byzantine-lab/tangerine-consensus/core/types" - typesDKG "gitlab.com/byzantine-lab/tangerine-consensus/core/types/dkg" - "gitlab.com/byzantine-lab/tangerine-consensus/core/utils" "github.com/stretchr/testify/suite" + "github.com/tangerine-network/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/core" + "github.com/tangerine-network/tangerine-consensus/core/crypto" + "github.com/tangerine-network/tangerine-consensus/core/crypto/dkg" + "github.com/tangerine-network/tangerine-consensus/core/types" + typesDKG "github.com/tangerine-network/tangerine-consensus/core/types/dkg" + "github.com/tangerine-network/tangerine-consensus/core/utils" ) func getCRS(round, reset uint64) []byte { diff --git a/core/test/block-revealer.go b/core/test/block-revealer.go index c1def76..1208d2c 100644 --- a/core/test/block-revealer.go +++ b/core/test/block-revealer.go @@ -21,9 +21,9 @@ import ( "errors" "sort" - "gitlab.com/byzantine-lab/tangerine-consensus/common" - "gitlab.com/byzantine-lab/tangerine-consensus/core/db" - "gitlab.com/byzantine-lab/tangerine-consensus/core/types" + "github.com/tangerine-network/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/core/db" + "github.com/tangerine-network/tangerine-consensus/core/types" ) // Errors returns from block-revealer. diff --git a/core/test/block-revealer_test.go b/core/test/block-revealer_test.go index 432d69c..7ae42bf 100644 --- a/core/test/block-revealer_test.go +++ b/core/test/block-revealer_test.go @@ -20,10 +20,10 @@ package test import ( "testing" - "gitlab.com/byzantine-lab/tangerine-consensus/common" - "gitlab.com/byzantine-lab/tangerine-consensus/core/db" - "gitlab.com/byzantine-lab/tangerine-consensus/core/types" "github.com/stretchr/testify/suite" + "github.com/tangerine-network/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/core/db" + "github.com/tangerine-network/tangerine-consensus/core/types" ) type BlockRevealerTestSuite struct { diff --git a/core/test/fake-transport.go b/core/test/fake-transport.go index 45c7889..345b492 100644 --- a/core/test/fake-transport.go +++ b/core/test/fake-transport.go @@ -21,8 +21,8 @@ import ( "fmt" "time" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto" - "gitlab.com/byzantine-lab/tangerine-consensus/core/types" + "github.com/tangerine-network/tangerine-consensus/core/crypto" + "github.com/tangerine-network/tangerine-consensus/core/types" ) type fakePeerRecord struct { diff --git a/core/test/governance.go b/core/test/governance.go index 553e0d5..59e0937 100644 --- a/core/test/governance.go +++ b/core/test/governance.go @@ -25,11 +25,11 @@ import ( "sort" "sync" - "gitlab.com/byzantine-lab/tangerine-consensus/common" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto/ecdsa" - "gitlab.com/byzantine-lab/tangerine-consensus/core/types" - typesDKG "gitlab.com/byzantine-lab/tangerine-consensus/core/types/dkg" + "github.com/tangerine-network/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/core/crypto" + "github.com/tangerine-network/tangerine-consensus/core/crypto/ecdsa" + "github.com/tangerine-network/tangerine-consensus/core/types" + typesDKG "github.com/tangerine-network/tangerine-consensus/core/types/dkg" ) // TODO(mission): add a method to compare config/crs between governance diff --git a/core/test/governance_test.go b/core/test/governance_test.go index 29556c2..694dce8 100644 --- a/core/test/governance_test.go +++ b/core/test/governance_test.go @@ -21,13 +21,13 @@ import ( "testing" "time" - "gitlab.com/byzantine-lab/tangerine-consensus/common" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto/dkg" - "gitlab.com/byzantine-lab/tangerine-consensus/core/types" - typesDKG "gitlab.com/byzantine-lab/tangerine-consensus/core/types/dkg" - "gitlab.com/byzantine-lab/tangerine-consensus/core/utils" "github.com/stretchr/testify/suite" + "github.com/tangerine-network/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/core/crypto" + "github.com/tangerine-network/tangerine-consensus/core/crypto/dkg" + "github.com/tangerine-network/tangerine-consensus/core/types" + typesDKG "github.com/tangerine-network/tangerine-consensus/core/types/dkg" + "github.com/tangerine-network/tangerine-consensus/core/utils" ) type GovernanceTestSuite struct { diff --git a/core/test/interface.go b/core/test/interface.go index b8b0ad4..2face73 100644 --- a/core/test/interface.go +++ b/core/test/interface.go @@ -20,9 +20,9 @@ package test import ( "time" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto" - "gitlab.com/byzantine-lab/tangerine-consensus/core/db" - "gitlab.com/byzantine-lab/tangerine-consensus/core/types" + "github.com/tangerine-network/tangerine-consensus/core/crypto" + "github.com/tangerine-network/tangerine-consensus/core/db" + "github.com/tangerine-network/tangerine-consensus/core/types" ) // BlockRevealer defines the interface to reveal a group diff --git a/core/test/marshaller.go b/core/test/marshaller.go index e63b4f7..d098ec0 100644 --- a/core/test/marshaller.go +++ b/core/test/marshaller.go @@ -21,8 +21,8 @@ import ( "encoding/json" "fmt" - "gitlab.com/byzantine-lab/tangerine-consensus/core/types" - typesDKG "gitlab.com/byzantine-lab/tangerine-consensus/core/types/dkg" + "github.com/tangerine-network/tangerine-consensus/core/types" + typesDKG "github.com/tangerine-network/tangerine-consensus/core/types/dkg" ) // DefaultMarshaller is the default marshaller for testing core.Consensus. diff --git a/core/test/network.go b/core/test/network.go index b075389..3a1ea03 100644 --- a/core/test/network.go +++ b/core/test/network.go @@ -27,11 +27,11 @@ import ( "sync" "time" - "gitlab.com/byzantine-lab/tangerine-consensus/common" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto" - "gitlab.com/byzantine-lab/tangerine-consensus/core/types" - typesDKG "gitlab.com/byzantine-lab/tangerine-consensus/core/types/dkg" - "gitlab.com/byzantine-lab/tangerine-consensus/core/utils" + "github.com/tangerine-network/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/core/crypto" + "github.com/tangerine-network/tangerine-consensus/core/types" + typesDKG "github.com/tangerine-network/tangerine-consensus/core/types/dkg" + "github.com/tangerine-network/tangerine-consensus/core/utils" ) const ( diff --git a/core/test/network_test.go b/core/test/network_test.go index 8e93e82..a6c0f13 100644 --- a/core/test/network_test.go +++ b/core/test/network_test.go @@ -25,12 +25,12 @@ import ( "testing" "time" - "gitlab.com/byzantine-lab/tangerine-consensus/common" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto" - "gitlab.com/byzantine-lab/tangerine-consensus/core/types" - typesDKG "gitlab.com/byzantine-lab/tangerine-consensus/core/types/dkg" - "gitlab.com/byzantine-lab/tangerine-consensus/core/utils" "github.com/stretchr/testify/suite" + "github.com/tangerine-network/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/core/crypto" + "github.com/tangerine-network/tangerine-consensus/core/types" + typesDKG "github.com/tangerine-network/tangerine-consensus/core/types/dkg" + "github.com/tangerine-network/tangerine-consensus/core/utils" ) type NetworkTestSuite struct { diff --git a/core/test/state-change-request.go b/core/test/state-change-request.go index fe31186..5858b3d 100644 --- a/core/test/state-change-request.go +++ b/core/test/state-change-request.go @@ -21,11 +21,11 @@ import ( "fmt" "time" - "gitlab.com/byzantine-lab/tangerine-consensus/common" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto" - "gitlab.com/byzantine-lab/tangerine-consensus/core/types" - typesDKG "gitlab.com/byzantine-lab/tangerine-consensus/core/types/dkg" - "github.com/byzantine-lab/go-tangerine/rlp" + "github.com/tangerine-network/go-tangerine/rlp" + "github.com/tangerine-network/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/core/crypto" + "github.com/tangerine-network/tangerine-consensus/core/types" + typesDKG "github.com/tangerine-network/tangerine-consensus/core/types/dkg" ) // StateChangeType is the type of state change request. diff --git a/core/test/state-change-request_test.go b/core/test/state-change-request_test.go index 225d4cd..1f38090 100644 --- a/core/test/state-change-request_test.go +++ b/core/test/state-change-request_test.go @@ -20,8 +20,8 @@ package test import ( "testing" - typesDKG "gitlab.com/byzantine-lab/tangerine-consensus/core/types/dkg" "github.com/stretchr/testify/suite" + typesDKG "github.com/tangerine-network/tangerine-consensus/core/types/dkg" ) type StateChangeRequestTestSuite struct { diff --git a/core/test/state.go b/core/test/state.go index 0cb1942..8c4ba66 100644 --- a/core/test/state.go +++ b/core/test/state.go @@ -24,12 +24,12 @@ import ( "sync" "time" - "gitlab.com/byzantine-lab/tangerine-consensus/common" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto/ecdsa" - "gitlab.com/byzantine-lab/tangerine-consensus/core/types" - typesDKG "gitlab.com/byzantine-lab/tangerine-consensus/core/types/dkg" - "github.com/byzantine-lab/go-tangerine/rlp" + "github.com/tangerine-network/go-tangerine/rlp" + "github.com/tangerine-network/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/core/crypto" + "github.com/tangerine-network/tangerine-consensus/core/crypto/ecdsa" + "github.com/tangerine-network/tangerine-consensus/core/types" + typesDKG "github.com/tangerine-network/tangerine-consensus/core/types/dkg" ) var ( diff --git a/core/test/state_test.go b/core/test/state_test.go index a1d67fd..1c1ae77 100644 --- a/core/test/state_test.go +++ b/core/test/state_test.go @@ -22,14 +22,14 @@ import ( "testing" "time" - "gitlab.com/byzantine-lab/tangerine-consensus/common" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto/dkg" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto/ecdsa" - "gitlab.com/byzantine-lab/tangerine-consensus/core/types" - typesDKG "gitlab.com/byzantine-lab/tangerine-consensus/core/types/dkg" - "gitlab.com/byzantine-lab/tangerine-consensus/core/utils" "github.com/stretchr/testify/suite" + "github.com/tangerine-network/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/core/crypto" + "github.com/tangerine-network/tangerine-consensus/core/crypto/dkg" + "github.com/tangerine-network/tangerine-consensus/core/crypto/ecdsa" + "github.com/tangerine-network/tangerine-consensus/core/types" + typesDKG "github.com/tangerine-network/tangerine-consensus/core/types/dkg" + "github.com/tangerine-network/tangerine-consensus/core/utils" ) type StateTestSuite struct { diff --git a/core/test/tcp-transport.go b/core/test/tcp-transport.go index 7bb10c5..cfcca37 100644 --- a/core/test/tcp-transport.go +++ b/core/test/tcp-transport.go @@ -34,11 +34,11 @@ import ( "syscall" "time" - "gitlab.com/byzantine-lab/tangerine-consensus/common" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto/ecdsa" - "gitlab.com/byzantine-lab/tangerine-consensus/core/types" - "gitlab.com/byzantine-lab/tangerine-consensus/core/types/dkg" + "github.com/tangerine-network/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/core/crypto" + "github.com/tangerine-network/tangerine-consensus/core/crypto/ecdsa" + "github.com/tangerine-network/tangerine-consensus/core/types" + "github.com/tangerine-network/tangerine-consensus/core/types/dkg" ) const ( diff --git a/core/test/transport_test.go b/core/test/transport_test.go index e2c64c8..c5dce7c 100644 --- a/core/test/transport_test.go +++ b/core/test/transport_test.go @@ -26,9 +26,9 @@ import ( "testing" "time" - "gitlab.com/byzantine-lab/tangerine-consensus/common" - "gitlab.com/byzantine-lab/tangerine-consensus/core/types" "github.com/stretchr/testify/suite" + "github.com/tangerine-network/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/core/types" ) type testPeer struct { diff --git a/core/test/utils.go b/core/test/utils.go index 856bc80..c2a22b1 100644 --- a/core/test/utils.go +++ b/core/test/utils.go @@ -24,13 +24,13 @@ import ( "net" "time" - "gitlab.com/byzantine-lab/tangerine-consensus/common" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto/ecdsa" - "gitlab.com/byzantine-lab/tangerine-consensus/core/db" - "gitlab.com/byzantine-lab/tangerine-consensus/core/types" - typesDKG "gitlab.com/byzantine-lab/tangerine-consensus/core/types/dkg" - "github.com/byzantine-lab/go-tangerine/rlp" + "github.com/tangerine-network/go-tangerine/rlp" + "github.com/tangerine-network/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/core/crypto" + "github.com/tangerine-network/tangerine-consensus/core/crypto/ecdsa" + "github.com/tangerine-network/tangerine-consensus/core/db" + "github.com/tangerine-network/tangerine-consensus/core/types" + typesDKG "github.com/tangerine-network/tangerine-consensus/core/types/dkg" ) // GenerateRandomNodeIDs generates randomly a slices of types.NodeID. diff --git a/core/ticker.go b/core/ticker.go index 792a276..cbd9c69 100644 --- a/core/ticker.go +++ b/core/ticker.go @@ -23,7 +23,7 @@ import ( "sync" "time" - "gitlab.com/byzantine-lab/tangerine-consensus/core/utils" + "github.com/tangerine-network/tangerine-consensus/core/utils" ) // TickerType is the type of ticker. diff --git a/core/types/block-randomness.go b/core/types/block-randomness.go index 6aaaf86..eaaa2c3 100644 --- a/core/types/block-randomness.go +++ b/core/types/block-randomness.go @@ -21,7 +21,7 @@ import ( "encoding/hex" "fmt" - "gitlab.com/byzantine-lab/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/common" ) // AgreementResult describes an agremeent result. diff --git a/core/types/block.go b/core/types/block.go index d845dd5..4c71d9f 100644 --- a/core/types/block.go +++ b/core/types/block.go @@ -25,10 +25,10 @@ import ( "io" "time" - "github.com/byzantine-lab/go-tangerine/rlp" + "github.com/tangerine-network/go-tangerine/rlp" - "gitlab.com/byzantine-lab/tangerine-consensus/common" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto" + "github.com/tangerine-network/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/core/crypto" ) // GenesisHeight refers to the initial height the genesis block should be. diff --git a/core/types/block_test.go b/core/types/block_test.go index da53494..991ded6 100644 --- a/core/types/block_test.go +++ b/core/types/block_test.go @@ -26,9 +26,9 @@ import ( "github.com/stretchr/testify/suite" - "gitlab.com/byzantine-lab/tangerine-consensus/common" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto" - "github.com/byzantine-lab/go-tangerine/rlp" + "github.com/tangerine-network/go-tangerine/rlp" + "github.com/tangerine-network/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/core/crypto" ) type BlockTestSuite struct { diff --git a/core/types/dkg/dkg.go b/core/types/dkg/dkg.go index cdcd9a0..bc1b19e 100644 --- a/core/types/dkg/dkg.go +++ b/core/types/dkg/dkg.go @@ -23,12 +23,12 @@ import ( "fmt" "io" - "github.com/byzantine-lab/go-tangerine/rlp" + "github.com/tangerine-network/go-tangerine/rlp" - "gitlab.com/byzantine-lab/tangerine-consensus/common" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto" - cryptoDKG "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto/dkg" - "gitlab.com/byzantine-lab/tangerine-consensus/core/types" + "github.com/tangerine-network/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/core/crypto" + cryptoDKG "github.com/tangerine-network/tangerine-consensus/core/crypto/dkg" + "github.com/tangerine-network/tangerine-consensus/core/types" ) // Errors for typesDKG package. diff --git a/core/types/dkg/dkg_test.go b/core/types/dkg/dkg_test.go index 9a6f5a8..ab271e2 100644 --- a/core/types/dkg/dkg_test.go +++ b/core/types/dkg/dkg_test.go @@ -24,11 +24,11 @@ import ( "github.com/stretchr/testify/suite" - "gitlab.com/byzantine-lab/tangerine-consensus/common" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto" - cryptoDKG "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto/dkg" - "gitlab.com/byzantine-lab/tangerine-consensus/core/types" - "github.com/byzantine-lab/go-tangerine/rlp" + "github.com/tangerine-network/go-tangerine/rlp" + "github.com/tangerine-network/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/core/crypto" + cryptoDKG "github.com/tangerine-network/tangerine-consensus/core/crypto/dkg" + "github.com/tangerine-network/tangerine-consensus/core/types" ) type DKGTestSuite struct { diff --git a/core/types/node.go b/core/types/node.go index b914b4a..74db07c 100644 --- a/core/types/node.go +++ b/core/types/node.go @@ -21,8 +21,8 @@ import ( "bytes" "encoding/hex" - "gitlab.com/byzantine-lab/tangerine-consensus/common" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto" + "github.com/tangerine-network/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/core/crypto" ) // NodeID is the ID type for nodes. diff --git a/core/types/nodeset.go b/core/types/nodeset.go index 6ab4d6b..6dc338b 100644 --- a/core/types/nodeset.go +++ b/core/types/nodeset.go @@ -22,8 +22,8 @@ import ( "encoding/binary" "math/big" - "gitlab.com/byzantine-lab/tangerine-consensus/common" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto" + "github.com/tangerine-network/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/core/crypto" ) // NodeSet is the node set structure as defined in DEXON consensus core. diff --git a/core/types/nodeset_test.go b/core/types/nodeset_test.go index 0eb5e50..375dd8f 100644 --- a/core/types/nodeset_test.go +++ b/core/types/nodeset_test.go @@ -20,8 +20,8 @@ package types import ( "testing" - "gitlab.com/byzantine-lab/tangerine-consensus/common" "github.com/stretchr/testify/suite" + "github.com/tangerine-network/tangerine-consensus/common" ) type NodeSetTestSuite struct { diff --git a/core/types/vote.go b/core/types/vote.go index b538c8c..0150645 100644 --- a/core/types/vote.go +++ b/core/types/vote.go @@ -20,9 +20,9 @@ package types import ( "fmt" - "gitlab.com/byzantine-lab/tangerine-consensus/common" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto" - cryptoDKG "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto/dkg" + "github.com/tangerine-network/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/core/crypto" + cryptoDKG "github.com/tangerine-network/tangerine-consensus/core/crypto/dkg" ) // VoteType is the type of vote. diff --git a/core/utils.go b/core/utils.go index c8b05b0..373c559 100644 --- a/core/utils.go +++ b/core/utils.go @@ -25,10 +25,10 @@ import ( "sort" "time" - "gitlab.com/byzantine-lab/tangerine-consensus/common" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto" - "gitlab.com/byzantine-lab/tangerine-consensus/core/types" - "gitlab.com/byzantine-lab/tangerine-consensus/core/utils" + "github.com/tangerine-network/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/core/crypto" + "github.com/tangerine-network/tangerine-consensus/core/types" + "github.com/tangerine-network/tangerine-consensus/core/utils" ) // Errors for utils. diff --git a/core/utils/crypto.go b/core/utils/crypto.go index fe07f46..1f85e94 100644 --- a/core/utils/crypto.go +++ b/core/utils/crypto.go @@ -21,10 +21,10 @@ import ( "bytes" "encoding/binary" - "gitlab.com/byzantine-lab/tangerine-consensus/common" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto" - "gitlab.com/byzantine-lab/tangerine-consensus/core/types" - typesDKG "gitlab.com/byzantine-lab/tangerine-consensus/core/types/dkg" + "github.com/tangerine-network/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/core/crypto" + "github.com/tangerine-network/tangerine-consensus/core/types" + typesDKG "github.com/tangerine-network/tangerine-consensus/core/types/dkg" ) func hashWitness(witness *types.Witness) (common.Hash, error) { diff --git a/core/utils/crypto_test.go b/core/utils/crypto_test.go index 6df653d..f6139da 100644 --- a/core/utils/crypto_test.go +++ b/core/utils/crypto_test.go @@ -21,13 +21,13 @@ import ( "testing" "time" - "gitlab.com/byzantine-lab/tangerine-consensus/common" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto/dkg" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto/ecdsa" - "gitlab.com/byzantine-lab/tangerine-consensus/core/types" - typesDKG "gitlab.com/byzantine-lab/tangerine-consensus/core/types/dkg" "github.com/stretchr/testify/suite" + "github.com/tangerine-network/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/core/crypto" + "github.com/tangerine-network/tangerine-consensus/core/crypto/dkg" + "github.com/tangerine-network/tangerine-consensus/core/crypto/ecdsa" + "github.com/tangerine-network/tangerine-consensus/core/types" + typesDKG "github.com/tangerine-network/tangerine-consensus/core/types/dkg" ) type CryptoTestSuite struct { diff --git a/core/utils/nodeset-cache.go b/core/utils/nodeset-cache.go index 5ce8f93..cfb4b07 100644 --- a/core/utils/nodeset-cache.go +++ b/core/utils/nodeset-cache.go @@ -21,9 +21,9 @@ import ( "errors" "sync" - "gitlab.com/byzantine-lab/tangerine-consensus/common" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto" - "gitlab.com/byzantine-lab/tangerine-consensus/core/types" + "github.com/tangerine-network/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/core/crypto" + "github.com/tangerine-network/tangerine-consensus/core/types" ) var ( diff --git a/core/utils/nodeset-cache_test.go b/core/utils/nodeset-cache_test.go index 0d15123..5d20582 100644 --- a/core/utils/nodeset-cache_test.go +++ b/core/utils/nodeset-cache_test.go @@ -21,11 +21,11 @@ import ( "testing" "time" - "gitlab.com/byzantine-lab/tangerine-consensus/common" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto/ecdsa" - "gitlab.com/byzantine-lab/tangerine-consensus/core/types" "github.com/stretchr/testify/suite" + "github.com/tangerine-network/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/core/crypto" + "github.com/tangerine-network/tangerine-consensus/core/crypto/ecdsa" + "github.com/tangerine-network/tangerine-consensus/core/types" ) type nsIntf struct { diff --git a/core/utils/penalty-helper.go b/core/utils/penalty-helper.go index 74d2808..b1789f0 100644 --- a/core/utils/penalty-helper.go +++ b/core/utils/penalty-helper.go @@ -20,8 +20,8 @@ package utils import ( "errors" - "gitlab.com/byzantine-lab/tangerine-consensus/core/types" - typesDKG "gitlab.com/byzantine-lab/tangerine-consensus/core/types/dkg" + "github.com/tangerine-network/tangerine-consensus/core/types" + typesDKG "github.com/tangerine-network/tangerine-consensus/core/types/dkg" ) var ( diff --git a/core/utils/penalty-helper_test.go b/core/utils/penalty-helper_test.go index b5528a4..b661943 100644 --- a/core/utils/penalty-helper_test.go +++ b/core/utils/penalty-helper_test.go @@ -22,12 +22,12 @@ import ( "github.com/stretchr/testify/suite" - "gitlab.com/byzantine-lab/tangerine-consensus/common" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto/dkg" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto/ecdsa" - "gitlab.com/byzantine-lab/tangerine-consensus/core/types" - typesDKG "gitlab.com/byzantine-lab/tangerine-consensus/core/types/dkg" + "github.com/tangerine-network/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/core/crypto" + "github.com/tangerine-network/tangerine-consensus/core/crypto/dkg" + "github.com/tangerine-network/tangerine-consensus/core/crypto/ecdsa" + "github.com/tangerine-network/tangerine-consensus/core/types" + typesDKG "github.com/tangerine-network/tangerine-consensus/core/types/dkg" ) type PenaltyHelperTestSuite struct { diff --git a/core/utils/round-based-config.go b/core/utils/round-based-config.go index 31f4416..83ffaca 100644 --- a/core/utils/round-based-config.go +++ b/core/utils/round-based-config.go @@ -20,7 +20,7 @@ package utils import ( "fmt" - "gitlab.com/byzantine-lab/tangerine-consensus/core/types" + "github.com/tangerine-network/tangerine-consensus/core/types" ) // RoundBasedConfig is based config for rounds and provide boundary checking diff --git a/core/utils/round-based-config_test.go b/core/utils/round-based-config_test.go index a4b27b8..7a57df4 100644 --- a/core/utils/round-based-config_test.go +++ b/core/utils/round-based-config_test.go @@ -20,8 +20,8 @@ package utils import ( "testing" - "gitlab.com/byzantine-lab/tangerine-consensus/core/types" "github.com/stretchr/testify/suite" + "github.com/tangerine-network/tangerine-consensus/core/types" ) type RoundBasedConfigTestSuite struct { diff --git a/core/utils/round-event.go b/core/utils/round-event.go index 35a2fe4..67850a7 100644 --- a/core/utils/round-event.go +++ b/core/utils/round-event.go @@ -22,9 +22,9 @@ import ( "fmt" "sync" - "gitlab.com/byzantine-lab/tangerine-consensus/common" - "gitlab.com/byzantine-lab/tangerine-consensus/core/types" - typesDKG "gitlab.com/byzantine-lab/tangerine-consensus/core/types/dkg" + "github.com/tangerine-network/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/core/types" + typesDKG "github.com/tangerine-network/tangerine-consensus/core/types/dkg" ) // ErrUnmatchedBlockHeightWithConfig is for invalid parameters for NewRoundEvent. diff --git a/core/utils/signer.go b/core/utils/signer.go index 9a0c83a..bb0a25a 100644 --- a/core/utils/signer.go +++ b/core/utils/signer.go @@ -20,10 +20,10 @@ package utils import ( "errors" - "gitlab.com/byzantine-lab/tangerine-consensus/common" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto" - "gitlab.com/byzantine-lab/tangerine-consensus/core/types" - typesDKG "gitlab.com/byzantine-lab/tangerine-consensus/core/types/dkg" + "github.com/tangerine-network/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/core/crypto" + "github.com/tangerine-network/tangerine-consensus/core/types" + typesDKG "github.com/tangerine-network/tangerine-consensus/core/types/dkg" ) // Errors for signer. diff --git a/core/utils/signer_test.go b/core/utils/signer_test.go index 3823861..9d7c3f6 100644 --- a/core/utils/signer_test.go +++ b/core/utils/signer_test.go @@ -21,10 +21,10 @@ import ( "testing" "time" - "gitlab.com/byzantine-lab/tangerine-consensus/common" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto/ecdsa" - "gitlab.com/byzantine-lab/tangerine-consensus/core/types" "github.com/stretchr/testify/suite" + "github.com/tangerine-network/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/core/crypto/ecdsa" + "github.com/tangerine-network/tangerine-consensus/core/types" ) type SignerTestSuite struct { diff --git a/core/utils/utils.go b/core/utils/utils.go index 1d650bf..ec293f2 100644 --- a/core/utils/utils.go +++ b/core/utils/utils.go @@ -21,9 +21,9 @@ import ( "context" "fmt" - "gitlab.com/byzantine-lab/tangerine-consensus/common" - "gitlab.com/byzantine-lab/tangerine-consensus/core/types" - typesDKG "gitlab.com/byzantine-lab/tangerine-consensus/core/types/dkg" + "github.com/tangerine-network/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/core/types" + typesDKG "github.com/tangerine-network/tangerine-consensus/core/types/dkg" ) var dkgDelayRound uint64 diff --git a/core/utils/utils_test.go b/core/utils/utils_test.go index a4157fc..7621b74 100644 --- a/core/utils/utils_test.go +++ b/core/utils/utils_test.go @@ -24,11 +24,11 @@ import ( "github.com/stretchr/testify/suite" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto/dkg" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto/ecdsa" - "gitlab.com/byzantine-lab/tangerine-consensus/core/types" - typesDKG "gitlab.com/byzantine-lab/tangerine-consensus/core/types/dkg" + "github.com/tangerine-network/tangerine-consensus/core/crypto" + "github.com/tangerine-network/tangerine-consensus/core/crypto/dkg" + "github.com/tangerine-network/tangerine-consensus/core/crypto/ecdsa" + "github.com/tangerine-network/tangerine-consensus/core/types" + typesDKG "github.com/tangerine-network/tangerine-consensus/core/types/dkg" ) type UtilsTestSuite struct { diff --git a/core/utils/vote-filter.go b/core/utils/vote-filter.go index 62b0349..0a77311 100644 --- a/core/utils/vote-filter.go +++ b/core/utils/vote-filter.go @@ -18,7 +18,7 @@ package utils import ( - "gitlab.com/byzantine-lab/tangerine-consensus/core/types" + "github.com/tangerine-network/tangerine-consensus/core/types" ) // VoteFilter filters votes that are useless for now. diff --git a/core/utils/vote-filter_test.go b/core/utils/vote-filter_test.go index a40a016..06c7d1c 100644 --- a/core/utils/vote-filter_test.go +++ b/core/utils/vote-filter_test.go @@ -22,8 +22,8 @@ import ( "github.com/stretchr/testify/suite" - "gitlab.com/byzantine-lab/tangerine-consensus/common" - "gitlab.com/byzantine-lab/tangerine-consensus/core/types" + "github.com/tangerine-network/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/core/types" ) type VoteFilterTestSuite struct { diff --git a/core/utils_test.go b/core/utils_test.go index 1fc058d..3c3a96d 100644 --- a/core/utils_test.go +++ b/core/utils_test.go @@ -23,10 +23,10 @@ import ( "github.com/stretchr/testify/suite" - "gitlab.com/byzantine-lab/tangerine-consensus/common" - "gitlab.com/byzantine-lab/tangerine-consensus/core/test" - "gitlab.com/byzantine-lab/tangerine-consensus/core/types" - "gitlab.com/byzantine-lab/tangerine-consensus/core/utils" + "github.com/tangerine-network/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/core/test" + "github.com/tangerine-network/tangerine-consensus/core/types" + "github.com/tangerine-network/tangerine-consensus/core/utils" ) type UtilsTestSuite struct { diff --git a/integration_test/byzantine_test.go b/integration_test/byzantine_test.go index 72639f7..fd768d0 100644 --- a/integration_test/byzantine_test.go +++ b/integration_test/byzantine_test.go @@ -27,13 +27,13 @@ import ( "time" "github.com/stretchr/testify/suite" - "gitlab.com/byzantine-lab/tangerine-consensus/common" - "gitlab.com/byzantine-lab/tangerine-consensus/core" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto" - "gitlab.com/byzantine-lab/tangerine-consensus/core/db" - "gitlab.com/byzantine-lab/tangerine-consensus/core/test" - "gitlab.com/byzantine-lab/tangerine-consensus/core/types" - "gitlab.com/byzantine-lab/tangerine-consensus/core/utils" + "github.com/tangerine-network/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/core" + "github.com/tangerine-network/tangerine-consensus/core/crypto" + "github.com/tangerine-network/tangerine-consensus/core/db" + "github.com/tangerine-network/tangerine-consensus/core/test" + "github.com/tangerine-network/tangerine-consensus/core/types" + "github.com/tangerine-network/tangerine-consensus/core/utils" ) // There is no scheduler in these tests, we need to wait a long period to make diff --git a/integration_test/consensus_test.go b/integration_test/consensus_test.go index 2fc60b9..062d514 100644 --- a/integration_test/consensus_test.go +++ b/integration_test/consensus_test.go @@ -27,14 +27,14 @@ import ( "time" "github.com/stretchr/testify/suite" - "gitlab.com/byzantine-lab/tangerine-consensus/common" - "gitlab.com/byzantine-lab/tangerine-consensus/core" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto" - "gitlab.com/byzantine-lab/tangerine-consensus/core/db" - "gitlab.com/byzantine-lab/tangerine-consensus/core/syncer" - "gitlab.com/byzantine-lab/tangerine-consensus/core/test" - "gitlab.com/byzantine-lab/tangerine-consensus/core/types" - "gitlab.com/byzantine-lab/tangerine-consensus/core/utils" + "github.com/tangerine-network/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/core" + "github.com/tangerine-network/tangerine-consensus/core/crypto" + "github.com/tangerine-network/tangerine-consensus/core/db" + "github.com/tangerine-network/tangerine-consensus/core/syncer" + "github.com/tangerine-network/tangerine-consensus/core/test" + "github.com/tangerine-network/tangerine-consensus/core/types" + "github.com/tangerine-network/tangerine-consensus/core/utils" ) // There is no scheduler in these tests, we need to wait a long period to make diff --git a/integration_test/round-event_test.go b/integration_test/round-event_test.go index 03b84fa..006daf1 100644 --- a/integration_test/round-event_test.go +++ b/integration_test/round-event_test.go @@ -23,15 +23,15 @@ import ( "testing" "time" - "gitlab.com/byzantine-lab/tangerine-consensus/common" - "gitlab.com/byzantine-lab/tangerine-consensus/core" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto/dkg" - "gitlab.com/byzantine-lab/tangerine-consensus/core/test" - "gitlab.com/byzantine-lab/tangerine-consensus/core/types" - typesDKG "gitlab.com/byzantine-lab/tangerine-consensus/core/types/dkg" - "gitlab.com/byzantine-lab/tangerine-consensus/core/utils" "github.com/stretchr/testify/suite" + "github.com/tangerine-network/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/core" + "github.com/tangerine-network/tangerine-consensus/core/crypto" + "github.com/tangerine-network/tangerine-consensus/core/crypto/dkg" + "github.com/tangerine-network/tangerine-consensus/core/test" + "github.com/tangerine-network/tangerine-consensus/core/types" + typesDKG "github.com/tangerine-network/tangerine-consensus/core/types/dkg" + "github.com/tangerine-network/tangerine-consensus/core/utils" ) func getCRS(round, reset uint64) []byte { diff --git a/simulation/app.go b/simulation/app.go index 6ffbd68..1fe503f 100644 --- a/simulation/app.go +++ b/simulation/app.go @@ -23,9 +23,9 @@ import ( "sync" "time" - "gitlab.com/byzantine-lab/tangerine-consensus/common" - "gitlab.com/byzantine-lab/tangerine-consensus/core/test" - "gitlab.com/byzantine-lab/tangerine-consensus/core/types" + "github.com/tangerine-network/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/core/test" + "github.com/tangerine-network/tangerine-consensus/core/types" ) type timestampEvent string diff --git a/simulation/app_test.go b/simulation/app_test.go index b64d21b..1ad8666 100644 --- a/simulation/app_test.go +++ b/simulation/app_test.go @@ -22,8 +22,8 @@ import ( "github.com/stretchr/testify/suite" - "gitlab.com/byzantine-lab/tangerine-consensus/core" - "gitlab.com/byzantine-lab/tangerine-consensus/core/types" + "github.com/tangerine-network/tangerine-consensus/core" + "github.com/tangerine-network/tangerine-consensus/core/types" ) type SimAppSuite struct { diff --git a/simulation/config/config.go b/simulation/config/config.go index 9cc99db..1917462 100644 --- a/simulation/config/config.go +++ b/simulation/config/config.go @@ -22,9 +22,9 @@ import ( "math" "os" - "gitlab.com/byzantine-lab/tangerine-consensus/core" - "gitlab.com/byzantine-lab/tangerine-consensus/core/test" "github.com/naoina/toml" + "github.com/tangerine-network/tangerine-consensus/core" + "github.com/tangerine-network/tangerine-consensus/core/test" ) // Consensus settings. diff --git a/simulation/config/utils.go b/simulation/config/utils.go index b5fa3b7..c5981eb 100644 --- a/simulation/config/utils.go +++ b/simulation/config/utils.go @@ -21,7 +21,7 @@ import ( "fmt" "strconv" - "gitlab.com/byzantine-lab/tangerine-consensus/core/test" + "github.com/tangerine-network/tangerine-consensus/core/test" ) // StateChangeTypeFromString convert a string to test.StateChangeType. diff --git a/simulation/node.go b/simulation/node.go index 0c2dfa6..34b7b5d 100644 --- a/simulation/node.go +++ b/simulation/node.go @@ -22,13 +22,13 @@ import ( "fmt" "time" - "gitlab.com/byzantine-lab/tangerine-consensus/common" - "gitlab.com/byzantine-lab/tangerine-consensus/core" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto" - "gitlab.com/byzantine-lab/tangerine-consensus/core/db" - "gitlab.com/byzantine-lab/tangerine-consensus/core/test" - "gitlab.com/byzantine-lab/tangerine-consensus/core/types" - "gitlab.com/byzantine-lab/tangerine-consensus/simulation/config" + "github.com/tangerine-network/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/core" + "github.com/tangerine-network/tangerine-consensus/core/crypto" + "github.com/tangerine-network/tangerine-consensus/core/db" + "github.com/tangerine-network/tangerine-consensus/core/test" + "github.com/tangerine-network/tangerine-consensus/core/types" + "github.com/tangerine-network/tangerine-consensus/simulation/config" ) type serverNotification string diff --git a/simulation/peer-server.go b/simulation/peer-server.go index 6c2a5ef..28ce5ed 100644 --- a/simulation/peer-server.go +++ b/simulation/peer-server.go @@ -25,10 +25,10 @@ import ( "sort" "time" - "gitlab.com/byzantine-lab/tangerine-consensus/common" - "gitlab.com/byzantine-lab/tangerine-consensus/core/test" - "gitlab.com/byzantine-lab/tangerine-consensus/core/types" - "gitlab.com/byzantine-lab/tangerine-consensus/simulation/config" + "github.com/tangerine-network/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/core/test" + "github.com/tangerine-network/tangerine-consensus/core/types" + "github.com/tangerine-network/tangerine-consensus/simulation/config" ) // PeerServer is the main object to collect results and monitor simulation. diff --git a/simulation/simulation.go b/simulation/simulation.go index 412e6d0..d271e61 100644 --- a/simulation/simulation.go +++ b/simulation/simulation.go @@ -23,12 +23,12 @@ import ( "os" "sync" - "github.com/byzantine-lab/go-tangerine/log" + "github.com/tangerine-network/go-tangerine/log" - "gitlab.com/byzantine-lab/tangerine-consensus/common" - "gitlab.com/byzantine-lab/tangerine-consensus/core/crypto/ecdsa" - "gitlab.com/byzantine-lab/tangerine-consensus/core/test" - "gitlab.com/byzantine-lab/tangerine-consensus/simulation/config" + "github.com/tangerine-network/tangerine-consensus/common" + "github.com/tangerine-network/tangerine-consensus/core/crypto/ecdsa" + "github.com/tangerine-network/tangerine-consensus/core/test" + "github.com/tangerine-network/tangerine-consensus/simulation/config" ) // Run starts the simulation. diff --git a/simulation/utils.go b/simulation/utils.go index b06fb8b..7f31c84 100644 --- a/simulation/utils.go +++ b/simulation/utils.go @@ -21,8 +21,8 @@ import ( "math" "sort" - "gitlab.com/byzantine-lab/tangerine-consensus/core/test" - "gitlab.com/byzantine-lab/tangerine-consensus/simulation/config" + "github.com/tangerine-network/tangerine-consensus/core/test" + "github.com/tangerine-network/tangerine-consensus/simulation/config" ) func calculateMeanStdDeviationFloat64s(a []float64) (float64, float64) { |