mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-21 06:04:33 +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
|
||||
|
||||
for _, candidate := range candidates {
|
||||
v, err := validator.GetCandidateCap(opts, candidate)
|
||||
if err != nil {
|
||||
return []utils.Masternode{}, err
|
||||
}
|
||||
if candidate.String() != "xdc0000000000000000000000000000000000000000" {
|
||||
if !candidate.IsZero() {
|
||||
v, err := validator.GetCandidateCap(opts, candidate)
|
||||
if err != nil {
|
||||
return []utils.Masternode{}, err
|
||||
}
|
||||
|
||||
candidatesWithStakeInfo = append(candidatesWithStakeInfo, utils.Masternode{Address: candidate, Stake: v})
|
||||
}
|
||||
|
||||
|
|
@ -1022,6 +1023,7 @@ func (s *PublicBlockChainAPI) getCandidatesFromSmartContract() ([]utils.Masterno
|
|||
})
|
||||
}
|
||||
}
|
||||
|
||||
return candidatesWithStakeInfo, nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue