-
-
Notifications
You must be signed in to change notification settings - Fork 290
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
feat: implement maxEB EIP-7251 #6539
Merged
Merged
Commits on May 6, 2024
-
feat: implement EIP-6110 (#6042)
* Add immutable in the dependencies * Initial change to pubkeyCache * Added todos * Moved unfinalized cache to epochCache * Move populating finalized cache to afterProcessEpoch * Specify unfinalized cache during state cloning * Move from unfinalized to finalized cache in afterProcessEpoch * Confused myself * Clean up * Change logic * Fix cloning issue * Clean up redundant code * Add CarryoverData in epochCtx.createFromState * Fix typo * Update usage of pubkeyCache * Update pubkeyCache usage * Fix lint * Fix lint * Add 6110 to ChainConfig * Add 6110 to BeaconPreset * Define 6110 fork and container * Add V6110 api to execution engine * Update test * Add depositReceiptsRoot to process_execution_payload * State transitioning to EIP6110 * State transitioning to EIP6110 * Light client change in EIP-6110 * Update tests * produceBlock * Refactor processDeposit to match the spec * Implement processDepositReceipt * Implement 6110 fork guard for pubkeyCache * Handle changes in eth1 deposit * Update eth1 deposit test * Fix typo * Lint * Remove embarassing comments * Address comments * Modify applyDeposit signature * Update packages/state-transition/src/cache/epochCache.ts Co-authored-by: Lion - dapplion <[email protected]> * Update packages/state-transition/src/cache/epochCache.ts Co-authored-by: Lion - dapplion <[email protected]> * Update packages/state-transition/src/cache/pubkeyCache.ts Co-authored-by: Lion - dapplion <[email protected]> * Remove old code * Rename fields in epochCache and immutableData * Remove CarryoverData * Move isAfter6110 from var to method * Fix cyclic import * Fix operations spec runner * Fix for spec test * Fix spec test * state.depositReceiptsStartIndex to BigInt * getDeposit requires cached state * default depositReceiptsStartIndex value in genesis * Fix pubkeyCache bug * newUnfinalizedPubkeyIndexMap in createCachedBeaconState * Lint * Pass epochCache instead of pubkey2IndexFn in apis * Address comments * Add unit test on pubkey cache cloning * Add unfinalizedPubkeyCacheSize to metrics * Add unfinalizedPubkeyCacheSize to metrics * Clean up code * Add besu to el-interop * Add 6110 genesis file * Template for sim test * Add unit test for getEth1DepositCount * Update sim test * Update besudocker * Finish beacon api calls in sim test * Update epochCache.createFromState() * Fix bug unfinalized validators are not finalized * Add sim test to run a few blocks * Lint * Merge branch 'unstable' into 611 * Add more check to sim test * Update besu docker image instruction * Update sim test with correct tx * Address comment + cleanup * Clean up code * Properly handle promise rejection * Lint * Update packages/beacon-node/src/execution/engine/types.ts Co-authored-by: Lion - dapplion <[email protected]> * Update comments * Accept type undefined in ExecutionPayloadBodyRpc * Update comment and semantic * Remove if statement when adding finalized validator * Comment on repeated insert on finalized cache * rename createFromState * Add comment on getPubkey() * Stash change to reduce diffs * Stash change to reduce diffs * Lint * addFinalizedPubkey on finalized checkpoint * Update comment * Use OrderedMap for unfinalized cache * Pull out logic of deleting pubkeys for batch op * Add updateUnfinalizedPubkeys in regen * Update updateUnfinalizedPubkeys logic * Add comment * Add metrics for state context caches * Address comment * Address comment * Deprecate eth1Data polling when condition is reached * Fix conflicts * Fix sim test * Lint * Fix type * Fix test * Fix test * Lint * Update packages/light-client/src/spec/utils.ts Co-authored-by: Lion - dapplion <[email protected]> * Fix spec test * Address comments * Improve cache logic on checkpoint finalized * Update sim test according to new cache logic * Update comment * Lint * Finalized pubkey cache only update once per checkpoint * Add perf test for updateUnfinalizedPubkeys * Add perf test for updateUnfinalizedPubkeys * Tweak params for perf test * Freeze besu docker image version for 6110 * Add benchmark result * Use Map instead of OrderedMap. Update benchmark * Minor optimization * Minor optimization * Add memory test for immutable.js * Update test * Reduce code duplication * Lint * Remove try/catch in updateUnfinalizedPubkeys * Introduce EpochCache metric * Add historicalValidatorLengths * Polish code * Migrate state-transition unit tests to vitest * Fix calculation of pivot index * `historicalValidatorLengths` only activate post 6110 * Update sim test * Lint * Update packages/state-transition/src/cache/epochCache.ts Co-authored-by: Lion - dapplion <[email protected]> * Improve readability on historicalValidatorLengths * Update types * Fix calculation * Add eth1data poll todo * Add epochCache.getValidatorCountAtEpoch * Add todo * Add getStateIterator for state cache * Partial commit * Update perf test * updateUnfinalizedPubkeys directly modify states from regen * Update sim test. Lint * Add todo * some improvements and a fix for effectiveBalanceIncrements fork safeness * rename eip6110 to elctra * fix electra-interop.test.ts --------- Co-authored-by: Lion - dapplion <[email protected]> Co-authored-by: gajinder <[email protected]> lint and tsc small cleanup fix rebase issue
Configuration menu - View commit details
-
Copy full SHA for f5a9d9c - Browse repository at this point
Copy the full SHA f5a9d9cView commit details -
feat: implement EIP-6110 (#6042)
* Add immutable in the dependencies * Initial change to pubkeyCache * Added todos * Moved unfinalized cache to epochCache * Move populating finalized cache to afterProcessEpoch * Specify unfinalized cache during state cloning * Move from unfinalized to finalized cache in afterProcessEpoch * Confused myself * Clean up * Change logic * Fix cloning issue * Clean up redundant code * Add CarryoverData in epochCtx.createFromState * Fix typo * Update usage of pubkeyCache * Update pubkeyCache usage * Fix lint * Fix lint * Add 6110 to ChainConfig * Add 6110 to BeaconPreset * Define 6110 fork and container * Add V6110 api to execution engine * Update test * Add depositReceiptsRoot to process_execution_payload * State transitioning to EIP6110 * State transitioning to EIP6110 * Light client change in EIP-6110 * Update tests * produceBlock * Refactor processDeposit to match the spec * Implement processDepositReceipt * Implement 6110 fork guard for pubkeyCache * Handle changes in eth1 deposit * Update eth1 deposit test * Fix typo * Lint * Remove embarassing comments * Address comments * Modify applyDeposit signature * Update packages/state-transition/src/cache/epochCache.ts Co-authored-by: Lion - dapplion <[email protected]> * Update packages/state-transition/src/cache/epochCache.ts Co-authored-by: Lion - dapplion <[email protected]> * Update packages/state-transition/src/cache/pubkeyCache.ts Co-authored-by: Lion - dapplion <[email protected]> * Remove old code * Rename fields in epochCache and immutableData * Remove CarryoverData * Move isAfter6110 from var to method * Fix cyclic import * Fix operations spec runner * Fix for spec test * Fix spec test * state.depositReceiptsStartIndex to BigInt * getDeposit requires cached state * default depositReceiptsStartIndex value in genesis * Fix pubkeyCache bug * newUnfinalizedPubkeyIndexMap in createCachedBeaconState * Lint * Pass epochCache instead of pubkey2IndexFn in apis * Address comments * Add unit test on pubkey cache cloning * Add unfinalizedPubkeyCacheSize to metrics * Add unfinalizedPubkeyCacheSize to metrics * Clean up code * Add besu to el-interop * Add 6110 genesis file * Template for sim test * Add unit test for getEth1DepositCount * Update sim test * Update besudocker * Finish beacon api calls in sim test * Update epochCache.createFromState() * Fix bug unfinalized validators are not finalized * Add sim test to run a few blocks * Lint * Merge branch 'unstable' into 611 * Add more check to sim test * Update besu docker image instruction * Update sim test with correct tx * Address comment + cleanup * Clean up code * Properly handle promise rejection * Lint * Update packages/beacon-node/src/execution/engine/types.ts Co-authored-by: Lion - dapplion <[email protected]> * Update comments * Accept type undefined in ExecutionPayloadBodyRpc * Update comment and semantic * Remove if statement when adding finalized validator * Comment on repeated insert on finalized cache * rename createFromState * Add comment on getPubkey() * Stash change to reduce diffs * Stash change to reduce diffs * Lint * addFinalizedPubkey on finalized checkpoint * Update comment * Use OrderedMap for unfinalized cache * Pull out logic of deleting pubkeys for batch op * Add updateUnfinalizedPubkeys in regen * Update updateUnfinalizedPubkeys logic * Add comment * Add metrics for state context caches * Address comment * Address comment * Deprecate eth1Data polling when condition is reached * Fix conflicts * Fix sim test * Lint * Fix type * Fix test * Fix test * Lint * Update packages/light-client/src/spec/utils.ts Co-authored-by: Lion - dapplion <[email protected]> * Fix spec test * Address comments * Improve cache logic on checkpoint finalized * Update sim test according to new cache logic * Update comment * Lint * Finalized pubkey cache only update once per checkpoint * Add perf test for updateUnfinalizedPubkeys * Add perf test for updateUnfinalizedPubkeys * Tweak params for perf test * Freeze besu docker image version for 6110 * Add benchmark result * Use Map instead of OrderedMap. Update benchmark * Minor optimization * Minor optimization * Add memory test for immutable.js * Update test * Reduce code duplication * Lint * Remove try/catch in updateUnfinalizedPubkeys * Introduce EpochCache metric * Add historicalValidatorLengths * Polish code * Migrate state-transition unit tests to vitest * Fix calculation of pivot index * `historicalValidatorLengths` only activate post 6110 * Update sim test * Lint * Update packages/state-transition/src/cache/epochCache.ts Co-authored-by: Lion - dapplion <[email protected]> * Improve readability on historicalValidatorLengths * Update types * Fix calculation * Add eth1data poll todo * Add epochCache.getValidatorCountAtEpoch * Add todo * Add getStateIterator for state cache * Partial commit * Update perf test * updateUnfinalizedPubkeys directly modify states from regen * Update sim test. Lint * Add todo * some improvements and a fix for effectiveBalanceIncrements fork safeness * rename eip6110 to elctra * fix electra-interop.test.ts --------- Co-authored-by: Lion - dapplion <[email protected]> Co-authored-by: gajinder <[email protected]> lint and tsc small cleanup
Configuration menu - View commit details
-
Copy full SHA for 6aad4cd - Browse repository at this point
Copy the full SHA 6aad4cdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 62c76df - Browse repository at this point
Copy the full SHA 62c76dfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9f1efb2 - Browse repository at this point
Copy the full SHA 9f1efb2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2e0ba78 - Browse repository at this point
Copy the full SHA 2e0ba78View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4879368 - Browse repository at this point
Copy the full SHA 4879368View commit details -
Configuration menu - View commit details
-
Copy full SHA for e931b18 - Browse repository at this point
Copy the full SHA e931b18View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9ff94c5 - Browse repository at this point
Copy the full SHA 9ff94c5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6ea4e2d - Browse repository at this point
Copy the full SHA 6ea4e2dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7e20b15 - Browse repository at this point
Copy the full SHA 7e20b15View commit details -
Configuration menu - View commit details
-
Copy full SHA for d8abeef - Browse repository at this point
Copy the full SHA d8abeefView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1e98f41 - Browse repository at this point
Copy the full SHA 1e98f41View commit details -
Configuration menu - View commit details
-
Copy full SHA for df3f376 - Browse repository at this point
Copy the full SHA df3f376View commit details -
Configuration menu - View commit details
-
Copy full SHA for be5fd01 - Browse repository at this point
Copy the full SHA be5fd01View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5e8be92 - Browse repository at this point
Copy the full SHA 5e8be92View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3d06e16 - Browse repository at this point
Copy the full SHA 3d06e16View commit details -
Configuration menu - View commit details
-
Copy full SHA for c0fa539 - Browse repository at this point
Copy the full SHA c0fa539View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1f473fc - Browse repository at this point
Copy the full SHA 1f473fcView commit details -
Configuration menu - View commit details
-
Copy full SHA for ff30b74 - Browse repository at this point
Copy the full SHA ff30b74View commit details -
Configuration menu - View commit details
-
Copy full SHA for 16e18e1 - Browse repository at this point
Copy the full SHA 16e18e1View commit details -
Configuration menu - View commit details
-
Copy full SHA for cf27a34 - Browse repository at this point
Copy the full SHA cf27a34View commit details -
Configuration menu - View commit details
-
Copy full SHA for 284b925 - Browse repository at this point
Copy the full SHA 284b925View commit details -
Configuration menu - View commit details
-
Copy full SHA for f15a42c - Browse repository at this point
Copy the full SHA f15a42cView commit details -
Configuration menu - View commit details
-
Copy full SHA for ca157c6 - Browse repository at this point
Copy the full SHA ca157c6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 16914f3 - Browse repository at this point
Copy the full SHA 16914f3View commit details -
Configuration menu - View commit details
-
Copy full SHA for ef15bc2 - Browse repository at this point
Copy the full SHA ef15bc2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5c16ff3 - Browse repository at this point
Copy the full SHA 5c16ff3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2a967fe - Browse repository at this point
Copy the full SHA 2a967feView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2349afa - Browse repository at this point
Copy the full SHA 2349afaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5646fd5 - Browse repository at this point
Copy the full SHA 5646fd5View commit details -
Configuration menu - View commit details
-
Copy full SHA for ffb5ad1 - Browse repository at this point
Copy the full SHA ffb5ad1View commit details -
Configuration menu - View commit details
-
Copy full SHA for bb29c54 - Browse repository at this point
Copy the full SHA bb29c54View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5aba7f4 - Browse repository at this point
Copy the full SHA 5aba7f4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 271b7c5 - Browse repository at this point
Copy the full SHA 271b7c5View commit details
Commits on May 7, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 2f6df3d - Browse repository at this point
Copy the full SHA 2f6df3dView commit details -
Configuration menu - View commit details
-
Copy full SHA for a5b5fe0 - Browse repository at this point
Copy the full SHA a5b5fe0View commit details -
Configuration menu - View commit details
-
Copy full SHA for fa066f4 - Browse repository at this point
Copy the full SHA fa066f4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 51eaa3e - Browse repository at this point
Copy the full SHA 51eaa3eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4a7d167 - Browse repository at this point
Copy the full SHA 4a7d167View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5ca66e2 - Browse repository at this point
Copy the full SHA 5ca66e2View commit details -
Configuration menu - View commit details
-
Copy full SHA for d5c4c92 - Browse repository at this point
Copy the full SHA d5c4c92View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.