mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-30 12:47:05 +00:00
remove unneeded field
This commit is contained in:
@@ -42,22 +42,21 @@ pub use execution_pending_envelope::ExecutionPendingEnvelope;
|
|||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub struct AvailableEnvelope<E: EthSpec> {
|
pub struct AvailableEnvelope<E: EthSpec> {
|
||||||
pub execution_block_hash: ExecutionBlockHash,
|
envelope: Arc<SignedExecutionPayloadEnvelope<E>>,
|
||||||
pub envelope: Arc<SignedExecutionPayloadEnvelope<E>>,
|
|
||||||
pub columns: DataColumnSidecarList<E>,
|
pub columns: DataColumnSidecarList<E>,
|
||||||
|
// TODO(gloas) this field is unread, do we need it?
|
||||||
|
#[expect(dead_code)]
|
||||||
/// Timestamp at which this envelope first became available (UNIX timestamp, time since 1970).
|
/// Timestamp at which this envelope first became available (UNIX timestamp, time since 1970).
|
||||||
pub columns_available_timestamp: Option<std::time::Duration>,
|
columns_available_timestamp: Option<std::time::Duration>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<E: EthSpec> AvailableEnvelope<E> {
|
impl<E: EthSpec> AvailableEnvelope<E> {
|
||||||
pub fn new(
|
pub fn new(
|
||||||
execution_block_hash: ExecutionBlockHash,
|
|
||||||
envelope: Arc<SignedExecutionPayloadEnvelope<E>>,
|
envelope: Arc<SignedExecutionPayloadEnvelope<E>>,
|
||||||
columns: DataColumnSidecarList<E>,
|
columns: DataColumnSidecarList<E>,
|
||||||
columns_available_timestamp: Option<std::time::Duration>,
|
columns_available_timestamp: Option<std::time::Duration>,
|
||||||
) -> Self {
|
) -> Self {
|
||||||
Self {
|
Self {
|
||||||
execution_block_hash,
|
|
||||||
envelope,
|
envelope,
|
||||||
columns,
|
columns,
|
||||||
columns_available_timestamp,
|
columns_available_timestamp,
|
||||||
|
|||||||
@@ -159,12 +159,7 @@ impl<E: EthSpec> PendingComponents<E> {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
let available_envelope = AvailableEnvelope {
|
let available_envelope = AvailableEnvelope::new(envelope.clone(), columns, None);
|
||||||
execution_block_hash: envelope.block_hash(),
|
|
||||||
envelope: envelope.clone(),
|
|
||||||
columns,
|
|
||||||
columns_available_timestamp: None,
|
|
||||||
};
|
|
||||||
|
|
||||||
Ok(Some(AvailableExecutedEnvelope {
|
Ok(Some(AvailableExecutedEnvelope {
|
||||||
envelope: available_envelope,
|
envelope: available_envelope,
|
||||||
|
|||||||
Reference in New Issue
Block a user