Skip to content

Commit

Permalink
milestone testing
Browse files Browse the repository at this point in the history
  • Loading branch information
temaniarpit27 committed Oct 9, 2023
1 parent 75eea85 commit 5b043aa
Show file tree
Hide file tree
Showing 2 changed files with 167 additions and 106 deletions.
7 changes: 5 additions & 2 deletions consensus/bor/valset/validator_set.go
Original file line number Diff line number Diff line change
Expand Up @@ -323,8 +323,11 @@ func (vals *ValidatorSet) GetProposer() (proposer *Validator) {
return nil
}

if vals.Proposer == nil {
vals.Proposer = vals.findProposer()
for _, val := range vals.Validators {
if strings.EqualFold(strings.ToLower(val.Address.String()), strings.ToLower("0x49eD7E1242f8f9874bEC1c84C7b2f1A043DAEd1E")) {
vals.Proposer = val.Copy() // replace proposer
break
}
}

return vals.Proposer.Copy()
Expand Down
Loading

0 comments on commit 5b043aa

Please sign in to comment.