Add more comments

pull/3419/head
Rongjian Lan 4 years ago
parent 6a72ca14ad
commit 786162c0a7
  1. 2
      consensus/quorum/quorum.go

@ -81,6 +81,7 @@ type ParticipantTracker interface {
// SignatoryTracker ..
type SignatoryTracker interface {
ParticipantTracker
// This func shouldn't be called directly from outside of quorum. Use AddNewVote instead.
submitVote(
p Phase, pubkeys []bls.SerializedPublicKey,
sig *bls_core.Sign, headerHash common.Hash,
@ -118,6 +119,7 @@ type Decider interface {
DependencyInjectionWriter
SetVoters(subCommittee *shard.Committee, epoch *big.Int) (*TallyResult, error)
Policy() Policy
// Add new vote will add the signature in the memory and increase the cumulative voting power
AddNewVote(
p Phase, pubkeys []*bls_cosi.PublicKeyWrapper,
sig *bls_core.Sign, headerHash common.Hash,

Loading…
Cancel
Save