Skip to content

Commit

Permalink
Update node/actors/bft/src/replica/leader_prepare.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Bruno França <[email protected]>
  • Loading branch information
pompon0 and brunoffranca authored Mar 18, 2024
1 parent 2afdb72 commit aadb33d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions node/actors/bft/src/replica/leader_prepare.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ impl StateMachine {
});
}

// Replica MUSN'T vote for blocks which have been already pruned for storage.
// (because it won't be albe to persist and broadcast them once finalized).
// Replica MUSTN'T vote for blocks which have been already pruned for storage.
// (because it won't be able to persist and broadcast them once finalized).
// TODO(gprusak): it should never happen, we should add safety checks to prevent
// pruning blocks not known to be finalized.
if message.proposal.number < self.config.block_store.subscribe().borrow().first {
Expand Down

0 comments on commit aadb33d

Please sign in to comment.