Skip to content

Commit 6d34c11

Browse files
authored
Merge branch 'unstable' into kw/beacon-chain-processor-bb-blb
2 parents e22635c + 2c9b670 commit 6d34c11

File tree

35 files changed

+189
-221
lines changed

35 files changed

+189
-221
lines changed

Cargo.lock

Lines changed: 3 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ resolver = "2"
9494

9595
[workspace.package]
9696
edition = "2024"
97+
version = "8.0.0-rc.2"
9798

9899
[workspace.dependencies]
99100
account_utils = { path = "common/account_utils" }

account_manager/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "account_manager"
3-
version = "0.3.5"
3+
version = { workspace = true }
44
authors = [
55
"Paul Hauner <paul@paulhauner.com>",
66
"Luke Anderson <luke@sigmaprime.io>",

beacon_node/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "beacon_node"
3-
version = "8.0.0-rc.2"
3+
version = { workspace = true }
44
authors = [
55
"Paul Hauner <paul@paulhauner.com>",
66
"Age Manning <Age@AgeManning.com",

beacon_node/beacon_chain/src/attestation_verification.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1371,7 +1371,7 @@ pub fn verify_signed_aggregate_signatures<T: BeaconChainTypes>(
13711371
.spec
13721372
.fork_at_epoch(indexed_attestation.data().target.epoch);
13731373

1374-
let signature_sets = vec![
1374+
let signature_sets = [
13751375
signed_aggregate_selection_proof_signature_set(
13761376
|validator_index| pubkey_cache.get(validator_index).map(Cow::Borrowed),
13771377
signed_aggregate,

beacon_node/beacon_chain/src/sync_committee_verification.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ pub fn verify_signed_aggregate_signatures<T: BeaconChainTypes>(
628628
(signed_aggregate.message.contribution.slot + 1).epoch(T::EthSpec::slots_per_epoch());
629629
let fork = chain.spec.fork_at_epoch(next_slot_epoch);
630630

631-
let signature_sets = vec![
631+
let signature_sets = [
632632
signed_sync_aggregate_selection_proof_signature_set(
633633
|validator_index| pubkey_cache.get(validator_index).map(Cow::Borrowed),
634634
signed_aggregate,

beacon_node/client/src/notifier.rs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -298,28 +298,28 @@ pub fn spawn_notifier<T: BeaconChainTypes>(
298298

299299
let speed = speedo.slots_per_second();
300300
let display_speed = speed.is_some_and(|speed| speed != 0.0);
301-
301+
let est_time_in_secs = if let (Some(da_boundary_epoch), Some(original_slot)) = (
302+
beacon_chain.get_column_da_boundary(),
303+
original_earliest_data_column_slot,
304+
) {
305+
let target = original_slot.saturating_sub(
306+
da_boundary_epoch.start_slot(T::EthSpec::slots_per_epoch()),
307+
);
308+
speedo.estimated_time_till_slot(target)
309+
} else {
310+
None
311+
};
302312
if display_speed {
303313
info!(
304314
distance,
305315
speed = sync_speed_pretty(speed),
306-
est_time =
307-
estimated_time_pretty(beacon_chain.get_column_da_boundary().and_then(
308-
|da_boundary| speedo.estimated_time_till_slot(
309-
da_boundary.start_slot(T::EthSpec::slots_per_epoch())
310-
)
311-
)),
316+
est_time = estimated_time_pretty(est_time_in_secs),
312317
"Downloading historical data columns"
313318
);
314319
} else {
315320
info!(
316321
distance,
317-
est_time =
318-
estimated_time_pretty(beacon_chain.get_column_da_boundary().and_then(
319-
|da_boundary| speedo.estimated_time_till_slot(
320-
da_boundary.start_slot(T::EthSpec::slots_per_epoch())
321-
)
322-
)),
322+
est_time = estimated_time_pretty(est_time_in_secs),
323323
"Downloading historical data columns"
324324
);
325325
}

beacon_node/execution_layer/src/test_utils/execution_block_generator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ use super::DEFAULT_TERMINAL_BLOCK;
2929
const TEST_BLOB_BUNDLE: &[u8] = include_bytes!("fixtures/mainnet/test_blobs_bundle.ssz");
3030
const TEST_BLOB_BUNDLE_V2: &[u8] = include_bytes!("fixtures/mainnet/test_blobs_bundle_v2.ssz");
3131

32-
pub const DEFAULT_GAS_LIMIT: u64 = 45_000_000;
32+
pub const DEFAULT_GAS_LIMIT: u64 = 60_000_000;
3333
const GAS_USED: u64 = DEFAULT_GAS_LIMIT - 1;
3434

3535
#[derive(Clone, Debug, PartialEq)]

beacon_node/execution_layer/src/test_utils/mock_builder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ use warp::reply::{self, Reply};
4040
use warp::{Filter, Rejection};
4141

4242
pub const DEFAULT_FEE_RECIPIENT: Address = Address::repeat_byte(42);
43-
pub const DEFAULT_GAS_LIMIT: u64 = 45_000_000;
43+
pub const DEFAULT_GAS_LIMIT: u64 = 60_000_000;
4444
pub const DEFAULT_BUILDER_PRIVATE_KEY: &str =
4545
"607a11b45a7219cc61a3d9c5fd08c7eebd602a6a19a977f8d3771d5711a550f2";
4646

beacon_node/http_api/tests/tests.rs

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1316,12 +1316,14 @@ impl ApiTester {
13161316
.ok()
13171317
.map(|(state, _execution_optimistic, _finalized)| state);
13181318

1319-
let result = self
1319+
let result = match self
13201320
.client
13211321
.get_beacon_states_pending_deposits(state_id.0)
13221322
.await
1323-
.unwrap()
1324-
.map(|res| res.data);
1323+
{
1324+
Ok(response) => response,
1325+
Err(e) => panic!("query failed incorrectly: {e:?}"),
1326+
};
13251327

13261328
if result.is_none() && state_opt.is_none() {
13271329
continue;
@@ -1330,7 +1332,12 @@ impl ApiTester {
13301332
let state = state_opt.as_mut().expect("result should be none");
13311333
let expected = state.pending_deposits().unwrap();
13321334

1333-
assert_eq!(result.unwrap(), expected.to_vec());
1335+
let response = result.unwrap();
1336+
assert_eq!(response.data(), &expected.to_vec());
1337+
1338+
// Check that the version header is returned in the response
1339+
let fork_name = state.fork_name(&self.chain.spec).unwrap();
1340+
assert_eq!(response.version(), Some(fork_name),);
13341341
}
13351342

13361343
self
@@ -1343,12 +1350,14 @@ impl ApiTester {
13431350
.ok()
13441351
.map(|(state, _execution_optimistic, _finalized)| state);
13451352

1346-
let result = self
1353+
let result = match self
13471354
.client
13481355
.get_beacon_states_pending_partial_withdrawals(state_id.0)
13491356
.await
1350-
.unwrap()
1351-
.map(|res| res.data);
1357+
{
1358+
Ok(response) => response,
1359+
Err(e) => panic!("query failed incorrectly: {e:?}"),
1360+
};
13521361

13531362
if result.is_none() && state_opt.is_none() {
13541363
continue;
@@ -1357,7 +1366,12 @@ impl ApiTester {
13571366
let state = state_opt.as_mut().expect("result should be none");
13581367
let expected = state.pending_partial_withdrawals().unwrap();
13591368

1360-
assert_eq!(result.unwrap(), expected.to_vec());
1369+
let response = result.unwrap();
1370+
assert_eq!(response.data(), &expected.to_vec());
1371+
1372+
// Check that the version header is returned in the response
1373+
let fork_name = state.fork_name(&self.chain.spec).unwrap();
1374+
assert_eq!(response.version(), Some(fork_name),);
13611375
}
13621376

13631377
self

0 commit comments

Comments
 (0)