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

Loading…
Cancel
Save