File tree Expand file tree Collapse file tree 5 files changed +14
-7
lines changed
beacon_node/beacon_chain/src Expand file tree Collapse file tree 5 files changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -350,7 +350,7 @@ jobs:
350
350
- name : Check formatting with cargo fmt
351
351
run : make cargo-fmt
352
352
- name : Lint code for quality and style with Clippy
353
- run : make lint
353
+ run : make lint-full
354
354
- name : Certify Cargo.lock freshness
355
355
run : git diff --exit-code Cargo.lock
356
356
- name : Typecheck benchmark code without running it
Original file line number Diff line number Diff line change @@ -204,7 +204,7 @@ test-full: cargo-fmt test-release test-debug test-ef test-exec-engine
204
204
# Lints the code for bad style and potentially unsafe arithmetic using Clippy.
205
205
# Clippy lints are opt-in per-crate for now. By default, everything is allowed except for performance and correctness lints.
206
206
lint :
207
- RUSTFLAGS= " -C debug-assertions=no $( RUSTFLAGS ) " cargo clippy --workspace --benches --tests $(EXTRA_CLIPPY_OPTS ) --features " $( TEST_FEATURES) " -- \
207
+ cargo clippy --workspace --benches --tests $(EXTRA_CLIPPY_OPTS ) --features " $( TEST_FEATURES) " -- \
208
208
-D clippy::fn_to_numeric_cast_any \
209
209
-D clippy::manual_let_else \
210
210
-D clippy::large_stack_frames \
@@ -220,6 +220,10 @@ lint:
220
220
lint-fix :
221
221
EXTRA_CLIPPY_OPTS=" --fix --allow-staged --allow-dirty" $(MAKE ) lint
222
222
223
+ # Also run the lints on the optimized-only tests
224
+ lint-full :
225
+ RUSTFLAGS=" -C debug-assertions=no $( RUSTFLAGS) " $(MAKE ) lint
226
+
223
227
# Runs the makefile in the `ef_tests` repo.
224
228
#
225
229
# May download and extract an archive of test vectors from the ethereum
Original file line number Diff line number Diff line change @@ -246,13 +246,15 @@ fn build_data_column_sidecars<E: EthSpec>(
246
246
247
247
/// Reconstruct blobs from a subset of data column sidecars (requires at least 50%).
248
248
///
249
- /// If `blob_indices_opt` is `None`, this function attempts to reconstruct all blobs.
249
+ /// If `blob_indices_opt` is `None`, this function attempts to reconstruct all blobs associated
250
+ /// with the block.
250
251
pub fn reconstruct_blobs < E : EthSpec > (
251
252
kzg : & Kzg ,
252
253
data_columns : & [ Arc < DataColumnSidecar < E > > ] ,
253
254
blob_indices_opt : Option < Vec < u64 > > ,
254
255
signed_block : & SignedBlindedBeaconBlock < E > ,
255
256
) -> Result < BlobSidecarList < E > , String > {
257
+ // The data columns are from the database, so we assume their correctness.
256
258
let first_data_column = data_columns
257
259
. first ( )
258
260
. ok_or ( "data_columns should have at least one element" . to_string ( ) ) ?;
Original file line number Diff line number Diff line change @@ -3,17 +3,18 @@ participants:
3
3
cl_image : lighthouse:local
4
4
cl_extra_params :
5
5
- --subscribe-all-data-column-subnets
6
- - --target-peers=2
6
+ - --target-peers=3
7
7
count : 2
8
8
- cl_type : lighthouse
9
9
cl_image : lighthouse:local
10
10
cl_extra_params :
11
- - --target-peers=2
12
- count : 1
11
+ - --target-peers=3
12
+ count : 2
13
13
network_params :
14
14
eip7594_fork_epoch : 0
15
15
seconds_per_slot : 6
16
16
snooper_enabled : false
17
+ global_log_level : debug
17
18
additional_services :
18
19
- dora
19
20
- goomy_blob
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ set -Eeuo pipefail
7
7
SCRIPT_DIR=" $( cd -- " $( dirname -- " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd ) "
8
8
ENCLAVE_NAME=local-testnet
9
9
NETWORK_PARAMS_FILE=$SCRIPT_DIR /network_params.yaml
10
- ETHEREUM_PKG_VERSION=4.4.0
10
+ ETHEREUM_PKG_VERSION=main
11
11
12
12
BUILD_IMAGE=true
13
13
BUILDER_PROPOSALS=false
You can’t perform that action at this time.
0 commit comments