Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,10 @@ export function validateExecutionPayloadEnvelopesByRangeRequest(
// The gloas req/resp spec uses MIN_EPOCHS_FOR_BLOCK_REQUESTS to define the minimum range peers MUST serve.
// Archival nodes may still serve older retained payloads to allow genesis sync.

if (count > config.MAX_REQUEST_BLOCKS_DENEB) {
count = config.MAX_REQUEST_BLOCKS_DENEB;
// Spec: EnvelopesByRange response is bounded by MAX_REQUEST_PAYLOADS (consensus-specs #5383),
// distinct from the MAX_REQUEST_BLOCKS_DENEB cap used for block-by-range.
if (count > config.MAX_REQUEST_PAYLOADS) {
count = config.MAX_REQUEST_PAYLOADS;
}

return {startSlot, count};
Expand Down
8 changes: 4 additions & 4 deletions packages/config/src/chainConfig/configs/mainnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ export const chainConfig: ChainConfig = {
SECONDS_PER_ETH1_BLOCK: 14,
// 2**8 (= 256) epochs ~27 hours
MIN_VALIDATOR_WITHDRAWABILITY_DELAY: 256,
// 2**13 (= 8,192) epochs ~36 days
MIN_BUILDER_WITHDRAWABILITY_DELAY: 8192,
// 2**6 (= 64) epochs ~6.8 hours
MIN_BUILDER_WITHDRAWABILITY_DELAY: 64,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Bump pinned spec versions with alpha.12 constants

These alpha.12 values are now compared against the remote spec version pinned in packages/config/test/spec-tests-version.json and packages/params/test/spec-tests-version.json, which still say v1.7.0-alpha.11; the e2e sync tests (packages/config/test/e2e/ensure-config-is-synced.test.ts and packages/params/test/e2e/ensure-config-is-synced.test.ts) fetch that pinned tag and assert equality, so CI will report mismatches for the updated Gloas config/preset values until the spec-test version pins and specrefs are advanced with the constant changes.

Useful? React with 👍 / 👎.

// 2**8 (= 256) epochs ~27 hours
SHARD_COMMITTEE_PERIOD: 256,
// 2**11 (= 2,048) Eth1 blocks ~8 hours
Expand Down Expand Up @@ -99,8 +99,8 @@ export const chainConfig: ChainConfig = {
CONTRIBUTION_DUE_BPS_GLOAS: 5000,
// 75% of SLOT_DURATION_MS
PAYLOAD_ATTESTATION_DUE_BPS: 7500,
// 75% of SLOT_DURATION_MS
PAYLOAD_DUE_BPS: 7500,
// 50% of SLOT_DURATION_MS
PAYLOAD_DUE_BPS: 5000,

// Validator cycle
// ---------------------------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions packages/config/src/chainConfig/configs/minimal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ export const chainConfig: ChainConfig = {
CONTRIBUTION_DUE_BPS_GLOAS: 5000,
// 75% of SLOT_DURATION_MS
PAYLOAD_ATTESTATION_DUE_BPS: 7500,
// 75% of SLOT_DURATION_MS
PAYLOAD_DUE_BPS: 7500,
// 50% of SLOT_DURATION_MS
PAYLOAD_DUE_BPS: 5000,

// Validator cycle
// ---------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion packages/params/src/presets/mainnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export const mainnetPreset: BeaconPreset = {
// GLOAS
PTC_SIZE: 512,
MAX_PAYLOAD_ATTESTATIONS: 4,
MAX_BUILDER_DEPOSIT_REQUESTS_PER_PAYLOAD: 256, // 2**8
MAX_BUILDER_DEPOSIT_REQUESTS_PER_PAYLOAD: 64, // 2**6
MAX_BUILDER_EXIT_REQUESTS_PER_PAYLOAD: 16, // 2**4
BUILDER_REGISTRY_LIMIT: 1099511627776, // 2**40
BUILDER_PENDING_WITHDRAWALS_LIMIT: 1048576, // 2**20
Expand Down
2 changes: 1 addition & 1 deletion packages/params/src/presets/minimal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export const minimalPreset: BeaconPreset = {
// GLOAS
PTC_SIZE: 16,
MAX_PAYLOAD_ATTESTATIONS: 4,
MAX_BUILDER_DEPOSIT_REQUESTS_PER_PAYLOAD: 256, // 2**8
MAX_BUILDER_DEPOSIT_REQUESTS_PER_PAYLOAD: 64, // 2**6
MAX_BUILDER_EXIT_REQUESTS_PER_PAYLOAD: 16, // 2**4
BUILDER_REGISTRY_LIMIT: 1099511627776, // 2**40
BUILDER_PENDING_WITHDRAWALS_LIMIT: 1048576, // 2**20
Expand Down
Loading