File tree Expand file tree Collapse file tree 7 files changed +7
-27
lines changed
lighthouse_network/src/rpc
network/src/sync/network_context Expand file tree Collapse file tree 7 files changed +7
-27
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,6 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
92
92
missing_methods. push_str ( ENGINE_GET_PAYLOAD_V5 ) ;
93
93
all_good = false ;
94
94
}
95
- // TODO(fulu) switch to v5 when the EL is ready
96
95
if !capabilities. new_payload_v4 {
97
96
missing_methods. push ( ' ' ) ;
98
97
missing_methods. push_str ( ENGINE_NEW_PAYLOAD_V4 ) ;
Original file line number Diff line number Diff line change @@ -178,8 +178,9 @@ impl BeaconProcessorQueueLengths {
178
178
unknown_light_client_update_queue : 128 ,
179
179
rpc_block_queue : 1024 ,
180
180
rpc_blob_queue : 1024 ,
181
- // TODO(das): Placeholder values
182
- rpc_custody_column_queue : 1000 ,
181
+ // We don't request more than `PARENT_DEPTH_TOLERANCE` (32) lookups, so we can limit
182
+ // this queue size. With 48 max blobs per block, each column sidecar list could be up to 12MB.
183
+ rpc_custody_column_queue : 64 ,
183
184
column_reconstruction_queue : 64 ,
184
185
chain_segment_queue : 64 ,
185
186
backfill_chain_segment : 64 ,
@@ -192,7 +193,6 @@ impl BeaconProcessorQueueLengths {
192
193
bbroots_queue : 1024 ,
193
194
blbroots_queue : 1024 ,
194
195
blbrange_queue : 1024 ,
195
- // TODO(das): pick proper values
196
196
dcbroots_queue : 1024 ,
197
197
dcbrange_queue : 1024 ,
198
198
gossip_bls_to_execution_change_queue : 16384 ,
Original file line number Diff line number Diff line change @@ -845,7 +845,6 @@ impl HttpJsonRpc {
845
845
Ok ( response. into ( ) )
846
846
}
847
847
848
- // TODO(fulu): switch to v5 endpoint when the EL is ready for Fulu
849
848
pub async fn new_payload_v4_fulu < E : EthSpec > (
850
849
& self ,
851
850
new_payload_request_fulu : NewPayloadRequestFulu < ' _ , E > ,
@@ -1285,7 +1284,6 @@ impl HttpJsonRpc {
1285
1284
}
1286
1285
}
1287
1286
NewPayloadRequest :: Fulu ( new_payload_request_fulu) => {
1288
- // TODO(fulu): switch to v5 endpoint when the EL is ready for Fulu
1289
1287
if engine_capabilities. new_payload_v4 {
1290
1288
self . new_payload_v4_fulu ( new_payload_request_fulu) . await
1291
1289
} else {
Original file line number Diff line number Diff line change @@ -230,8 +230,6 @@ pub async fn handle_rpc<E: EthSpec>(
230
230
if method == ENGINE_NEW_PAYLOAD_V1
231
231
|| method == ENGINE_NEW_PAYLOAD_V2
232
232
|| method == ENGINE_NEW_PAYLOAD_V3
233
- // TODO(fulu): Uncomment this once v5 method is ready for Fulu
234
- // || method == ENGINE_NEW_PAYLOAD_V4
235
233
{
236
234
return Err ( (
237
235
format ! ( "{} called after Fulu fork!" , method) ,
@@ -265,16 +263,6 @@ pub async fn handle_rpc<E: EthSpec>(
265
263
GENERIC_ERROR_CODE ,
266
264
) ) ;
267
265
}
268
- // TODO(fulu): remove once we switch to v5
269
- // if matches!(request, JsonExecutionPayload::V4(_)) {
270
- // return Err((
271
- // format!(
272
- // "{} called with `ExecutionPayloadV4` after Fulu fork!",
273
- // method
274
- // ),
275
- // GENERIC_ERROR_CODE,
276
- // ));
277
- // }
278
266
}
279
267
_ => unreachable ! ( ) ,
280
268
} ;
Original file line number Diff line number Diff line change @@ -18,8 +18,6 @@ use warp_utils::reject::CustomBadRequest;
18
18
type E = MainnetEthSpec ;
19
19
20
20
/*
21
- * TODO(fulu): write PeerDAS equivalent tests for these.
22
- *
23
21
* We have the following test cases, which are duplicated for the blinded variant of the route:
24
22
*
25
23
* - `broadcast_validation=gossip`
Original file line number Diff line number Diff line change @@ -116,14 +116,12 @@ impl RateLimiterConfig {
116
116
Quota :: n_every ( NonZeroU64 :: new ( 896 ) . unwrap ( ) , 10 ) ;
117
117
pub const DEFAULT_BLOBS_BY_ROOT_QUOTA : Quota =
118
118
Quota :: n_every ( NonZeroU64 :: new ( 896 ) . unwrap ( ) , 10 ) ;
119
- // 320 blocks worth of columns for regular node, or 40 blocks for supernode.
120
- // Range sync load balances when requesting blocks, and each batch is 32 blocks .
119
+ // Allow up to `MAX_REQUEST_DATA_COLUMN_SIDECARS` (16384), the maximum number of data
120
+ // column sidecars in a single request from the spec .
121
121
pub const DEFAULT_DATA_COLUMNS_BY_RANGE_QUOTA : Quota =
122
- Quota :: n_every ( NonZeroU64 :: new ( 5120 ) . unwrap ( ) , 10 ) ;
123
- // 512 columns per request from spec. This should be plenty as peers are unlikely to send all
124
- // sampling requests to a single peer.
122
+ Quota :: n_every ( NonZeroU64 :: new ( 16384 ) . unwrap ( ) , 10 ) ;
125
123
pub const DEFAULT_DATA_COLUMNS_BY_ROOT_QUOTA : Quota =
126
- Quota :: n_every ( NonZeroU64 :: new ( 512 ) . unwrap ( ) , 10 ) ;
124
+ Quota :: n_every ( NonZeroU64 :: new ( 16384 ) . unwrap ( ) , 10 ) ;
127
125
pub const DEFAULT_LIGHT_CLIENT_BOOTSTRAP_QUOTA : Quota = Quota :: one_every ( 10 ) ;
128
126
pub const DEFAULT_LIGHT_CLIENT_OPTIMISTIC_UPDATE_QUOTA : Quota = Quota :: one_every ( 10 ) ;
129
127
pub const DEFAULT_LIGHT_CLIENT_FINALITY_UPDATE_QUOTA : Quota = Quota :: one_every ( 10 ) ;
Original file line number Diff line number Diff line change @@ -161,7 +161,6 @@ impl<T: BeaconChainTypes> ActiveCustodyRequest<T> {
161
161
block_root = ?self . block_root,
162
162
%req_id,
163
163
%peer_id,
164
- // TODO(das): this property can become very noisy, being the full range 0..128
165
164
?missing_column_indexes,
166
165
"Custody column peer claims to not have some data"
167
166
) ;
You can’t perform that action at this time.
0 commit comments