Skip to content

Commit

Permalink
feat: implement peerDAS on electra
Browse files Browse the repository at this point in the history
  • Loading branch information
g11tech committed Apr 11, 2024
1 parent ea43dc5 commit e0c252c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/params/src/forkName.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,9 @@ export type ForkBlobs = Exclude<ForkName, ForkPreBlobs>;
export function isForkBlobs(fork: ForkName): fork is ForkBlobs {
return isForkWithdrawals(fork) && fork !== ForkName.capella;
}

export type ForkPrePeerDAS = ForkPreBlobs | ForkName.deneb;
export type ForkPeerDAS = Exclude<ForkName, ForkPrePeerDAS>;
export function isForkPeerDAS(fork: ForkName): fork is ForkPeerDAS {
return isForkBlobs(fork) && fork !== ForkName.deneb;
}

0 comments on commit e0c252c

Please sign in to comment.