mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-15 02:42:38 +00:00
Notify lookup sync of gossip processing results (#5722)
* Notify lookup sync of gossip processing results * Add tests * Add GossipBlockProcessResult event * Re-add dropped comments * Update beacon_node/network/src/network_beacon_processor/sync_methods.rs * update test_lookup_disconnection_peer_left
This commit is contained in:
@@ -84,10 +84,11 @@ impl<T: BeaconChainTypes> DataAvailabilityChecker<T> {
|
||||
})
|
||||
}
|
||||
|
||||
/// Checks if the block root is currenlty in the availability cache awaiting processing because
|
||||
/// Checks if the block root is currenlty in the availability cache awaiting import because
|
||||
/// of missing components.
|
||||
pub fn has_block(&self, block_root: &Hash256) -> bool {
|
||||
self.availability_cache.has_block(block_root)
|
||||
pub fn has_execution_valid_block(&self, block_root: &Hash256) -> bool {
|
||||
self.availability_cache
|
||||
.has_execution_valid_block(block_root)
|
||||
}
|
||||
|
||||
/// Return the required blobs `block_root` expects if the block is currenlty in the cache.
|
||||
|
||||
Reference in New Issue
Block a user