Skip to content

Commit 600a745

Browse files
committed
feat: implement peerDAS on electra
1 parent e481acc commit 600a745

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/params/src/forkName.ts

+6
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,9 @@ export type ForkBlobs = Exclude<ForkName, ForkPreBlobs>;
4545
export function isForkBlobs(fork: ForkName): fork is ForkBlobs {
4646
return isForkWithdrawals(fork) && fork !== ForkName.capella;
4747
}
48+
49+
export type ForkPrePeerDAS = ForkPreBlobs | ForkName.deneb;
50+
export type ForkPeerDAS = Exclude<ForkName, ForkPrePeerDAS>;
51+
export function isForkPeerDAS(fork: ForkName): fork is ForkPeerDAS {
52+
return isForkBlobs(fork) && fork !== ForkName.deneb;
53+
}

0 commit comments

Comments
 (0)