File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 11use crate :: application_domain:: { ApplicationDomain , APPLICATION_DOMAIN_BUILDER } ;
2+ use crate :: blob_sidecar:: BlobIdentifier ;
23use crate :: * ;
34use int_to_bytes:: int_to_bytes4;
45use serde:: Deserialize ;
@@ -1292,8 +1293,13 @@ fn max_blocks_by_root_request_common(max_request_blocks: u64) -> usize {
12921293
12931294fn max_blobs_by_root_request_common ( max_request_blob_sidecars : u64 ) -> usize {
12941295 let max_request_blob_sidecars = max_request_blob_sidecars as usize ;
1295- RuntimeVariableList :: < Hash256 > :: from_vec (
1296- vec ! [ Hash256 :: zero( ) ; max_request_blob_sidecars] ,
1296+ let empty_blob_identifier = BlobIdentifier {
1297+ block_root : Hash256 :: zero ( ) ,
1298+ index : 0 ,
1299+ } ;
1300+
1301+ RuntimeVariableList :: < BlobIdentifier > :: from_vec (
1302+ vec ! [ empty_blob_identifier; max_request_blob_sidecars] ,
12971303 max_request_blob_sidecars,
12981304 )
12991305 . as_ssz_bytes ( )
You can’t perform that action at this time.
0 commit comments