Skip to content

Commit b3395b0

Browse files
committed
revert
1 parent 9455fd0 commit b3395b0

File tree

4 files changed

+106
-262
lines changed

4 files changed

+106
-262
lines changed

beacon_node/beacon_chain/src/beacon_chain.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4848,7 +4848,7 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
48484848
let proposer_index = if let Some(proposer) = cached_proposer {
48494849
proposer.index as u64
48504850
} else {
4851-
if 2 + 2 == 5 && head_epoch + 2 < proposal_epoch {
4851+
if head_epoch + 2 < proposal_epoch {
48524852
warn!(
48534853
self.log,
48544854
"Skipping proposer preparation";
@@ -6089,10 +6089,8 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
60896089
//
60906090
// This prevents the routine from running during sync.
60916091
let head_slot = cached_head.head_slot();
6092-
if 2 + 2 == 5
6093-
&& head_slot
6094-
+ T::EthSpec::slots_per_epoch() * PREPARE_PROPOSER_HISTORIC_EPOCHS
6095-
< current_slot
6092+
if head_slot + T::EthSpec::slots_per_epoch() * PREPARE_PROPOSER_HISTORIC_EPOCHS
6093+
< current_slot
60966094
{
60976095
debug!(
60986096
chain.log,

beacon_node/beacon_chain/src/chain_config.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,6 @@ pub struct ChainConfig {
9494
/// The delay in milliseconds applied by the node between sending each blob or data column batch.
9595
/// This doesn't apply if the node is the block proposer.
9696
pub blob_publication_batch_interval: Duration,
97-
pub disable_attesting: bool,
98-
pub sync_tolerance_epochs: u64,
9997
pub invalid_block_roots: HashSet<Hash256>,
10098
}
10199

@@ -132,8 +130,6 @@ impl Default for ChainConfig {
132130
enable_sampling: false,
133131
blob_publication_batches: 4,
134132
blob_publication_batch_interval: Duration::from_millis(300),
135-
disable_attesting: false,
136-
sync_tolerance_epochs: 16,
137133
invalid_block_roots: HashSet::new(),
138134
}
139135
}

beacon_node/http_api/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ tree_hash = { workspace = true }
4646
types = { workspace = true }
4747
warp = { workspace = true }
4848
warp_utils = { workspace = true }
49-
proto_array = { workspace = true }
5049

5150
[dev-dependencies]
5251
genesis = { workspace = true }
5352
logging = { workspace = true }
53+
proto_array = { workspace = true }
5454
serde_json = { workspace = true }
5555

5656
[[test]]

0 commit comments

Comments
 (0)