Skip to content

Commit

Permalink
Fix conflict with blob sidecars epochs
Browse files Browse the repository at this point in the history
  • Loading branch information
paulhauner committed Jan 9, 2024
1 parent 18753f1 commit 81610c1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions beacon_node/client/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ use std::time::{SystemTime, UNIX_EPOCH};
use timer::spawn_timer;
use tokio::sync::oneshot;
use types::{
consts::deneb::MIN_EPOCHS_FOR_BLOB_SIDECARS_REQUESTS,
test_utils::generate_deterministic_keypairs, BeaconState, ChainSpec, EthSpec,
ExecutionBlockHash, Hash256, SignedBeaconBlock,
};
Expand Down Expand Up @@ -279,8 +278,8 @@ where
// Shrink the blob availability window so users don't start
// a sync right before blobs start to disappear from the P2P
// network.
let reduced_p2p_availability_epochs = MIN_EPOCHS_FOR_BLOB_SIDECARS_REQUESTS
.as_u64()
let reduced_p2p_availability_epochs = spec
.min_epochs_for_blob_sidecars_requests
.saturating_sub(BLOB_AVAILABILITY_REDUCTION_EPOCHS);
let blob_availability_window = reduced_p2p_availability_epochs
* TEthSpec::slots_per_epoch()
Expand Down

0 comments on commit 81610c1

Please sign in to comment.