aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMission Liao <mission.liao@dexon.org>2018-12-25 10:06:35 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-09 21:32:55 +0800
commit6aee32cd8c3d7f0c7d99bf1fe4951fdf6c534be9 (patch)
treea8020f5aace2a3f3ac3de3bcbe98bdc8226245a6 /core
parentb39d0be8e1fd2e870fafd2c23e7d5cb220696a60 (diff)
downloaddexon-6aee32cd8c3d7f0c7d99bf1fe4951fdf6c534be9.tar
dexon-6aee32cd8c3d7f0c7d99bf1fe4951fdf6c534be9.tar.gz
dexon-6aee32cd8c3d7f0c7d99bf1fe4951fdf6c534be9.tar.bz2
dexon-6aee32cd8c3d7f0c7d99bf1fe4951fdf6c534be9.tar.lz
dexon-6aee32cd8c3d7f0c7d99bf1fe4951fdf6c534be9.tar.xz
dexon-6aee32cd8c3d7f0c7d99bf1fe4951fdf6c534be9.tar.zst
dexon-6aee32cd8c3d7f0c7d99bf1fe4951fdf6c534be9.zip
vendor: sync DEXON core and fix conflicts/missings (#101)
Merging these commits in DEXON consensus core: - https://github.com/dexon-foundation/dexon-consensus/commit/dce509a13ef5873b9cae3c1cabdb97e219b6fb7d - https://github.com/dexon-foundation/dexon-consensus/commit/6d1c1aeea0d3e75d10cbb2712c68b4c422ba8ba6 - https://github.com/dexon-foundation/dexon-consensus/commit/c1ed57c4abaf1f4758e52f082bb7114ad00c8b39
Diffstat (limited to 'core')
-rw-r--r--core/vm/governance.go10
1 files changed, 6 insertions, 4 deletions
diff --git a/core/vm/governance.go b/core/vm/governance.go
index 597399dd5..8be5b03b2 100644
--- a/core/vm/governance.go
+++ b/core/vm/governance.go
@@ -31,6 +31,8 @@ import (
coreCommon "github.com/dexon-foundation/dexon-consensus/common"
"github.com/dexon-foundation/dexon-consensus/core"
coreCrypto "github.com/dexon-foundation/dexon-consensus/core/crypto"
+ coreUtils "github.com/dexon-foundation/dexon-consensus/core/utils"
+
"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"
@@ -2184,7 +2186,7 @@ func (g *GovernanceContract) addDKGComplaint(round *big.Int, comp []byte) ([]byt
return g.penalize()
}
- verified, _ := core.VerifyDKGComplaintSignature(&dkgComplaint)
+ verified, _ := coreUtils.VerifyDKGComplaintSignature(&dkgComplaint)
if !verified {
return g.penalize()
}
@@ -2234,7 +2236,7 @@ func (g *GovernanceContract) addDKGMasterPublicKey(round *big.Int, mpk []byte) (
return g.penalize()
}
- verified, _ := core.VerifyDKGMasterPublicKeySignature(&dkgMasterPK)
+ verified, _ := coreUtils.VerifyDKGMasterPublicKeySignature(&dkgMasterPK)
if !verified {
return g.penalize()
}
@@ -2261,7 +2263,7 @@ func (g *GovernanceContract) addDKGMPKReady(round *big.Int, ready []byte) ([]byt
return g.penalize()
}
- verified, _ := core.VerifyDKGMPKReadySignature(&dkgReady)
+ verified, _ := coreUtils.VerifyDKGMPKReadySignature(&dkgReady)
if !verified {
return g.penalize()
}
@@ -2290,7 +2292,7 @@ func (g *GovernanceContract) addDKGFinalize(round *big.Int, finalize []byte) ([]
return g.penalize()
}
- verified, _ := core.VerifyDKGFinalizeSignature(&dkgFinalize)
+ verified, _ := coreUtils.VerifyDKGFinalizeSignature(&dkgFinalize)
if !verified {
return g.penalize()
}