mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-30 20:57:10 +00:00
Import validated IL's into IL cache
This commit is contained in:
@@ -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 { .. }
|
||||
|
||||
Reference in New Issue
Block a user