mirror of https://github.com/poanetwork/quorum.git
additional fixes
This commit is contained in:
parent
13b8209d18
commit
f41e7ac83c
File diff suppressed because one or more lines are too long
|
@ -107,6 +107,11 @@ contract Permissions {
|
|||
return numberOfVoters;
|
||||
}
|
||||
|
||||
// Get number of valid voters
|
||||
function getNumberOfValidVoters() public view returns (uint)
|
||||
{
|
||||
return numberOfValidVoters;
|
||||
}
|
||||
// Get voter
|
||||
function getVoter(uint i) public view returns (address _addr, VoterStatus _voterStatus)
|
||||
{
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -930,7 +930,7 @@ func (s *QuorumControlsAPI) validateAccount(from common.Address) (accounts.Walle
|
|||
|
||||
// checkVoterExists checks if any vote accounts are there. If yes returns true, else false
|
||||
func checkVoterExists(ps *pbind.PermissionsSession) bool {
|
||||
tx, err := ps.GetNumberOfVoters()
|
||||
tx, err := ps.GetNumberOfValidVoters()
|
||||
log.Debug("number of voters", "count", tx)
|
||||
if err == nil && tx.Cmp(big.NewInt(0)) > 0 {
|
||||
return true
|
||||
|
|
Loading…
Reference in New Issue