update il cache with is timely

This commit is contained in:
Eitan Seri-Levi
2026-04-30 12:42:34 +02:00
parent f567674871
commit 8559bf0e10
8 changed files with 79 additions and 40 deletions

View File

@@ -2643,11 +2643,15 @@ impl<T: BeaconChainTypes> NetworkBeaconProcessor<T> {
) {
match GossipVerifiedInclusionList::verify(&il, &self.chain) {
Ok(gossip_verified_il) => {
debug!("Successfully verified gossip inclusion list");
debug!(
is_timely = gossip_verified_il.is_timely,
"Successfully verified gossip inclusion list"
);
// Store validated inclusion list in the IL cache. This also catches
// equivocating IL's and handles them accordingly.
let is_timely = gossip_verified_il.is_timely;
self.chain
.on_verified_inclusion_list(gossip_verified_il.signed_il);
.on_verified_inclusion_list(gossip_verified_il.signed_il, is_timely);
}
Err(err) => match err {
GossipInclusionListError::InvalidSlot { .. }