Skip to content

Commit

Permalink
Merge pull request #551 from JukLee0ira/nil
Browse files Browse the repository at this point in the history
remove redundant error check in function getValidators
  • Loading branch information
gzliudan authored May 31, 2024
2 parents abb1941 + 08432b8 commit 025213f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions eth/hooks/engine_v1_hooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 025213f

Please sign in to comment.