Merge branch 'unstable' of https://github.com/sigp/lighthouse into gloas-range-sync

This commit is contained in:
Eitan Seri-Levi
2026-04-30 15:54:22 +02:00
56 changed files with 1162 additions and 276 deletions

View File

@@ -3642,6 +3642,23 @@ impl<T: BeaconChainTypes> NetworkBeaconProcessor<T> {
self.propagate_if_timely(is_timely, message_id, peer_id)
}
/// If a payload envelope is still valid with respect to the current time (i.e., its slot
/// matches the current slot), propagate it on gossip. Otherwise, ignore it.
fn propagate_envelope_if_timely(
&self,
envelope_slot: Slot,
message_id: MessageId,
peer_id: PeerId,
) {
let is_timely = self
.chain
.slot_clock
.now()
.is_some_and(|current_slot| envelope_slot == current_slot);
self.propagate_if_timely(is_timely, message_id, peer_id)
}
/// If a sync committee signature or sync committee contribution is still valid with respect to
/// the current time (i.e., timely), propagate it on gossip. Otherwise, ignore it.
fn propagate_sync_message_if_timely(
@@ -3846,6 +3863,12 @@ impl<T: BeaconChainTypes> NetworkBeaconProcessor<T> {
let process_fn = Box::pin(async move {
match chain.verify_envelope_for_gossip(envelope).await {
Ok(verified_envelope) => {
let envelope_slot = verified_envelope.signed_envelope.slot();
inner_self.propagate_envelope_if_timely(
envelope_slot,
message_id,
peer_id,
);
inner_self
.process_gossip_verified_execution_payload_envelope(
peer_id,

View File

@@ -2131,6 +2131,7 @@ fn make_test_payload_envelope(
execution_requests: ExecutionRequests::default(),
builder_index: 0,
beacon_block_root,
parent_beacon_block_root: Hash256::ZERO,
},
signature: Signature::empty(),
}

View File

@@ -148,13 +148,13 @@ pub fn init_tracing() {
INIT_TRACING.call_once(|| {
if std::env::var(CI_LOGGER_DIR_ENV_VAR).is_ok() {
// Enable logging to log files for each test and each fork.
tracing_subscriber::registry()
let _ = tracing_subscriber::registry()
.with(
tracing_subscriber::fmt::layer()
.with_ansi(false)
.with_writer(CILogWriter),
)
.init();
.try_init();
}
});
}