Skip to content

Commit

Permalink
Add DOMAIN_BLOBS_SIDECAR
Browse files Browse the repository at this point in the history
  • Loading branch information
dgcoffman committed Nov 7, 2022
1 parent d3fe373 commit 71e7e0b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 4 additions & 0 deletions packages/beacon-node/src/api/impl/config/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import {
DOMAIN_CONTRIBUTION_AND_PROOF,
DOMAIN_BLS_TO_EXECUTION_CHANGE,
DOMAIN_APPLICATION_BUILDER,
DOMAIN_BLOBS_SIDECAR,
TIMELY_SOURCE_FLAG_INDEX,
TIMELY_TARGET_FLAG_INDEX,
TIMELY_HEAD_FLAG_INDEX,
Expand Down Expand Up @@ -94,4 +95,7 @@ export const specConstants = {

// ## Capella domain types
DOMAIN_BLS_TO_EXECUTION_CHANGE,

// ## EIP-4844 domain types
DOMAIN_BLOBS_SIDECAR,
};
7 changes: 3 additions & 4 deletions packages/params/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ export const DOMAIN_SYNC_COMMITTEE = Uint8Array.from([7, 0, 0, 0]);
export const DOMAIN_SYNC_COMMITTEE_SELECTION_PROOF = Uint8Array.from([8, 0, 0, 0]);
export const DOMAIN_CONTRIBUTION_AND_PROOF = Uint8Array.from([9, 0, 0, 0]);
export const DOMAIN_BLS_TO_EXECUTION_CHANGE = Uint8Array.from([10, 0, 0, 0]);
// https://github.com/ethereum/consensus-specs/blob/dev/specs/eip4844/beacon-chain.md#domain-types
// TODO EIP-4844: Is this still used when coupling blobs and blocks?
export const DOMAIN_BLOBS_SIDECAR = Uint8Array.from([11, 0, 0, 0]);

// Application specific domains

Expand Down Expand Up @@ -173,10 +176,6 @@ export const SYNC_COMMITTEE_SUBNET_SIZE = Math.floor(SYNC_COMMITTEE_SIZE / SYNC_

export const MAX_REQUEST_BLOCKS = 2 ** 10; // 1024

// // EIP-4844
// export const FIELD_ELEMENTS_PER_BLOB = 4096;
// export const MAX_BLOBS_PER_BLOCK = 16;

// Lightclient pre-computed
/**
* ```ts
Expand Down

0 comments on commit 71e7e0b

Please sign in to comment.