Import validated IL's into IL cache

This commit is contained in:
Eitan Seri-Levi
2025-01-17 16:09:21 +07:00
parent f87f83873a
commit 77551ea1b7
4 changed files with 11 additions and 5 deletions

View File

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