Merge pull request #551 from JukLee0ira/nil

remove redundant error check in function getValidators
This commit is contained in:
Daniel Liu 2024-05-31 17:13:32 +08:00 committed by GitHub
commit 025213fb1e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -318,9 +318,6 @@ func getValidators(bc *core.BlockChain, masternodes []common.Address) ([]byte, e
// Get secrets and opening at epoc block checkpoint.
var candidates []int64
if err != nil {
return nil, err
}
lenSigners := int64(len(masternodes))
if lenSigners > 0 {
for _, addr := range masternodes {