|
|
@ -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, |
|
|
|