fix blob slot validation

This commit is contained in:
realbigsean
2022-12-07 13:49:24 -05:00
parent dbc57ba2d9
commit 6d4fb41b84
3 changed files with 22 additions and 16 deletions

View File

@@ -840,7 +840,17 @@ impl<T: BeaconChainTypes> Worker<T> {
);
return None;
}
Err(blob_errors) => unimplemented!("handle")
Err(e@ BlockError::BlobValidation(_)) => {
warn!(self.log, "Could not verify blob for gossip. Rejecting the block and blob";
"error" => %e);
self.propagate_validation_result(message_id, peer_id, MessageAcceptance::Reject);
self.gossip_penalize_peer(
peer_id,
PeerAction::LowToleranceError,
"gossip_blob_low",
);
return None;
}
};
metrics::inc_counter(&metrics::BEACON_PROCESSOR_GOSSIP_BLOCK_VERIFIED_TOTAL);