diff options
core: recover DKG master private shares (#487)
Diffstat (limited to 'core/configuration-chain.go')
-rw-r--r-- | core/configuration-chain.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/configuration-chain.go b/core/configuration-chain.go index faea49f..9214cd9 100644 --- a/core/configuration-chain.go +++ b/core/configuration-chain.go @@ -106,6 +106,12 @@ func (cc *configurationChain) registerDKG(round uint64, threshold int) { cc.recv, round, threshold) + err = cc.db.PutOrUpdateDKGMasterPrivateShares(round, *cc.dkg.prvShares) + if err != nil { + cc.logger.Error("Error put or update DKG master private shares", "error", + err) + return + } go func() { ticker := newTicker(cc.gov, round, TickerDKG) defer ticker.Stop() |