This commit is contained in:
dapplion
2026-06-06 11:54:55 +02:00
parent 7d71c47a66
commit 7eda80b492
5 changed files with 19 additions and 94 deletions

View File

@@ -17,7 +17,7 @@ use std::{
};
use types::{
AttestationShufflingId, ChainSpec, Checkpoint, Epoch, EthSpec, ExecutionBlockHash, Hash256,
SignedExecutionPayloadBid, Slot,
Slot,
};
pub const DEFAULT_PRUNE_THRESHOLD: usize = 256;
@@ -292,19 +292,6 @@ impl Block {
}
}
}
pub fn is_child_full<E: EthSpec>(&self, child_bid: &SignedExecutionPayloadBid<E>) -> bool {
if let Some(execution_payload_block_hash) = self.execution_payload_block_hash {
execution_payload_block_hash == child_bid.message.parent_block_hash
} else if let Some(execution_block_hash) = self.execution_status.block_hash() {
// Parent is before Gloas, and child is gloas
execution_block_hash == child_bid.message.parent_block_hash
} else {
// TODO(gloas): What to return here? The child is Gloas but parent doesn't have an
// execution hash
false
}
}
}
/// A Vec-wrapper which will grow to match any request.