File tree Expand file tree Collapse file tree 4 files changed +106
-262
lines changed Expand file tree Collapse file tree 4 files changed +106
-262
lines changed Original file line number Diff line number Diff line change @@ -4848,7 +4848,7 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
4848
4848
let proposer_index = if let Some ( proposer) = cached_proposer {
4849
4849
proposer. index as u64
4850
4850
} else {
4851
- if 2 + 2 == 5 && head_epoch + 2 < proposal_epoch {
4851
+ if head_epoch + 2 < proposal_epoch {
4852
4852
warn ! (
4853
4853
self . log,
4854
4854
"Skipping proposer preparation" ;
@@ -6089,10 +6089,8 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
6089
6089
//
6090
6090
// This prevents the routine from running during sync.
6091
6091
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
6096
6094
{
6097
6095
debug ! (
6098
6096
chain. log,
Original file line number Diff line number Diff line change @@ -94,8 +94,6 @@ pub struct ChainConfig {
94
94
/// The delay in milliseconds applied by the node between sending each blob or data column batch.
95
95
/// This doesn't apply if the node is the block proposer.
96
96
pub blob_publication_batch_interval : Duration ,
97
- pub disable_attesting : bool ,
98
- pub sync_tolerance_epochs : u64 ,
99
97
pub invalid_block_roots : HashSet < Hash256 > ,
100
98
}
101
99
@@ -132,8 +130,6 @@ impl Default for ChainConfig {
132
130
enable_sampling : false ,
133
131
blob_publication_batches : 4 ,
134
132
blob_publication_batch_interval : Duration :: from_millis ( 300 ) ,
135
- disable_attesting : false ,
136
- sync_tolerance_epochs : 16 ,
137
133
invalid_block_roots : HashSet :: new ( ) ,
138
134
}
139
135
}
Original file line number Diff line number Diff line change @@ -46,11 +46,11 @@ tree_hash = { workspace = true }
46
46
types = { workspace = true }
47
47
warp = { workspace = true }
48
48
warp_utils = { workspace = true }
49
- proto_array = { workspace = true }
50
49
51
50
[dev-dependencies ]
52
51
genesis = { workspace = true }
53
52
logging = { workspace = true }
53
+ proto_array = { workspace = true }
54
54
serde_json = { workspace = true }
55
55
56
56
[[test ]]
You can’t perform that action at this time.
0 commit comments