mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-14 10:22:38 +00:00
Merge branch 'unstable' of https://github.com/sigp/lighthouse into electra_attestation_changes
This commit is contained in:
@@ -239,6 +239,11 @@ impl TestRig {
|
||||
Some(work_journal_tx),
|
||||
harness.chain.slot_clock.clone(),
|
||||
chain.spec.maximum_gossip_clock_disparity(),
|
||||
BeaconProcessorQueueLengths::from_state(
|
||||
&chain.canonical_head.cached_head().snapshot.beacon_state,
|
||||
&chain.spec,
|
||||
)
|
||||
.unwrap(),
|
||||
);
|
||||
|
||||
assert!(beacon_processor.is_ok());
|
||||
|
||||
@@ -613,7 +613,15 @@ impl<T: BeaconChainTypes> NetworkService<T> {
|
||||
request,
|
||||
request_id,
|
||||
} => {
|
||||
self.libp2p.send_request(peer_id, request_id, request);
|
||||
if let Err((request_id, error)) =
|
||||
self.libp2p.send_request(peer_id, request_id, request)
|
||||
{
|
||||
self.send_to_router(RouterMessage::RPCFailed {
|
||||
peer_id,
|
||||
request_id,
|
||||
error,
|
||||
});
|
||||
}
|
||||
}
|
||||
NetworkMessage::SendResponse {
|
||||
peer_id,
|
||||
|
||||
Reference in New Issue
Block a user