aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2018-10-15 15:50:11 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-09 21:32:50 +0800
commit8630a5e99caa921acdfe6e884584446851bb402d (patch)
treec232b54001e4c241eddaea6b45113efe2565776a
parent18d3213eab9ffa5ecb07a389dfe776ddb511dc8f (diff)
downloaddexon-8630a5e99caa921acdfe6e884584446851bb402d.tar
dexon-8630a5e99caa921acdfe6e884584446851bb402d.tar.gz
dexon-8630a5e99caa921acdfe6e884584446851bb402d.tar.bz2
dexon-8630a5e99caa921acdfe6e884584446851bb402d.tar.lz
dexon-8630a5e99caa921acdfe6e884584446851bb402d.tar.xz
dexon-8630a5e99caa921acdfe6e884584446851bb402d.tar.zst
dexon-8630a5e99caa921acdfe6e884584446851bb402d.zip
core: vm: modify dkg threshold
-rw-r--r--core/vm/governance.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/vm/governance.go b/core/vm/governance.go
index 3583e0cc1..c9ab74bd7 100644
--- a/core/vm/governance.go
+++ b/core/vm/governance.go
@@ -1540,7 +1540,7 @@ func (g *GovernanceContract) proposeCRS(signedCRS []byte) ([]byte, error) {
dkgComplaints = append(dkgComplaints, x)
}
- threshold := int(g.state.DKGSetSize().Uint64() / 3)
+ threshold := int(g.state.DKGSetSize().Uint64() / 3 + 1)
dkgGPK, err := core.NewDKGGroupPublicKey(
round.Uint64(), dkgMasterPKs, dkgComplaints, threshold)