From 4e7496ada7f0b05d3b6d533ebdf3f969565e032d Mon Sep 17 00:00:00 2001 From: Aman Sanghi Date: Fri, 20 Dec 2024 16:32:23 +0530 Subject: [PATCH] fix: BlockValidator is added twice to LatestStakedNotifiers in pre-BoLD case --- staker/legacy/staker.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/staker/legacy/staker.go b/staker/legacy/staker.go index fa74be327f..504e8c8421 100644 --- a/staker/legacy/staker.go +++ b/staker/legacy/staker.go @@ -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) })