Skip to content

Commit c46cb0b

Browse files
committed
Merge remote-tracking branch 'origin/release-v8.0' into unstable
2 parents af9cae4 + 55588f7 commit c46cb0b

File tree

13 files changed

+28
-33
lines changed

13 files changed

+28
-33
lines changed

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

book/src/advanced_builders.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ relays, run one of the following services and configure lighthouse to use it wit
6060
## Validator Client Configuration
6161

6262
In the validator client you can configure gas limit and fee recipient on a per-validator basis. If no gas limit is
63-
configured, Lighthouse will use a default gas limit of 45,000,000, which is the current default value used in execution
63+
configured, Lighthouse will use a default gas limit of 60,000,000, which is the current default value used in execution
6464
engines. You can also enable or disable use of external builders on a per-validator basis rather than using
6565
`--builder-proposals`, `--builder-boost-factor` or `--prefer-builder-proposals`, which apply builder related preferences for all validators.
6666
In order to manage these configurations per-validator, you can either make updates to the `validator_definitions.yml` file
@@ -75,7 +75,7 @@ transaction within the block to the fee recipient, so a discrepancy in fee recip
7575
is something afoot.
7676

7777
> Note: The gas limit configured here is effectively a vote on block size, so the configuration should not be taken lightly.
78-
> 45,000,000 is currently seen as a value balancing block size with how expensive it is for
78+
> 60,000,000 is currently seen as a value balancing block size with how expensive it is for
7979
> the network to validate blocks. So if you don't feel comfortable making an informed "vote", using the default value is
8080
> encouraged. We will update the default value if the community reaches a rough consensus on a new value.
8181

book/src/help_vc.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Options:
4040
The gas limit to be used in all builder proposals for all validators
4141
managed by this validator client. Note this will not necessarily be
4242
used if the gas limit set here moves too far from the previous block's
43-
gas limit. [default: 45000000]
43+
gas limit. [default: 60000000]
4444
--genesis-state-url <URL>
4545
A URL of a beacon-API compatible server from which to download the
4646
genesis state. Checkpoint sync server URLs can generally be used with

common/eth2/src/types.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1522,20 +1522,15 @@ pub struct ForkChoiceNode {
15221522
pub execution_block_hash: Option<Hash256>,
15231523
}
15241524

1525-
#[derive(Copy, Clone, Debug, Serialize, Deserialize, PartialEq, Eq)]
1525+
#[derive(Copy, Clone, Debug, Default, Serialize, Deserialize, PartialEq, Eq)]
15261526
#[serde(rename_all = "snake_case")]
15271527
pub enum BroadcastValidation {
1528+
#[default]
15281529
Gossip,
15291530
Consensus,
15301531
ConsensusAndEquivocation,
15311532
}
15321533

1533-
impl Default for BroadcastValidation {
1534-
fn default() -> Self {
1535-
Self::Gossip
1536-
}
1537-
}
1538-
15391534
impl Display for BroadcastValidation {
15401535
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
15411536
match self {

lighthouse/tests/validator_client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ fn no_doppelganger_protection_flag() {
505505
fn no_gas_limit_flag() {
506506
CommandLineTest::new()
507507
.run()
508-
.with_config(|config| assert!(config.validator_store.gas_limit == Some(45_000_000)));
508+
.with_config(|config| assert!(config.validator_store.gas_limit == Some(60_000_000)));
509509
}
510510
#[test]
511511
fn gas_limit_flag() {

validator_client/http_api/src/tests/keystores.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2091,7 +2091,7 @@ async fn import_remotekey_web3signer_disabled() {
20912091
// Import web3signers.
20922092
tester
20932093
.client
2094-
.post_lighthouse_validators_web3signer(&vec![web3signer_req])
2094+
.post_lighthouse_validators_web3signer(&[web3signer_req])
20952095
.await
20962096
.unwrap();
20972097

@@ -2146,7 +2146,7 @@ async fn import_remotekey_web3signer_enabled() {
21462146
// Import web3signers.
21472147
tester
21482148
.client
2149-
.post_lighthouse_validators_web3signer(&vec![web3signer_req.clone()])
2149+
.post_lighthouse_validators_web3signer(&[web3signer_req.clone()])
21502150
.await
21512151
.unwrap();
21522152

0 commit comments

Comments
 (0)