aboutsummaryrefslogtreecommitdiffstats
path: root/dex
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2018-11-02 12:04:20 +0800
committerWei-Ning Huang <w@dexon.org>2018-12-19 20:54:27 +0800
commit1894ad3b915a28be657c6f760b3ad089507da66c (patch)
treebec363c67a6e00395ec4fd9490f882c1f0c38135 /dex
parent8ac4cbab66208e0b41f510528633d5ec6768baca (diff)
downloaddexon-1894ad3b915a28be657c6f760b3ad089507da66c.tar.gz
dexon-1894ad3b915a28be657c6f760b3ad089507da66c.tar.zst
dexon-1894ad3b915a28be657c6f760b3ad089507da66c.zip
Rename import due to dexon-consensus rename
Diffstat (limited to 'dex')
-rw-r--r--dex/app.go14
-rw-r--r--dex/backend.go18
-rw-r--r--dex/cache.go14
-rw-r--r--dex/cache_test.go14
-rw-r--r--dex/governance.go12
-rw-r--r--dex/handler.go20
-rw-r--r--dex/network.go18
-rw-r--r--dex/peer.go6
-rw-r--r--dex/protocol.go10
-rw-r--r--dex/protocol_test.go10
10 files changed, 68 insertions, 68 deletions
diff --git a/dex/app.go b/dex/app.go
index a3bc9f4c5..82e230299 100644
--- a/dex/app.go
+++ b/dex/app.go
@@ -1,18 +1,18 @@
-// Copyright 2018 The dexon-consensus-core Authors
-// This file is part of the dexon-consensus-core library.
+// Copyright 2018 The dexon-consensus Authors
+// This file is part of the dexon-consensus library.
//
-// The dexon-consensus-core library is free software: you can redistribute it
+// The dexon-consensus library is free software: you can redistribute it
// and/or modify it under the terms of the GNU Lesser General Public License as
// published by the Free Software Foundation, either version 3 of the License,
// or (at your option) any later version.
//
-// The dexon-consensus-core library is distributed in the hope that it will be
+// The dexon-consensus library is distributed in the hope that it will be
// useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
// General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the dexon-consensus-core library. If not, see
+// along with the dexon-consensus library. If not, see
// <http://www.gnu.org/licenses/>.
package dex
@@ -23,8 +23,8 @@ import (
"sync"
"time"
- coreCommon "github.com/dexon-foundation/dexon-consensus-core/common"
- coreTypes "github.com/dexon-foundation/dexon-consensus-core/core/types"
+ coreCommon "github.com/dexon-foundation/dexon-consensus/common"
+ coreTypes "github.com/dexon-foundation/dexon-consensus/core/types"
"github.com/dexon-foundation/dexon/common"
"github.com/dexon-foundation/dexon/core"
diff --git a/dex/backend.go b/dex/backend.go
index ce9db8e5d..cb292f5ee 100644
--- a/dex/backend.go
+++ b/dex/backend.go
@@ -1,18 +1,18 @@
-// Copyright 2018 The dexon-consensus-core Authors
-// This file is part of the dexon-consensus-core library.
+// Copyright 2018 The dexon-consensus Authors
+// This file is part of the dexon-consensus library.
//
-// The dexon-consensus-core library is free software: you can redistribute it
+// The dexon-consensus library is free software: you can redistribute it
// and/or modify it under the terms of the GNU Lesser General Public License as
// published by the Free Software Foundation, either version 3 of the License,
// or (at your option) any later version.
//
-// The dexon-consensus-core library is distributed in the hope that it will be
+// The dexon-consensus library is distributed in the hope that it will be
// useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
// General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the dexon-consensus-core library. If not, see
+// along with the dexon-consensus library. If not, see
// <http://www.gnu.org/licenses/>.
package dex
@@ -22,10 +22,10 @@ import (
"path/filepath"
"time"
- dexCore "github.com/dexon-foundation/dexon-consensus-core/core"
- "github.com/dexon-foundation/dexon-consensus-core/core/blockdb"
- coreEcdsa "github.com/dexon-foundation/dexon-consensus-core/core/crypto/ecdsa"
- coreTypes "github.com/dexon-foundation/dexon-consensus-core/core/types"
+ dexCore "github.com/dexon-foundation/dexon-consensus/core"
+ "github.com/dexon-foundation/dexon-consensus/core/blockdb"
+ coreEcdsa "github.com/dexon-foundation/dexon-consensus/core/crypto/ecdsa"
+ coreTypes "github.com/dexon-foundation/dexon-consensus/core/types"
"github.com/dexon-foundation/dexon/accounts"
"github.com/dexon-foundation/dexon/consensus"
diff --git a/dex/cache.go b/dex/cache.go
index f373a642e..e56e706f9 100644
--- a/dex/cache.go
+++ b/dex/cache.go
@@ -1,18 +1,18 @@
-// Copyright 2018 The dexon-consensus-core Authors
-// This file is part of the dexon-consensus-core library.
+// Copyright 2018 The dexon-consensus Authors
+// This file is part of the dexon-consensus library.
//
-// The dexon-consensus-core library is free software: you can redistribute it
+// The dexon-consensus library is free software: you can redistribute it
// and/or modify it under the terms of the GNU Lesser General Public License as
// published by the Free Software Foundation, either version 3 of the License,
// or (at your option) any later version.
//
-// The dexon-consensus-core library is distributed in the hope that it will be
+// The dexon-consensus library is distributed in the hope that it will be
// useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
// General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the dexon-consensus-core library. If not, see
+// along with the dexon-consensus library. If not, see
// <http://www.gnu.org/licenses/>.
package dex
@@ -20,8 +20,8 @@ package dex
import (
"sync"
- coreCommon "github.com/dexon-foundation/dexon-consensus-core/common"
- coreTypes "github.com/dexon-foundation/dexon-consensus-core/core/types"
+ coreCommon "github.com/dexon-foundation/dexon-consensus/common"
+ coreTypes "github.com/dexon-foundation/dexon-consensus/core/types"
)
type voteKey struct {
diff --git a/dex/cache_test.go b/dex/cache_test.go
index 96e07aa17..0ab426f3a 100644
--- a/dex/cache_test.go
+++ b/dex/cache_test.go
@@ -1,18 +1,18 @@
-// Copyright 2018 The dexon-consensus-core Authors
-// This file is part of the dexon-consensus-core library.
+// Copyright 2018 The dexon-consensus Authors
+// This file is part of the dexon-consensus library.
//
-// The dexon-consensus-core library is free software: you can redistribute it
+// The dexon-consensus library is free software: you can redistribute it
// and/or modify it under the terms of the GNU Lesser General Public License as
// published by the Free Software Foundation, either version 3 of the License,
// or (at your option) any later version.
//
-// The dexon-consensus-core library is distributed in the hope that it will be
+// The dexon-consensus library is distributed in the hope that it will be
// useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
// General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the dexon-consensus-core library. If not, see
+// along with the dexon-consensus library. If not, see
// <http://www.gnu.org/licenses/>.
package dex
@@ -20,8 +20,8 @@ package dex
import (
"testing"
- coreCommon "github.com/dexon-foundation/dexon-consensus-core/common"
- coreTypes "github.com/dexon-foundation/dexon-consensus-core/core/types"
+ coreCommon "github.com/dexon-foundation/dexon-consensus/common"
+ coreTypes "github.com/dexon-foundation/dexon-consensus/core/types"
)
func TestCacheVote(t *testing.T) {
diff --git a/dex/governance.go b/dex/governance.go
index bbb34ca50..61dddf0e6 100644
--- a/dex/governance.go
+++ b/dex/governance.go
@@ -7,12 +7,12 @@ import (
"math/big"
"time"
- coreCommon "github.com/dexon-foundation/dexon-consensus-core/common"
- dexCore "github.com/dexon-foundation/dexon-consensus-core/core"
- coreCrypto "github.com/dexon-foundation/dexon-consensus-core/core/crypto"
- coreEcdsa "github.com/dexon-foundation/dexon-consensus-core/core/crypto/ecdsa"
- coreTypes "github.com/dexon-foundation/dexon-consensus-core/core/types"
- dkgTypes "github.com/dexon-foundation/dexon-consensus-core/core/types/dkg"
+ coreCommon "github.com/dexon-foundation/dexon-consensus/common"
+ dexCore "github.com/dexon-foundation/dexon-consensus/core"
+ coreCrypto "github.com/dexon-foundation/dexon-consensus/core/crypto"
+ coreEcdsa "github.com/dexon-foundation/dexon-consensus/core/crypto/ecdsa"
+ coreTypes "github.com/dexon-foundation/dexon-consensus/core/types"
+ dkgTypes "github.com/dexon-foundation/dexon-consensus/core/types/dkg"
"github.com/dexon-foundation/dexon/common"
"github.com/dexon-foundation/dexon/core/types"
diff --git a/dex/handler.go b/dex/handler.go
index 5662e2b84..68c682eda 100644
--- a/dex/handler.go
+++ b/dex/handler.go
@@ -1,18 +1,18 @@
-// Copyright 2018 The dexon-consensus-core Authors
-// This file is part of the dexon-consensus-core library.
+// Copyright 2018 The dexon-consensus Authors
+// This file is part of the dexon-consensus library.
//
-// The dexon-consensus-core library is free software: you can redistribute it
+// The dexon-consensus library is free software: you can redistribute it
// and/or modify it under the terms of the GNU Lesser General Public License as
// published by the Free Software Foundation, either version 3 of the License,
// or (at your option) any later version.
//
-// The dexon-consensus-core library is distributed in the hope that it will be
+// The dexon-consensus library is distributed in the hope that it will be
// useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
// General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the dexon-consensus-core library. If not, see
+// along with the dexon-consensus library. If not, see
// <http://www.gnu.org/licenses/>.
// Copyright 2015 The go-ethereum Authors
@@ -43,10 +43,10 @@ import (
"sync/atomic"
"time"
- coreCommon "github.com/dexon-foundation/dexon-consensus-core/common"
- coreCrypto "github.com/dexon-foundation/dexon-consensus-core/core/crypto"
- coreTypes "github.com/dexon-foundation/dexon-consensus-core/core/types"
- dkgTypes "github.com/dexon-foundation/dexon-consensus-core/core/types/dkg"
+ coreCommon "github.com/dexon-foundation/dexon-consensus/common"
+ coreCrypto "github.com/dexon-foundation/dexon-consensus/core/crypto"
+ coreTypes "github.com/dexon-foundation/dexon-consensus/core/types"
+ dkgTypes "github.com/dexon-foundation/dexon-consensus/core/types/dkg"
"github.com/dexon-foundation/dexon/common"
"github.com/dexon-foundation/dexon/consensus"
@@ -941,7 +941,7 @@ func (pm *ProtocolManager) BroadcastRandomnessResult(
}
func (pm *ProtocolManager) SendDKGPrivateShare(
- pub coreCrypto.PublicKey, privateShare *coreTypes.DKGPrivateShare) {
+ pub coreCrypto.PublicKey, privateShare *dkgTypes.PrivateShare) {
id := string(pub.Bytes()[1:])
if p := pm.peers.Peer(id); p != nil {
p.AsyncSendDKGPrivateShare(privateShare)
diff --git a/dex/network.go b/dex/network.go
index 4f5c5ac5c..38ee614ad 100644
--- a/dex/network.go
+++ b/dex/network.go
@@ -1,27 +1,27 @@
-// Copyright 2018 The dexon-consensus-core Authors
-// This file is part of the dexon-consensus-core library.
+// Copyright 2018 The dexon-consensus Authors
+// This file is part of the dexon-consensus library.
//
-// The dexon-consensus-core library is free software: you can redistribute it
+// The dexon-consensus library is free software: you can redistribute it
// and/or modify it under the terms of the GNU Lesser General Public License as
// published by the Free Software Foundation, either version 3 of the License,
// or (at your option) any later version.
//
-// The dexon-consensus-core library is distributed in the hope that it will be
+// The dexon-consensus library is distributed in the hope that it will be
// useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
// General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the dexon-consensus-core library. If not, see
+// along with the dexon-consensus library. If not, see
// <http://www.gnu.org/licenses/>.
package dex
import (
- coreCommon "github.com/dexon-foundation/dexon-consensus-core/common"
- "github.com/dexon-foundation/dexon-consensus-core/core/crypto"
- "github.com/dexon-foundation/dexon-consensus-core/core/types"
- dkgTypes "github.com/dexon-foundation/dexon-consensus-core/core/types/dkg"
+ coreCommon "github.com/dexon-foundation/dexon-consensus/common"
+ "github.com/dexon-foundation/dexon-consensus/core/crypto"
+ "github.com/dexon-foundation/dexon-consensus/core/types"
+ dkgTypes "github.com/dexon-foundation/dexon-consensus/core/types/dkg"
)
type DexconNetwork struct {
diff --git a/dex/peer.go b/dex/peer.go
index 2fe8cac08..b350412f3 100644
--- a/dex/peer.go
+++ b/dex/peer.go
@@ -24,9 +24,9 @@ import (
"time"
mapset "github.com/deckarep/golang-set"
- coreCommon "github.com/dexon-foundation/dexon-consensus-core/common"
- coreTypes "github.com/dexon-foundation/dexon-consensus-core/core/types"
- dkgTypes "github.com/dexon-foundation/dexon-consensus-core/core/types/dkg"
+ coreCommon "github.com/dexon-foundation/dexon-consensus/common"
+ coreTypes "github.com/dexon-foundation/dexon-consensus/core/types"
+ dkgTypes "github.com/dexon-foundation/dexon-consensus/core/types/dkg"
"github.com/dexon-foundation/dexon/common"
"github.com/dexon-foundation/dexon/core/types"
diff --git a/dex/protocol.go b/dex/protocol.go
index a77b10714..4220a93a5 100644
--- a/dex/protocol.go
+++ b/dex/protocol.go
@@ -1,18 +1,18 @@
-// Copyright 2018 The dexon-consensus-core Authors
-// This file is part of the dexon-consensus-core library.
+// Copyright 2018 The dexon-consensus Authors
+// This file is part of the dexon-consensus library.
//
-// The dexon-consensus-core library is free software: you can redistribute it
+// The dexon-consensus library is free software: you can redistribute it
// and/or modify it under the terms of the GNU Lesser General Public License as
// published by the Free Software Foundation, either version 3 of the License,
// or (at your option) any later version.
//
-// The dexon-consensus-core library is distributed in the hope that it will be
+// The dexon-consensus library is distributed in the hope that it will be
// useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
// General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the dexon-consensus-core library. If not, see
+// along with the dexon-consensus library. If not, see
// <http://www.gnu.org/licenses/>.
// Copyright 2014 The go-ethereum Authors
diff --git a/dex/protocol_test.go b/dex/protocol_test.go
index 55d7abc69..2e9ba3470 100644
--- a/dex/protocol_test.go
+++ b/dex/protocol_test.go
@@ -23,11 +23,11 @@ import (
"testing"
"time"
- coreCommon "github.com/dexon-foundation/dexon-consensus-core/common"
- coreCrypto "github.com/dexon-foundation/dexon-consensus-core/core/crypto"
- "github.com/dexon-foundation/dexon-consensus-core/core/crypto/dkg"
- coreTypes "github.com/dexon-foundation/dexon-consensus-core/core/types"
- dkgTypes "github.com/dexon-foundation/dexon-consensus-core/core/types/dkg"
+ coreCommon "github.com/dexon-foundation/dexon-consensus/common"
+ coreCrypto "github.com/dexon-foundation/dexon-consensus/core/crypto"
+ "github.com/dexon-foundation/dexon-consensus/core/crypto/dkg"
+ coreTypes "github.com/dexon-foundation/dexon-consensus/core/types"
+ dkgTypes "github.com/dexon-foundation/dexon-consensus/core/types/dkg"
"github.com/dexon-foundation/dexon/common"
"github.com/dexon-foundation/dexon/core/types"