Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: review electra branch - part 1 #7015

Merged
merged 1 commit into from
Aug 13, 2024

Conversation

nflaig
Copy link
Member

@nflaig nflaig commented Aug 12, 2024

No description provided.

@nflaig nflaig requested a review from a team as a code owner August 12, 2024 21:25
@@ -407,16 +407,22 @@ export function getBeaconBlockApi({

async getBlockAttestations({blockId}) {
const {block, executionOptimistic, finalized} = await getBlockResponse(chain, blockId);
const fork = config.getForkName(block.message.slot);

if (isForkPostElectra(fork)) {
Copy link
Member Author

Choose a reason for hiding this comment

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

We need to apply similar logic to other apis that only support phase0 once #6998 is merged

Copy link
Contributor

Choose a reason for hiding this comment

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

After Electra is live, we should probably hardcode every deprecated attestation V1 endpoints to throw deprecation error ie. get rid of this if (isForkPostElectra(fork)) statement

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, we can just statically throw an error and refer to v2 apis similar to this error. After electra is live we can also hard-code everywhere to use v2 apis only on the validator client side as all beacon node must have implemented them at this point, otherwise they can't handle electra attestations.

@@ -59,7 +59,6 @@
"types": "lib/index.d.ts",
"dependencies": {
"@chainsafe/as-sha256": "^0.5.0",
"@chainsafe/bls": "7.1.3",
Copy link
Member Author

Choose a reason for hiding this comment

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

Looks like it was added due to incorrect rebase, since #6894 we use blst directly in state-transition which seems questionable though, don't we want state-transition to be browser compatible?

Copy link
Member

Choose a reason for hiding this comment

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

don't we want state-transition to be browser compatible?

not currently

@nflaig nflaig mentioned this pull request Aug 12, 2024
Copy link

codecov bot commented Aug 12, 2024

Codecov Report

Attention: Patch coverage is 88.88889% with 1 line in your changes missing coverage. Please review.

Project coverage is 49.38%. Comparing base (bbc2301) to head (27562bc).

Additional details and impacted files
@@                    Coverage Diff                    @@
##           electra-fork-rebasejul30    #7015   +/-   ##
=========================================================
  Coverage                     49.37%   49.38%           
=========================================================
  Files                           589      589           
  Lines                         39137    39139    +2     
  Branches                       2235     2231    -4     
=========================================================
+ Hits                          19325    19327    +2     
  Misses                        19771    19771           
  Partials                         41       41           

@@ -407,16 +407,22 @@ export function getBeaconBlockApi({

async getBlockAttestations({blockId}) {
const {block, executionOptimistic, finalized} = await getBlockResponse(chain, blockId);
const fork = config.getForkName(block.message.slot);

if (isForkPostElectra(fork)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

After Electra is live, we should probably hardcode every deprecated attestation V1 endpoints to throw deprecation error ie. get rid of this if (isForkPostElectra(fork)) statement

@wemeetagain wemeetagain merged commit 09fa7fc into electra-fork-rebasejul30 Aug 13, 2024
16 of 17 checks passed
@wemeetagain wemeetagain deleted the nflaig/review-electra-1 branch August 13, 2024 20:16
g11tech pushed a commit that referenced this pull request Aug 23, 2024
g11tech pushed a commit that referenced this pull request Aug 27, 2024
philknows pushed a commit that referenced this pull request Sep 3, 2024
@wemeetagain
Copy link
Member

🎉 This PR is included in v1.22.0 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants