Skip to content

Commit

Permalink
Merge pull request #2844 from OffchainLabs/BlockValidator_twice
Browse files Browse the repository at this point in the history
[NIT-3006] fix: BlockValidator is added twice to LatestStakedNotifiers in pre-BOLD case
  • Loading branch information
tsahee authored Dec 21, 2024
2 parents 56ff5ec + e270e20 commit 5464eea
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions staker/legacy/staker.go
Original file line number Diff line number Diff line change
Expand Up @@ -323,9 +323,6 @@ func NewStaker(
return nil, err
}
stakerLastSuccessfulActionGauge.Update(time.Now().Unix())
if config().StartValidationFromStaked && blockValidator != nil {
stakedNotifiers = append(stakedNotifiers, blockValidator)
}
inactiveValidatedNodes := btree.NewG(2, func(a, b validatedNode) bool {
return a.number < b.number || (a.number == b.number && a.hash.Cmp(b.hash) < 0)
})
Expand Down

0 comments on commit 5464eea

Please sign in to comment.