mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-18 05:18:30 +00:00
Prevent sync lookups from reverting to awaiting block (#6443)
* Prevent sync lookups from reverting to awaiting block * Remove stale comment
This commit is contained in:
@@ -450,7 +450,9 @@ impl<T: BeaconChainTypes> BlockLookups<T> {
|
||||
};
|
||||
|
||||
let block_root = lookup.block_root();
|
||||
let request_state = R::request_state_mut(lookup).get_state_mut();
|
||||
let request_state = R::request_state_mut(lookup)
|
||||
.map_err(|e| LookupRequestError::BadState(e.to_owned()))?
|
||||
.get_state_mut();
|
||||
|
||||
match response {
|
||||
Ok((response, peer_group, seen_timestamp)) => {
|
||||
@@ -545,7 +547,9 @@ impl<T: BeaconChainTypes> BlockLookups<T> {
|
||||
};
|
||||
|
||||
let block_root = lookup.block_root();
|
||||
let request_state = R::request_state_mut(lookup).get_state_mut();
|
||||
let request_state = R::request_state_mut(lookup)
|
||||
.map_err(|e| LookupRequestError::BadState(e.to_owned()))?
|
||||
.get_state_mut();
|
||||
|
||||
debug!(
|
||||
self.log,
|
||||
|
||||
Reference in New Issue
Block a user