mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-15 17:30:44 +00:00
remove 0x0000000000000000000000000000000000000000
This commit is contained in:
parent
2c02ddc2d9
commit
fbb8c54d86
1 changed files with 7 additions and 5 deletions
|
|
@ -1008,11 +1008,12 @@ func (s *PublicBlockChainAPI) getCandidatesFromSmartContract() ([]utils.Masterno
|
||||||
var candidatesWithStakeInfo []utils.Masternode
|
var candidatesWithStakeInfo []utils.Masternode
|
||||||
|
|
||||||
for _, candidate := range candidates {
|
for _, candidate := range candidates {
|
||||||
v, err := validator.GetCandidateCap(opts, candidate)
|
if !candidate.IsZero() {
|
||||||
if err != nil {
|
v, err := validator.GetCandidateCap(opts, candidate)
|
||||||
return []utils.Masternode{}, err
|
if err != nil {
|
||||||
}
|
return []utils.Masternode{}, err
|
||||||
if candidate.String() != "xdc0000000000000000000000000000000000000000" {
|
}
|
||||||
|
|
||||||
candidatesWithStakeInfo = append(candidatesWithStakeInfo, utils.Masternode{Address: candidate, Stake: v})
|
candidatesWithStakeInfo = append(candidatesWithStakeInfo, utils.Masternode{Address: candidate, Stake: v})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1022,6 +1023,7 @@ func (s *PublicBlockChainAPI) getCandidatesFromSmartContract() ([]utils.Masterno
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return candidatesWithStakeInfo, nil
|
return candidatesWithStakeInfo, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue