We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a9d2bf0 commit e075ce8Copy full SHA for e075ce8
1 file changed
crates/blockchain/src/store.rs
@@ -644,6 +644,11 @@ pub fn get_attestation_target(store: &Store) -> Checkpoint {
644
///
645
/// This is needed by the proposer, whose block hasn't been imported yet but whose
646
/// state transition may have advanced justification/finalization.
647
+///
648
+/// Note: the walk-back still starts from `store.head()` (the pre-import head), not
649
+/// the new block. This is correct because the new block is only 1 slot ahead — the
650
+/// walk-back immediately reaches the same chain. The important fix is using the
651
+/// post-state justified/finalized for the justifiability check and clamping guard.
652
pub fn get_attestation_target_with_checkpoints(
653
store: &Store,
654
justified: Checkpoint,
0 commit comments