mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-17 04:48:21 +00:00
Try fixing tests
This commit is contained in:
@@ -206,6 +206,10 @@ fn update_blob_signed_header<E: EthSpec>(
|
||||
signed_block: &SignedBeaconBlock<E>,
|
||||
blobs: &mut BlobSidecarList<E>,
|
||||
) {
|
||||
// Required to prevent as_mut_slice being called on an uninitialized list. Yuck.
|
||||
if blobs.is_empty() {
|
||||
return;
|
||||
}
|
||||
for old_blob_sidecar in blobs.as_mut_slice().unwrap() {
|
||||
let new_blob = Arc::new(BlobSidecar::<E> {
|
||||
index: old_blob_sidecar.index,
|
||||
|
||||
Reference in New Issue
Block a user