|
|
|
@ -186,6 +186,11 @@ func (consensus *Consensus) GetLeaderPubKey() *bls_cosi.PublicKeyWrapper { |
|
|
|
|
func (consensus *Consensus) getLeaderPubKey() *bls_cosi.PublicKeyWrapper { |
|
|
|
|
return consensus.LeaderPubKey |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (consensus *Consensus) getLeaderPubKey() *bls_cosi.PublicKeyWrapper { |
|
|
|
|
return consensus.LeaderPubKey |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (consensus *Consensus) SetLeaderPubKey(pub *bls_cosi.PublicKeyWrapper) { |
|
|
|
|
consensus.pubKeyLock.Lock() |
|
|
|
|
consensus.LeaderPubKey = pub |
|
|
|
|