Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Commit e3c9748

Browse files
committed
feedback
1 parent addc85f commit e3c9748

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/src/heaviest_subtree_fork_choice.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,7 @@ impl HeaviestSubtreeForkChoice {
863863
Some(false) => None,
864864
None => {
865865
if !tower.is_stray_last_vote() {
866-
// Unless last vote is stray and stale, self.bast_slot(last_voted_slot) must return
866+
// Unless last vote is stray and stale, self.is_candidate(last_voted_slot_hash) must return
867867
// Some(_), justifying to panic! here.
868868
// Also, adjust_lockouts_after_replay() correctly makes last_voted_slot None,
869869
// if all saved votes are ancestors of replayed_root_slot. So this code shouldn't be

core/src/replay_stage.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5644,7 +5644,7 @@ pub(crate) mod tests {
56445644
assert_eq!(vote_fork.unwrap(), 4);
56455645
assert_eq!(reset_fork.unwrap(), 4);
56465646

5647-
// Record the vote for 5
5647+
// Record the vote for 5 which is not on the heaviest fork.
56485648
tower.record_bank_vote(
56495649
&bank_forks.read().unwrap().get(5).unwrap(),
56505650
&Pubkey::default(),

0 commit comments

Comments
 (0)