aboutsummaryrefslogtreecommitdiffstats
path: root/dex
diff options
context:
space:
mode:
authorWei-Ning Huang <w@byzantine-lab.io>2019-06-23 15:39:23 +0800
committerWei-Ning Huang <w@byzantine-lab.io>2019-09-17 16:57:30 +0800
commite6f5201b178f40b516ffe7b98757df25f8aee028 (patch)
tree982d6281ac9670d0ad451ca6bbd0677488b52344 /dex
parentf6e06ac35033f9e52b6b2e3ebfe623c23a39c338 (diff)
downloadgo-tangerine-e6f5201b178f40b516ffe7b98757df25f8aee028.tar.gz
go-tangerine-e6f5201b178f40b516ffe7b98757df25f8aee028.tar.zst
go-tangerine-e6f5201b178f40b516ffe7b98757df25f8aee028.zip
import: switch consensus core to gitlab.com/tangerine-network/tangerine-consensus
Diffstat (limited to 'dex')
-rw-r--r--dex/app.go4
-rw-r--r--dex/app_test.go8
-rw-r--r--dex/backend.go2
-rw-r--r--dex/blockproposer.go8
-rw-r--r--dex/cache.go6
-rw-r--r--dex/cache_test.go6
-rw-r--r--dex/db/db.go8
-rw-r--r--dex/downloader/downloader.go2
-rw-r--r--dex/downloader/downloader_test.go5
-rw-r--r--dex/downloader/testchain_test.go4
-rw-r--r--dex/governance.go4
-rw-r--r--dex/handler.go10
-rw-r--r--dex/network.go8
-rw-r--r--dex/peer.go6
-rw-r--r--dex/protocol_test.go10
15 files changed, 45 insertions, 46 deletions
diff --git a/dex/app.go b/dex/app.go
index 8fbc53f82..fb8ffa46d 100644
--- a/dex/app.go
+++ b/dex/app.go
@@ -25,8 +25,8 @@ import (
"sync"
"time"
- coreCommon "github.com/byzantine-lab/dexon-consensus/common"
- coreTypes "github.com/byzantine-lab/dexon-consensus/core/types"
+ coreCommon "github.com/tangerine-network/tangerine-consensus/common"
+ coreTypes "github.com/tangerine-network/tangerine-consensus/core/types"
"github.com/tangerine-network/go-tangerine/common"
"github.com/tangerine-network/go-tangerine/core"
diff --git a/dex/app_test.go b/dex/app_test.go
index 0a25f61f3..22b85b766 100644
--- a/dex/app_test.go
+++ b/dex/app_test.go
@@ -10,10 +10,6 @@ import (
"testing"
"time"
- coreCommon "github.com/byzantine-lab/dexon-consensus/common"
- coreCrypto "github.com/byzantine-lab/dexon-consensus/core/crypto"
- coreEcdsa "github.com/byzantine-lab/dexon-consensus/core/crypto/ecdsa"
- coreTypes "github.com/byzantine-lab/dexon-consensus/core/types"
"github.com/tangerine-network/go-tangerine/common"
"github.com/tangerine-network/go-tangerine/common/math"
"github.com/tangerine-network/go-tangerine/consensus/dexcon"
@@ -25,6 +21,10 @@ import (
"github.com/tangerine-network/go-tangerine/ethdb"
"github.com/tangerine-network/go-tangerine/event"
"github.com/tangerine-network/go-tangerine/rlp"
+ coreCommon "github.com/tangerine-network/tangerine-consensus/common"
+ coreCrypto "github.com/tangerine-network/tangerine-consensus/core/crypto"
+ coreEcdsa "github.com/tangerine-network/tangerine-consensus/core/crypto/ecdsa"
+ coreTypes "github.com/tangerine-network/tangerine-consensus/core/types"
)
type singnal int
diff --git a/dex/backend.go b/dex/backend.go
index 68783864c..c76b9af85 100644
--- a/dex/backend.go
+++ b/dex/backend.go
@@ -21,7 +21,6 @@ import (
"fmt"
"time"
- "github.com/byzantine-lab/dexon-consensus/core/syncer"
"github.com/tangerine-network/go-tangerine/accounts"
"github.com/tangerine-network/go-tangerine/consensus"
"github.com/tangerine-network/go-tangerine/consensus/dexcon"
@@ -41,6 +40,7 @@ import (
"github.com/tangerine-network/go-tangerine/p2p"
"github.com/tangerine-network/go-tangerine/params"
"github.com/tangerine-network/go-tangerine/rpc"
+ "github.com/tangerine-network/tangerine-consensus/core/syncer"
)
// Tangerine implements the DEXON fullnode service.
diff --git a/dex/blockproposer.go b/dex/blockproposer.go
index f280d409e..64873ed21 100644
--- a/dex/blockproposer.go
+++ b/dex/blockproposer.go
@@ -7,10 +7,10 @@ import (
"sync/atomic"
"time"
- dexCore "github.com/byzantine-lab/dexon-consensus/core"
- coreEcdsa "github.com/byzantine-lab/dexon-consensus/core/crypto/ecdsa"
- "github.com/byzantine-lab/dexon-consensus/core/syncer"
- coreTypes "github.com/byzantine-lab/dexon-consensus/core/types"
+ dexCore "github.com/tangerine-network/tangerine-consensus/core"
+ coreEcdsa "github.com/tangerine-network/tangerine-consensus/core/crypto/ecdsa"
+ "github.com/tangerine-network/tangerine-consensus/core/syncer"
+ coreTypes "github.com/tangerine-network/tangerine-consensus/core/types"
"github.com/tangerine-network/go-tangerine/core"
"github.com/tangerine-network/go-tangerine/dex/db"
diff --git a/dex/cache.go b/dex/cache.go
index a8d246eec..aeabf72f8 100644
--- a/dex/cache.go
+++ b/dex/cache.go
@@ -20,9 +20,9 @@ package dex
import (
"sync"
- coreCommon "github.com/byzantine-lab/dexon-consensus/common"
- coreDb "github.com/byzantine-lab/dexon-consensus/core/db"
- coreTypes "github.com/byzantine-lab/dexon-consensus/core/types"
+ coreCommon "github.com/tangerine-network/tangerine-consensus/common"
+ coreDb "github.com/tangerine-network/tangerine-consensus/core/db"
+ coreTypes "github.com/tangerine-network/tangerine-consensus/core/types"
)
type voteKey struct {
diff --git a/dex/cache_test.go b/dex/cache_test.go
index 64801db2d..f654bf009 100644
--- a/dex/cache_test.go
+++ b/dex/cache_test.go
@@ -24,9 +24,9 @@ import (
"strings"
"testing"
- coreCommon "github.com/byzantine-lab/dexon-consensus/common"
- coreDb "github.com/byzantine-lab/dexon-consensus/core/db"
- coreTypes "github.com/byzantine-lab/dexon-consensus/core/types"
+ coreCommon "github.com/tangerine-network/tangerine-consensus/common"
+ coreDb "github.com/tangerine-network/tangerine-consensus/core/db"
+ coreTypes "github.com/tangerine-network/tangerine-consensus/core/types"
)
type byHash []*coreTypes.Vote
diff --git a/dex/db/db.go b/dex/db/db.go
index c6479cd8c..2c87b4616 100644
--- a/dex/db/db.go
+++ b/dex/db/db.go
@@ -18,10 +18,10 @@
package db
import (
- coreCommon "github.com/byzantine-lab/dexon-consensus/common"
- coreDKG "github.com/byzantine-lab/dexon-consensus/core/crypto/dkg"
- coreDb "github.com/byzantine-lab/dexon-consensus/core/db"
- coreTypes "github.com/byzantine-lab/dexon-consensus/core/types"
+ coreCommon "github.com/tangerine-network/tangerine-consensus/common"
+ coreDKG "github.com/tangerine-network/tangerine-consensus/core/crypto/dkg"
+ coreDb "github.com/tangerine-network/tangerine-consensus/core/db"
+ coreTypes "github.com/tangerine-network/tangerine-consensus/core/types"
"github.com/tangerine-network/go-tangerine/common"
"github.com/tangerine-network/go-tangerine/core/rawdb"
diff --git a/dex/downloader/downloader.go b/dex/downloader/downloader.go
index 71f68ff83..1c99c3107 100644
--- a/dex/downloader/downloader.go
+++ b/dex/downloader/downloader.go
@@ -23,7 +23,7 @@ import (
"sync/atomic"
"time"
- dexCore "github.com/byzantine-lab/dexon-consensus/core"
+ dexCore "github.com/tangerine-network/tangerine-consensus/core"
ethereum "github.com/tangerine-network/go-tangerine"
"github.com/tangerine-network/go-tangerine/common"
diff --git a/dex/downloader/downloader_test.go b/dex/downloader/downloader_test.go
index 6d3718d44..3d185abe7 100644
--- a/dex/downloader/downloader_test.go
+++ b/dex/downloader/downloader_test.go
@@ -25,10 +25,7 @@ import (
"testing"
"time"
- dexCore "github.com/byzantine-lab/dexon-consensus/core"
- coreTypes "github.com/byzantine-lab/dexon-consensus/core/types"
ethereum "github.com/tangerine-network/go-tangerine"
-
"github.com/tangerine-network/go-tangerine/common"
"github.com/tangerine-network/go-tangerine/consensus/dexcon"
"github.com/tangerine-network/go-tangerine/core/state"
@@ -38,6 +35,8 @@ import (
"github.com/tangerine-network/go-tangerine/event"
"github.com/tangerine-network/go-tangerine/rlp"
"github.com/tangerine-network/go-tangerine/trie"
+ dexCore "github.com/tangerine-network/tangerine-consensus/core"
+ coreTypes "github.com/tangerine-network/tangerine-consensus/core/types"
)
// Reduce some of the parameters to make the tester faster.
diff --git a/dex/downloader/testchain_test.go b/dex/downloader/testchain_test.go
index 5be77b86f..9595dc212 100644
--- a/dex/downloader/testchain_test.go
+++ b/dex/downloader/testchain_test.go
@@ -21,8 +21,8 @@ import (
"fmt"
"math/big"
- dexCore "github.com/byzantine-lab/dexon-consensus/core"
- coreTypes "github.com/byzantine-lab/dexon-consensus/core/types"
+ dexCore "github.com/tangerine-network/tangerine-consensus/core"
+ coreTypes "github.com/tangerine-network/tangerine-consensus/core/types"
"github.com/tangerine-network/go-tangerine/common"
"github.com/tangerine-network/go-tangerine/consensus/dexcon"
diff --git a/dex/governance.go b/dex/governance.go
index 3e73467b5..1ca94e1dc 100644
--- a/dex/governance.go
+++ b/dex/governance.go
@@ -22,8 +22,8 @@ import (
"crypto/ecdsa"
"math/big"
- coreTypes "github.com/byzantine-lab/dexon-consensus/core/types"
- dkgTypes "github.com/byzantine-lab/dexon-consensus/core/types/dkg"
+ coreTypes "github.com/tangerine-network/tangerine-consensus/core/types"
+ dkgTypes "github.com/tangerine-network/tangerine-consensus/core/types/dkg"
"github.com/tangerine-network/go-tangerine/common"
"github.com/tangerine-network/go-tangerine/core"
diff --git a/dex/handler.go b/dex/handler.go
index 2c849b8ee..6ef3c3359 100644
--- a/dex/handler.go
+++ b/dex/handler.go
@@ -45,11 +45,11 @@ import (
"sync/atomic"
"time"
- coreCommon "github.com/byzantine-lab/dexon-consensus/common"
- dexCore "github.com/byzantine-lab/dexon-consensus/core"
- coreCrypto "github.com/byzantine-lab/dexon-consensus/core/crypto"
- coreTypes "github.com/byzantine-lab/dexon-consensus/core/types"
- dkgTypes "github.com/byzantine-lab/dexon-consensus/core/types/dkg"
+ coreCommon "github.com/tangerine-network/tangerine-consensus/common"
+ dexCore "github.com/tangerine-network/tangerine-consensus/core"
+ coreCrypto "github.com/tangerine-network/tangerine-consensus/core/crypto"
+ coreTypes "github.com/tangerine-network/tangerine-consensus/core/types"
+ dkgTypes "github.com/tangerine-network/tangerine-consensus/core/types/dkg"
"github.com/tangerine-network/go-tangerine/common"
"github.com/tangerine-network/go-tangerine/consensus"
diff --git a/dex/network.go b/dex/network.go
index f4f18beb5..3a5a3e620 100644
--- a/dex/network.go
+++ b/dex/network.go
@@ -18,10 +18,10 @@
package dex
import (
- coreCommon "github.com/byzantine-lab/dexon-consensus/common"
- "github.com/byzantine-lab/dexon-consensus/core/crypto"
- "github.com/byzantine-lab/dexon-consensus/core/types"
- dkgTypes "github.com/byzantine-lab/dexon-consensus/core/types/dkg"
+ coreCommon "github.com/tangerine-network/tangerine-consensus/common"
+ "github.com/tangerine-network/tangerine-consensus/core/crypto"
+ "github.com/tangerine-network/tangerine-consensus/core/types"
+ dkgTypes "github.com/tangerine-network/tangerine-consensus/core/types/dkg"
)
type DexconNetwork struct {
diff --git a/dex/peer.go b/dex/peer.go
index a9a952f2f..9b7eb058c 100644
--- a/dex/peer.go
+++ b/dex/peer.go
@@ -40,10 +40,10 @@ import (
"sync"
"time"
- coreCommon "github.com/byzantine-lab/dexon-consensus/common"
- coreTypes "github.com/byzantine-lab/dexon-consensus/core/types"
- dkgTypes "github.com/byzantine-lab/dexon-consensus/core/types/dkg"
mapset "github.com/deckarep/golang-set"
+ coreCommon "github.com/tangerine-network/tangerine-consensus/common"
+ coreTypes "github.com/tangerine-network/tangerine-consensus/core/types"
+ dkgTypes "github.com/tangerine-network/tangerine-consensus/core/types/dkg"
"github.com/tangerine-network/go-tangerine/common"
"github.com/tangerine-network/go-tangerine/core/types"
diff --git a/dex/protocol_test.go b/dex/protocol_test.go
index 605cd0dec..bd0a77dfa 100644
--- a/dex/protocol_test.go
+++ b/dex/protocol_test.go
@@ -24,11 +24,11 @@ import (
"testing"
"time"
- coreCommon "github.com/byzantine-lab/dexon-consensus/common"
- coreCrypto "github.com/byzantine-lab/dexon-consensus/core/crypto"
- "github.com/byzantine-lab/dexon-consensus/core/crypto/dkg"
- coreTypes "github.com/byzantine-lab/dexon-consensus/core/types"
- dkgTypes "github.com/byzantine-lab/dexon-consensus/core/types/dkg"
+ coreCommon "github.com/tangerine-network/tangerine-consensus/common"
+ coreCrypto "github.com/tangerine-network/tangerine-consensus/core/crypto"
+ "github.com/tangerine-network/tangerine-consensus/core/crypto/dkg"
+ coreTypes "github.com/tangerine-network/tangerine-consensus/core/types"
+ dkgTypes "github.com/tangerine-network/tangerine-consensus/core/types/dkg"
"github.com/tangerine-network/go-tangerine/common"
"github.com/tangerine-network/go-tangerine/core/types"