Skip to content

chore: review electra branch - part 1#7015

Merged
wemeetagain merged 1 commit intoelectra-fork-rebasejul30from
nflaig/review-electra-1
Aug 13, 2024
Merged

chore: review electra branch - part 1#7015
wemeetagain merged 1 commit intoelectra-fork-rebasejul30from
nflaig/review-electra-1

Conversation

@nflaig
Copy link
Copy Markdown
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
const {block, executionOptimistic, finalized} = await getBlockResponse(chain, blockId);
const fork = config.getForkName(block.message.slot);

if (isForkPostElectra(fork)) {
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

"types": "lib/index.d.ts",
"dependencies": {
"@chainsafe/as-sha256": "^0.5.0",
"@chainsafe/bls": "7.1.3",
Copy link
Copy Markdown
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
Copy Markdown
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
@codecov
Copy link
Copy Markdown

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           

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

if (isForkPostElectra(fork)) {
Copy link
Copy Markdown
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
@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
Copy Markdown
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