Skip to content

Commit 8c6d122

Browse files
committed
refactor(fork-choice): remove unused setProposerBoost/clearProposerBoost
These methods were dead code — proposer boost is set inline in onBlock and cleared inline in onTick, matching the TS Lodestar implementation.
1 parent 4b4eba4 commit 8c6d122

1 file changed

Lines changed: 0 additions & 23 deletions

File tree

src/fork_choice/fork_choice.zig

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -992,29 +992,6 @@ pub const ForkChoice = struct {
992992
return self.head;
993993
}
994994

995-
// ── Proposer boost ──
996-
997-
/// Apply proposer boost for a block.
998-
/// Caller computes score = committee_weight * PROPOSER_SCORE_BOOST / 100
999-
/// (PROPOSER_SCORE_BOOST is in ChainConfig, not a comptime preset).
1000-
pub fn setProposerBoost(
1001-
self: *ForkChoice,
1002-
root: Root,
1003-
score: u64,
1004-
) void {
1005-
self.proto_array.previous_proposer_boost = .{
1006-
.root = root,
1007-
.score = score,
1008-
};
1009-
self.proposer_boost_root = root;
1010-
}
1011-
1012-
/// Clear proposer boost (typically at start of new slot).
1013-
pub fn clearProposerBoost(self: *ForkChoice) void {
1014-
self.proto_array.previous_proposer_boost = null;
1015-
self.proposer_boost_root = null;
1016-
}
1017-
1018995
// ── Proposer boost reorg ──
1019996

1020997
/// Called by `predictProposerHead` and `onBlock`. If the result is not same as

0 commit comments

Comments
 (0)