File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
beacon_node/lighthouse_network/tests Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -1018,7 +1018,7 @@ fn test_tcp_columns_by_root_chunked_rpc() {
1018
1018
} ,
1019
1019
signature : Signature :: empty ( ) ,
1020
1020
} ,
1021
- column : vec ! [ vec![ 0 ; E :: bytes_per_blob ( ) ] . try_into( ) . unwrap( ) ]
1021
+ column : vec ! [ vec![ 0 ; E :: bytes_per_cell ( ) ] . try_into( ) . unwrap( ) ]
1022
1022
. try_into ( )
1023
1023
. unwrap ( ) ,
1024
1024
kzg_commitments : vec ! [ KzgCommitment :: empty_for_testing( ) ] . try_into ( ) . unwrap ( ) ,
@@ -1163,7 +1163,7 @@ fn test_tcp_columns_by_range_chunked_rpc() {
1163
1163
} ,
1164
1164
signature : Signature :: empty ( ) ,
1165
1165
} ,
1166
- column : vec ! [ vec![ 0 ; E :: bytes_per_blob ( ) ] . try_into( ) . unwrap( ) ]
1166
+ column : vec ! [ vec![ 0 ; E :: bytes_per_cell ( ) ] . try_into( ) . unwrap( ) ]
1167
1167
. try_into ( )
1168
1168
. unwrap ( ) ,
1169
1169
kzg_commitments : vec ! [ KzgCommitment :: empty_for_testing( ) ] . try_into ( ) . unwrap ( ) ,
Original file line number Diff line number Diff line change @@ -310,6 +310,11 @@ pub trait EthSpec: 'static + Default + Sync + Send + Clone + Debug + PartialEq +
310
310
Self :: BytesPerBlob :: to_usize ( )
311
311
}
312
312
313
+ /// Returns the `BYTES_PER_CELL` constant for this specification.
314
+ fn bytes_per_cell ( ) -> usize {
315
+ Self :: BytesPerCell :: to_usize ( )
316
+ }
317
+
313
318
/// Returns the `KZG_COMMITMENT_INCLUSION_PROOF_DEPTH` preset for this specification.
314
319
fn kzg_proof_inclusion_proof_depth ( ) -> usize {
315
320
Self :: KzgCommitmentInclusionProofDepth :: to_usize ( )
You can’t perform that action at this time.
0 commit comments