Skip to content

Commit a9537f9

Browse files
committed
Merge branch 'unstable' into peerdas-get-blob-sidecars
2 parents b8c9e7c + f51a292 commit a9537f9

File tree

5 files changed

+14
-7
lines changed

5 files changed

+14
-7
lines changed

.github/workflows/test-suite.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ jobs:
350350
- name: Check formatting with cargo fmt
351351
run: make cargo-fmt
352352
- name: Lint code for quality and style with Clippy
353-
run: make lint
353+
run: make lint-full
354354
- name: Certify Cargo.lock freshness
355355
run: git diff --exit-code Cargo.lock
356356
- name: Typecheck benchmark code without running it

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ test-full: cargo-fmt test-release test-debug test-ef test-exec-engine
204204
# Lints the code for bad style and potentially unsafe arithmetic using Clippy.
205205
# Clippy lints are opt-in per-crate for now. By default, everything is allowed except for performance and correctness lints.
206206
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)" -- \
208208
-D clippy::fn_to_numeric_cast_any \
209209
-D clippy::manual_let_else \
210210
-D clippy::large_stack_frames \
@@ -220,6 +220,10 @@ lint:
220220
lint-fix:
221221
EXTRA_CLIPPY_OPTS="--fix --allow-staged --allow-dirty" $(MAKE) lint
222222

223+
# Also run the lints on the optimized-only tests
224+
lint-full:
225+
RUSTFLAGS="-C debug-assertions=no $(RUSTFLAGS)" $(MAKE) lint
226+
223227
# Runs the makefile in the `ef_tests` repo.
224228
#
225229
# May download and extract an archive of test vectors from the ethereum

beacon_node/beacon_chain/src/kzg_utils.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,13 +246,15 @@ fn build_data_column_sidecars<E: EthSpec>(
246246

247247
/// Reconstruct blobs from a subset of data column sidecars (requires at least 50%).
248248
///
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.
250251
pub fn reconstruct_blobs<E: EthSpec>(
251252
kzg: &Kzg,
252253
data_columns: &[Arc<DataColumnSidecar<E>>],
253254
blob_indices_opt: Option<Vec<u64>>,
254255
signed_block: &SignedBlindedBeaconBlock<E>,
255256
) -> Result<BlobSidecarList<E>, String> {
257+
// The data columns are from the database, so we assume their correctness.
256258
let first_data_column = data_columns
257259
.first()
258260
.ok_or("data_columns should have at least one element".to_string())?;

scripts/local_testnet/network_params_das.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,18 @@ participants:
33
cl_image: lighthouse:local
44
cl_extra_params:
55
- --subscribe-all-data-column-subnets
6-
- --target-peers=2
6+
- --target-peers=3
77
count: 2
88
- cl_type: lighthouse
99
cl_image: lighthouse:local
1010
cl_extra_params:
11-
- --target-peers=2
12-
count: 1
11+
- --target-peers=3
12+
count: 2
1313
network_params:
1414
eip7594_fork_epoch: 0
1515
seconds_per_slot: 6
1616
snooper_enabled: false
17+
global_log_level: debug
1718
additional_services:
1819
- dora
1920
- goomy_blob

scripts/local_testnet/start_local_testnet.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ set -Eeuo pipefail
77
SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
88
ENCLAVE_NAME=local-testnet
99
NETWORK_PARAMS_FILE=$SCRIPT_DIR/network_params.yaml
10-
ETHEREUM_PKG_VERSION=4.4.0
10+
ETHEREUM_PKG_VERSION=main
1111

1212
BUILD_IMAGE=true
1313
BUILDER_PROPOSALS=false

0 commit comments

Comments
 (0)