additional fixes

This commit is contained in:
vsmk98 2019-02-01 16:08:48 +08:00
parent 13b8209d18
commit f41e7ac83c
5 changed files with 35 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

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

View File

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