Skip to content

Commit f121c4a

Browse files
committed
lump into
1 parent b8d2a8c commit f121c4a

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

beacon_node/beacon_chain/src/attestation_verification.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1128,10 +1128,14 @@ fn verify_head_block_is_known<T: BeaconChainTypes>(
11281128
}
11291129
}
11301130

1131+
if !verify_attestation_is_finalized_checkpoint_or_descendant(attestation.data(), chain) {
1132+
return Err(Error::HeadBlockFinalized {
1133+
beacon_block_root: attestation.data().beacon_block_root,
1134+
});
1135+
}
1136+
11311137
Ok(block)
1132-
} else if chain.is_pre_finalization_block(attestation.data().beacon_block_root)?
1133-
|| verify_attestation_is_finalized_checkpoint_or_descendant(attestation.data(), chain)
1134-
{
1138+
} else if chain.is_pre_finalization_block(attestation.data().beacon_block_root)? {
11351139
Err(Error::HeadBlockFinalized {
11361140
beacon_block_root: attestation.data().beacon_block_root,
11371141
})

0 commit comments

Comments
 (0)