mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-08 17:26:04 +00:00
rename early attester cache method
This commit is contained in:
@@ -1128,7 +1128,7 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
|
|||||||
/// ## Errors
|
/// ## Errors
|
||||||
///
|
///
|
||||||
/// May return a database error.
|
/// May return a database error.
|
||||||
pub fn get_blocks_checking_early_attester_cache(
|
pub fn get_blocks_checking_caches(
|
||||||
self: &Arc<Self>,
|
self: &Arc<Self>,
|
||||||
block_roots: Vec<Hash256>,
|
block_roots: Vec<Hash256>,
|
||||||
executor: &TaskExecutor,
|
executor: &TaskExecutor,
|
||||||
|
|||||||
@@ -140,7 +140,7 @@ impl<T: BeaconChainTypes> NetworkBeaconProcessor<T> {
|
|||||||
let requested_blocks = request.block_roots().len();
|
let requested_blocks = request.block_roots().len();
|
||||||
let mut block_stream = match self
|
let mut block_stream = match self
|
||||||
.chain
|
.chain
|
||||||
.get_blocks_checking_early_attester_cache(request.block_roots().to_vec(), &executor)
|
.get_blocks_checking_caches(request.block_roots().to_vec(), &executor)
|
||||||
{
|
{
|
||||||
Ok(block_stream) => block_stream,
|
Ok(block_stream) => block_stream,
|
||||||
Err(e) => return error!(self.log, "Error getting block stream"; "error" => ?e),
|
Err(e) => return error!(self.log, "Error getting block stream"; "error" => ?e),
|
||||||
|
|||||||
Reference in New Issue
Block a user