aboutsummaryrefslogtreecommitdiffstats
path: root/core/configuration-chain.go
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2019-02-13 11:44:38 +0800
committerGitHub <noreply@github.com>2019-02-13 11:44:38 +0800
commit33955365a764647b4e95eb8236eb9d54e7ceba12 (patch)
treef9cdd97c08dcbe71b551833b6bed4dc5f8699dc0 /core/configuration-chain.go
parent7f57f843e14dc1c75c8747bd0e65ee3ee6de6d72 (diff)
downloaddexon-consensus-33955365a764647b4e95eb8236eb9d54e7ceba12.tar
dexon-consensus-33955365a764647b4e95eb8236eb9d54e7ceba12.tar.gz
dexon-consensus-33955365a764647b4e95eb8236eb9d54e7ceba12.tar.bz2
dexon-consensus-33955365a764647b4e95eb8236eb9d54e7ceba12.tar.lz
dexon-consensus-33955365a764647b4e95eb8236eb9d54e7ceba12.tar.xz
dexon-consensus-33955365a764647b4e95eb8236eb9d54e7ceba12.tar.zst
dexon-consensus-33955365a764647b4e95eb8236eb9d54e7ceba12.zip
core: polish dkg for recovery (#443)
* core: Add an error to NewGroupPublicKey * core: Add Delete to TSigVerifierCache * remove duplicated check
Diffstat (limited to 'core/configuration-chain.go')
-rw-r--r--core/configuration-chain.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/core/configuration-chain.go b/core/configuration-chain.go
index bec47f4..ad4d7e6 100644
--- a/core/configuration-chain.go
+++ b/core/configuration-chain.go
@@ -308,11 +308,6 @@ func (cc *configurationChain) recoverDKGInfo(round uint64) error {
if err != nil {
return err
}
- // Restore DKG share secret, this segment of code is copied from
- // dkgProtocol.recoverShareSecret.
- if len(gpk.qualifyIDs) < threshold {
- return ErrNotReachThreshold
- }
// Check if we have private shares in DB.
prvKey, err := cc.db.GetDKGPrivateKey(round)
if err != nil {