diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-11-02 12:04:20 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 21:32:52 +0800 |
commit | 8e367a13fe30a6a63880ef4d031b7f6c153cf5f0 (patch) | |
tree | a88f84c84b735c95fb22f03e3207a085d6edf36a /dex | |
parent | b1172dab3b91335729325f3effe48688418129d1 (diff) | |
download | dexon-8e367a13fe30a6a63880ef4d031b7f6c153cf5f0.tar dexon-8e367a13fe30a6a63880ef4d031b7f6c153cf5f0.tar.gz dexon-8e367a13fe30a6a63880ef4d031b7f6c153cf5f0.tar.bz2 dexon-8e367a13fe30a6a63880ef4d031b7f6c153cf5f0.tar.lz dexon-8e367a13fe30a6a63880ef4d031b7f6c153cf5f0.tar.xz dexon-8e367a13fe30a6a63880ef4d031b7f6c153cf5f0.tar.zst dexon-8e367a13fe30a6a63880ef4d031b7f6c153cf5f0.zip |
Rename import due to dexon-consensus rename
Diffstat (limited to 'dex')
-rw-r--r-- | dex/app.go | 14 | ||||
-rw-r--r-- | dex/backend.go | 18 | ||||
-rw-r--r-- | dex/cache.go | 14 | ||||
-rw-r--r-- | dex/cache_test.go | 14 | ||||
-rw-r--r-- | dex/governance.go | 12 | ||||
-rw-r--r-- | dex/handler.go | 20 | ||||
-rw-r--r-- | dex/network.go | 18 | ||||
-rw-r--r-- | dex/peer.go | 6 | ||||
-rw-r--r-- | dex/protocol.go | 10 | ||||
-rw-r--r-- | dex/protocol_test.go | 10 |
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 2ad7c16be..3a50eb649 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 f33179b69..aabce3bf9 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" |