Skip to content

Commit 34dd1b2

Browse files
authored
Revise data column rpc limits and queue sizes (#7887)
Revise data column rpc limits and queue sizes. Also removed some outdated TODOs for Fulu / das.
1 parent 1fd7ead commit 34dd1b2

File tree

7 files changed

+7
-27
lines changed

7 files changed

+7
-27
lines changed

beacon_node/beacon_chain/src/fulu_readiness.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
9292
missing_methods.push_str(ENGINE_GET_PAYLOAD_V5);
9393
all_good = false;
9494
}
95-
// TODO(fulu) switch to v5 when the EL is ready
9695
if !capabilities.new_payload_v4 {
9796
missing_methods.push(' ');
9897
missing_methods.push_str(ENGINE_NEW_PAYLOAD_V4);

beacon_node/beacon_processor/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,9 @@ impl BeaconProcessorQueueLengths {
178178
unknown_light_client_update_queue: 128,
179179
rpc_block_queue: 1024,
180180
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,
183184
column_reconstruction_queue: 64,
184185
chain_segment_queue: 64,
185186
backfill_chain_segment: 64,
@@ -192,7 +193,6 @@ impl BeaconProcessorQueueLengths {
192193
bbroots_queue: 1024,
193194
blbroots_queue: 1024,
194195
blbrange_queue: 1024,
195-
// TODO(das): pick proper values
196196
dcbroots_queue: 1024,
197197
dcbrange_queue: 1024,
198198
gossip_bls_to_execution_change_queue: 16384,

beacon_node/execution_layer/src/engine_api/http.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,6 @@ impl HttpJsonRpc {
845845
Ok(response.into())
846846
}
847847

848-
// TODO(fulu): switch to v5 endpoint when the EL is ready for Fulu
849848
pub async fn new_payload_v4_fulu<E: EthSpec>(
850849
&self,
851850
new_payload_request_fulu: NewPayloadRequestFulu<'_, E>,
@@ -1285,7 +1284,6 @@ impl HttpJsonRpc {
12851284
}
12861285
}
12871286
NewPayloadRequest::Fulu(new_payload_request_fulu) => {
1288-
// TODO(fulu): switch to v5 endpoint when the EL is ready for Fulu
12891287
if engine_capabilities.new_payload_v4 {
12901288
self.new_payload_v4_fulu(new_payload_request_fulu).await
12911289
} else {

beacon_node/execution_layer/src/test_utils/handle_rpc.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,6 @@ pub async fn handle_rpc<E: EthSpec>(
230230
if method == ENGINE_NEW_PAYLOAD_V1
231231
|| method == ENGINE_NEW_PAYLOAD_V2
232232
|| method == ENGINE_NEW_PAYLOAD_V3
233-
// TODO(fulu): Uncomment this once v5 method is ready for Fulu
234-
// || method == ENGINE_NEW_PAYLOAD_V4
235233
{
236234
return Err((
237235
format!("{} called after Fulu fork!", method),
@@ -265,16 +263,6 @@ pub async fn handle_rpc<E: EthSpec>(
265263
GENERIC_ERROR_CODE,
266264
));
267265
}
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-
// }
278266
}
279267
_ => unreachable!(),
280268
};

beacon_node/http_api/tests/broadcast_validation_tests.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ use warp_utils::reject::CustomBadRequest;
1818
type E = MainnetEthSpec;
1919

2020
/*
21-
* TODO(fulu): write PeerDAS equivalent tests for these.
22-
*
2321
* We have the following test cases, which are duplicated for the blinded variant of the route:
2422
*
2523
* - `broadcast_validation=gossip`

beacon_node/lighthouse_network/src/rpc/config.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -116,14 +116,12 @@ impl RateLimiterConfig {
116116
Quota::n_every(NonZeroU64::new(896).unwrap(), 10);
117117
pub const DEFAULT_BLOBS_BY_ROOT_QUOTA: Quota =
118118
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.
121121
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);
125123
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);
127125
pub const DEFAULT_LIGHT_CLIENT_BOOTSTRAP_QUOTA: Quota = Quota::one_every(10);
128126
pub const DEFAULT_LIGHT_CLIENT_OPTIMISTIC_UPDATE_QUOTA: Quota = Quota::one_every(10);
129127
pub const DEFAULT_LIGHT_CLIENT_FINALITY_UPDATE_QUOTA: Quota = Quota::one_every(10);

beacon_node/network/src/sync/network_context/custody.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,6 @@ impl<T: BeaconChainTypes> ActiveCustodyRequest<T> {
161161
block_root = ?self.block_root,
162162
%req_id,
163163
%peer_id,
164-
// TODO(das): this property can become very noisy, being the full range 0..128
165164
?missing_column_indexes,
166165
"Custody column peer claims to not have some data"
167166
);

0 commit comments

Comments
 (0)