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

feat: electra fork #6986

Merged
merged 76 commits into from
Aug 28, 2024
Merged

feat: electra fork #6986

merged 76 commits into from
Aug 28, 2024

Commits on Aug 27, 2024

  1. feat: placeholder PR for electra

    add types stub and epoch config
    
    fix types
    g11tech committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    d87e637 View commit details
    Browse the repository at this point in the history
  2. 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
    ensi321 authored and g11tech committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    7f3ede7 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3eeb006 View commit details
    Browse the repository at this point in the history
  4. feat: implement execution layer exits eip 7002 (#6651)

    * feat: implement execution layer exits eip 7002
    
    * lint and tsc fix
    
    * apply feedback
    
    * improve comment
    g11tech committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    4b707a9 View commit details
    Browse the repository at this point in the history
  5. chore: update spec test version for electra fork (#6717)

    * Update spec-test version
    
    * Skip electra
    ensi321 authored and g11tech committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    a656c69 View commit details
    Browse the repository at this point in the history
  6. feat: add presets and ssz types for EIP-7549 (#6715)

    * Add types
    
    * Update unit test
    
    * lint
    
    * Address comments
    
    * Address comments
    
    * Lint
    
    * Update packages/beacon-node/src/util/sszBytes.ts
    
    Co-authored-by: tuyennhv <[email protected]>
    
    * Add isElectraAttestation
    
    * Update unit test
    
    * Update unit test
    
    * chore: add comments for sszBytes.ts
    
    ---------
    
    Co-authored-by: tuyennhv <[email protected]>
    Co-authored-by: Tuyen Nguyen <[email protected]>
    Co-authored-by: Gajinder <[email protected]>
    4 people committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    bef3eff View commit details
    Browse the repository at this point in the history
  7. chore: fix the rebase build (#6735)

    * chore: fix the rebase build
    
    * fix test
    g11tech committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    8a4c657 View commit details
    Browse the repository at this point in the history
  8. feat: upgrade 7002 exits to withdrawal request (#6736)

    * feat: upgrade 7002 exits to withdrawal request
    
    * fix types
    
    * fix types and references
    
    * further fix the types references and get build passing
    
    * update the process ops fn but needs to be extended by maxeb
    g11tech committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    8db4ada View commit details
    Browse the repository at this point in the history
  9. feat: implement maxEB EIP-7251 (#6539)

    * 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
    
    * 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
    
    * Add presets
    
    * Update config
    
    * Add necessary containers
    
    * Update presets
    
    * Update config
    
    * Add todo comments
    
    * Update constants and params
    
    * Impl new process withdrawal
    
    * Add withdrawaRequests to payload
    
    * Add processConsolidation
    
    * Add process withdraw request
    
    * Update deposit and withdrawal flow
    
    * epoch processing
    
    * Implement churn limits
    
    * Lint
    
    * lint
    
    * Update state-transition utils
    
    * processExecutionLayerWithdrawRequest
    
    * processConsolidation
    
    * queueExcessActiveBalance
    
    * isValidDepositSignature
    
    * Add jsdoc and timer for new processEpoch functions
    
    * Lint
    
    * Update maxEB
    
    * update voluntary exit
    
    * Fix config
    
    * Update initiateValidatorExit
    
    * Remove churn limit in processRegistryUpdates
    
    * Fix conflict
    
    * Add MAX_WITHDRAWAL_REQUESTS_PER_PAYLOAD
    
    * Reflect latest spec changes
    
    * rebase fixes, fixes, improvements and cleanup
    
    lint
    
    * Upgrade ssz version
    
    * Use sliceFrom()
    
    * cleanup as per specs feedback
    
    subarry
    
    * simplify
    
    * fix withdrawals
    
    * remove slice
    
    * fix the slashing quotient determination in slashvalidator
    
    ---------
    
    Co-authored-by: harkamal <[email protected]>
    ensi321 and g11tech committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    244dc88 View commit details
    Browse the repository at this point in the history
  10. feat: beacon node process electra attestations EIP-7549 (#6738)

    * Process attestations in block
    
    * Fix check-types
    
    * Address comments
    ensi321 authored and g11tech committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    a145d2d View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    8e15350 View commit details
    Browse the repository at this point in the history
  12. feat: implement EIP-7549 (#6689)

    * initial commit
    
    * lint
    
    * Add getAttestingIndices and update getIndexedAttestation
    
    * Update gossip validation
    
    * Update attestation gossip validation
    
    * aggregateAndProof validation
    
    * clean up
    
    * Validator
    
    * Misc
    
    * Fix the build erros
    
    * feat: get attestations for electra block (#6732)
    
    * feat: getAttestationsForBlock() for electra
    
    * chore: fix lint
    
    * fix: MAX_ATTESTATIONS_PER_GROUP_ELECTRA and address PR comments
    
    * chore: unit test aggregateConsolidation
    
    * Fix rebase mistake
    
    * Address my own comment :)
    
    ---------
    
    Co-authored-by: Navie Chan <[email protected]>
    
    * Fix check-types
    
    * Address comments
    
    ---------
    
    Co-authored-by: Nazar Hussain <[email protected]>
    Co-authored-by: tuyennhv <[email protected]>
    Co-authored-by: gajinder <[email protected]>
    4 people committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    84cf396 View commit details
    Browse the repository at this point in the history
  13. fix: attestation pool for electra (#6744)

    * feat: attestationPool to group by slot by data root by committee index for electra
    
    * fix: gossip validation and assert.notNull() util
    
    * fix: remove light-client stats.html
    
    * fix: lint and check-types
    twoeths authored and g11tech committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    09e7510 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    0893276 View commit details
    Browse the repository at this point in the history
  15. feat: rename deposit receipt to deposit request for Pectra (#6748)

    * Rename receipt to request
    
    * Remove stats.html
    ensi321 authored and g11tech committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    2b0ec12 View commit details
    Browse the repository at this point in the history
  16. test: enable spec tests related to eip-7549 (#6741)

    * initial commit
    
    * Update gossip validation
    
    * Update attestation gossip validation
    
    * aggregateAndProof validation
    
    * Extend spec runner to be more flexible
    
    * Add missing state attributes for electra
    
    * Fix ss data types for electra spec
    
    * Make the spec runner more flexible
    
    * Fix the bug in process attestation
    
    * Update the sepc test version
    
    * clean up
    
    * Misc
    
    * Fix the build erros
    
    * feat: get attestations for electra block (#6732)
    
    * feat: getAttestationsForBlock() for electra
    
    * chore: fix lint
    
    * fix: MAX_ATTESTATIONS_PER_GROUP_ELECTRA and address PR comments
    
    * chore: unit test aggregateConsolidation
    
    * Fix rebase mistake
    
    * Address my own comment :)
    
    ---------
    
    Co-authored-by: Navie Chan <[email protected]>
    
    * Fix check-types
    
    * Address comments
    
    * Fix the build erros
    
    * Extend spec runner to be more flexible
    
    * Add missing state attributes for electra
    
    * Fix ss data types for electra spec
    
    * Make the spec runner more flexible
    
    * Fix the bug in process attestation
    
    * Update the sepc test version
    
    * Fix rebase issue
    
    * Update committee index count check
    
    ---------
    
    Co-authored-by: NC <[email protected]>
    Co-authored-by: Navie Chan <[email protected]>
    Co-authored-by: tuyennhv <[email protected]>
    4 people authored and g11tech committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    3cf76cb View commit details
    Browse the repository at this point in the history
  17. fix: fix e2e test in electra-fork (#6751)

    Update spec version
    ensi321 authored and g11tech committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    a0fff8f View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    15b7cdf View commit details
    Browse the repository at this point in the history
  19. feat: apply some fixes and hacks to get the single node devnet workin…

    …g with fork transition (#6754)
    g11tech committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    9f599f3 View commit details
    Browse the repository at this point in the history
  20. fix: get aggregate and proofs signature sets (#6757)

    fix: get signature for SignedAggregateAndProof based on fork
    twoeths authored and g11tech committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    c34eac7 View commit details
    Browse the repository at this point in the history
  21. test(spec): fix attestors slashing specs for electra fork (#6758)

    * Fix attester slashing specs for electra
    
    * Remove unused import
    
    * Add code comment
    
    * Update the expression
    
    * Update the fork check
    nazarhussain authored and g11tech committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    81e7682 View commit details
    Browse the repository at this point in the history
  22. chore: fix types and lint (#6750)

    * chore: fix types and lint
    
    * fx
    
    * type and lint fix
    g11tech committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    f2be317 View commit details
    Browse the repository at this point in the history
  23. fix: fix electra genesis spec test (#6764)

    * process pending deposit from eth1
    
    * Fix the genesis params
    
    * fix
    
    * Fix
    
    * clean up
    
    ---------
    
    Co-authored-by: Nazar Hussain <[email protected]>
    2 people authored and g11tech committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    6393d0a View commit details
    Browse the repository at this point in the history
  24. feat: support missing electra spec test (#6765)

    Add spec test
    ensi321 authored and g11tech committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    55567db View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    8108016 View commit details
    Browse the repository at this point in the history
  26. chore: update EffectiveBalanceIncrements type (#6763)

    * chore: update EffectiveBalanceIncrements type
    
    * chore: remove now irrelevant tests
    jeluard authored and g11tech committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    52be86e View commit details
    Browse the repository at this point in the history
  27. Fix ssz_static

    ensi321 authored and g11tech committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    9bd982c View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    dc2a197 View commit details
    Browse the repository at this point in the history
  29. fix: additional epoch calculation logic for consolidation churn (#6770)

    Fix the chunk limit logic
    nazarhussain authored and g11tech committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    3e6990a View commit details
    Browse the repository at this point in the history
  30. fix: electra fork transition spec tests (#6769)

    * fix: electra fork transition
    
    * fix: merge issue
    
    * chore: remove unwanted change
    twoeths authored and g11tech committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    bd1bb6c View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    f0eab38 View commit details
    Browse the repository at this point in the history
  32. chore(spec): remove the skip specs for electra (#6772)

    Remove the skip spec for electra
    nazarhussain authored and g11tech committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    65b6827 View commit details
    Browse the repository at this point in the history
  33. fix: use mutable validator object (#6774)

    Use mutable validator object
    ensi321 authored and g11tech committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    7f2a77a View commit details
    Browse the repository at this point in the history
  34. test: fix balance spec tests (#6777)

    * fix: remove epochCache.balances and invalid MAX_EFFECTIVE_BALANCE check
    
    * fix: update rewardsAndPenalties balance updates
    
    * docs: add comment to check epochTransitionCache
    matthewkeil authored and g11tech committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    486a766 View commit details
    Browse the repository at this point in the history
  35. fix: effective balance cache is not in sync with validator effective …

    …balance (#6780)
    
    Update eb cache at fork transition
    ensi321 authored and g11tech committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    f82b355 View commit details
    Browse the repository at this point in the history
  36. fix: make electra-fork passes lint and check-types (#6785)

    fix lint and check-types
    ensi321 authored and g11tech committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    1d57ac7 View commit details
    Browse the repository at this point in the history
  37. Configuration menu
    Copy the full SHA
    edc396e View commit details
    Browse the repository at this point in the history
  38. fix: publish attestations with non-zero committee index (#6790)

    Fix publishing att with non-zero comm index
    ensi321 authored and g11tech committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    943c913 View commit details
    Browse the repository at this point in the history
  39. fix: validator monitor summaries should not render during epoch 0 (#6791

    )
    
    Skip render summary at epoch 0
    ensi321 authored and g11tech committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    7a50b6f View commit details
    Browse the repository at this point in the history
  40. fix: attestation duty validation (#6792)

    * fix attestation duty validation
    
    * Update packages/validator/src/services/validatorStore.ts
    
    Co-authored-by: twoeths <[email protected]>
    
    * Update packages/validator/src/services/validatorStore.ts
    
    ---------
    
    Co-authored-by: twoeths <[email protected]>
    Co-authored-by: Cayman <[email protected]>
    3 people authored and g11tech committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    d490b41 View commit details
    Browse the repository at this point in the history
  41. fix: align BeaconBlockBody and BlindedBeaconBlockBody (#6782)

    * fix: align BeaconBlockBody and BlindedBeaconBlockBody
    
    * Remove type hacks in test
    
    ---------
    
    Co-authored-by: Nico Flaig <[email protected]>
    2 people authored and g11tech committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    296ce19 View commit details
    Browse the repository at this point in the history
  42. test: improve ssz tests consistency (#6776)

    * test: improve ssz tests consistency
    
    * chore: address comments
    jeluard authored and g11tech committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    7b76bfc View commit details
    Browse the repository at this point in the history
  43. Configuration menu
    Copy the full SHA
    dbd6a49 View commit details
    Browse the repository at this point in the history
  44. Configuration menu
    Copy the full SHA
    9db912a View commit details
    Browse the repository at this point in the history
  45. fix: get seen AttData key from SignedAggregateAndProof electra (#6802)

    * fix: get seen AttData key from SignedAggregateAndProof electra
    
    * chore: revert the naming change to COMMITTEE_BITS_SIZE and add comment
    
    * fix: add toBase64() util
    twoeths authored and g11tech committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    23868c6 View commit details
    Browse the repository at this point in the history
  46. test: only skip ssz_static tests associated to missing type (#6798)

    * test: only skip ssz_static tests associated to missing type
    
    * More detailed error message if type is not defined
    nflaig authored and g11tech committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    bd5c8b7 View commit details
    Browse the repository at this point in the history
  47. Configuration menu
    Copy the full SHA
    3d19cb4 View commit details
    Browse the repository at this point in the history
  48. feat: add engine_getPayloadBodiesByHash and ByRange V2 (#6852)

    * Add ByHash and ByRange V2
    
    * Fix build issue
    
    * Fix CI error
    ensi321 authored and g11tech committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    e75d906 View commit details
    Browse the repository at this point in the history
  49. Configuration menu
    Copy the full SHA
    d87de02 View commit details
    Browse the repository at this point in the history
  50. Configuration menu
    Copy the full SHA
    44e0041 View commit details
    Browse the repository at this point in the history
  51. rebase fixes

    chore: fix bls and blst versioning
    
    fix: add ForkName.electra to ForkBlobsInfo
    
    some api header lookup fixes
    
    more api fixes
    
    make the api data safe
    
    Co-authored-by: matthewkeil <[email protected]>
    g11tech and matthewkeil committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    43fe8de View commit details
    Browse the repository at this point in the history
  52. feat: handle exited/exiting validators during top up (#6880)

    * Handle exiting validataor
    
    * lint
    
    * Add todo
    ensi321 authored and g11tech committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    4dfe326 View commit details
    Browse the repository at this point in the history
  53. feat: add EL triggered consolidation and remove ExecutionLayer pref…

    …ix (#6865)
    
    * init commit
    
    * Add consolidation request
    
    * fix lint
    
    * Remove ExecutionLayer prefix
    
    * Address comment
    
    * Fix verification logic
    
    * lint
    
    * Add todo
    ensi321 authored and g11tech committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    39edbfd View commit details
    Browse the repository at this point in the history
  54. feat: support electra devnet-1 (#6892)

    * Update spec test version
    
    * Use new max effective balance
    
    * Relax loop breaking condition for `computeProposerIndex`
    
    * fix remaining
    
    * check-types & lint
    
    * Skip invalid test
    
    * Fix rebase + lint
    
    * Remove early return statement in `computeProposers`
    
    * Address comment
    
    * Address comment
    ensi321 authored and g11tech committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    12d7689 View commit details
    Browse the repository at this point in the history
  55. fix: electra rebase fixes on the new generic typing model

    lint & type fix
    
    lint
    g11tech committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    1d9c3a3 View commit details
    Browse the repository at this point in the history
  56. feat: add and parse consolidation requests from engine api

    get the signing log
    g11tech committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    5e7bf4c View commit details
    Browse the repository at this point in the history
  57. Configuration menu
    Copy the full SHA
    08445fd View commit details
    Browse the repository at this point in the history
  58. Configuration menu
    Copy the full SHA
    3a98b2f View commit details
    Browse the repository at this point in the history
  59. chore: rebase fixes

    lint
    
    lint and type fix
    
    update spec version
    
    fix tests
    
    fix spec test
    
    Update packages/beacon-node/src/chain/stateCache/types.ts
    
    Co-authored-by: Cayman <[email protected]>
    
    Update packages/beacon-node/src/chain/stateCache/types.ts
    
    Co-authored-by: Cayman <[email protected]>
    
    Update packages/beacon-node/src/chain/blocks/types.ts
    
    Co-authored-by: Cayman <[email protected]>
    
    Update packages/types/src/utils/typeguards.ts
    
    Co-authored-by: Cayman <[email protected]>
    
    Variable naming
    
    fix the ForkElectra
    
    fix build
    
    fix spec test
    
    Co-authored-by: Cayman <[email protected]>
    g11tech and wemeetagain committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    371e962 View commit details
    Browse the repository at this point in the history
  60. feat: add Electra attestation V2 endpoints (#6951)

    * Initial commit
    
    * getAggregatedAttestationV2
    
    * Lint
    
    * Fix minor flaw
    
    * Add publishAggregateAndProofsV2
    
    * Fix spelling
    
    * Fix CI
    
    * Fix spec test
    
    * Clean up events api
    
    * Run against latest beacon api spec
    
    * Revert changes to emitted events
    
    * Update packages/api/src/beacon/routes/beacon/pool.ts
    
    Co-authored-by: Nico Flaig <[email protected]>
    
    * Update packages/api/src/beacon/routes/beacon/pool.ts
    
    Co-authored-by: Nico Flaig <[email protected]>
    
    * Update packages/api/src/beacon/routes/beacon/pool.ts
    
    Co-authored-by: Nico Flaig <[email protected]>
    
    * Update packages/api/src/beacon/routes/beacon/pool.ts
    
    Co-authored-by: Nico Flaig <[email protected]>
    
    * Address comment
    
    * Add api stub back
    
    * Add todos
    
    * Review PR
    
    * Fix rebase
    
    * Lint
    
    ---------
    
    Co-authored-by: Nico Flaig <[email protected]>
    2 people authored and g11tech committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    5f9f223 View commit details
    Browse the repository at this point in the history
  61. Update packages/beacon-node/src/chain/validation/aggregateAndProof.ts

    Co-authored-by: Cayman <[email protected]>
    
    Update packages/types/src/utils/typeguards.ts
    
    Co-authored-by: Cayman <[email protected]>
    
    Partial address comment
    
    Partial address comment
    
    Co-authored-by: Cayman <[email protected]>
    2 people authored and g11tech committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    e5cda9c View commit details
    Browse the repository at this point in the history
  62. Configuration menu
    Copy the full SHA
    da0f40c View commit details
    Browse the repository at this point in the history
  63. chore: further rebase fixes to unstable

    lint fixes
    
    lint
    
    Fix browser test
    
    Fix unit test
    
    ---------
    
    Co-authored-by: NC <[email protected]>
    g11tech and ensi321 committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    dc4fa9e View commit details
    Browse the repository at this point in the history
  64. fix: cached balances in epoch transition (#7018)

    * fix: update cached balances in epoch transition
    
    * fix: more comments in processEffectiveBalanceUpdates()
    twoeths authored and g11tech committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    ce6a0c7 View commit details
    Browse the repository at this point in the history
  65. Configuration menu
    Copy the full SHA
    4b2f34b View commit details
    Browse the repository at this point in the history
  66. Configuration menu
    Copy the full SHA
    9c86957 View commit details
    Browse the repository at this point in the history
  67. Configuration menu
    Copy the full SHA
    a157b55 View commit details
    Browse the repository at this point in the history
  68. feat: pre-electra support from attestation pool (#6998)

    * Initial commit
    
    * Update packages/beacon-node/src/chain/chain.ts
    
    Co-authored-by: Nico Flaig <[email protected]>
    
    * Update packages/beacon-node/src/api/impl/validator/index.ts
    
    Co-authored-by: Nico Flaig <[email protected]>
    
    * Update packages/beacon-node/src/chain/opPools/aggregatedAttestationPool.ts
    
    Co-authored-by: Nico Flaig <[email protected]>
    
    * address comment
    
    * Add unit test for attestation pool
    
    * fix: getSeenAttDataKey apis (#7009)
    
    * fix: getSeenAttDataKey apis
    
    * chore: use ForkName instead of ForkSeq
    
    * Update packages/beacon-node/src/util/sszBytes.ts
    
    Co-authored-by: Nico Flaig <[email protected]>
    
    * Update packages/beacon-node/src/chain/opPools/aggregatedAttestationPool.ts
    
    Co-authored-by: Nico Flaig <[email protected]>
    
    * address comment
    
    * Update error message
    
    * Update packages/beacon-node/src/chain/opPools/aggregatedAttestationPool.ts
    
    Co-authored-by: Nico Flaig <[email protected]>
    
    * address comment
    
    * Move determining post-electra fork out of loops
    
    ---------
    
    Co-authored-by: Nico Flaig <[email protected]>
    Co-authored-by: twoeths <[email protected]>
    3 people authored and g11tech committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    7d900c5 View commit details
    Browse the repository at this point in the history
  69. fix: use attestation v1 endpoints pre-electra (#7024)

    * fix: use attestation v1 endpoints pre-electra
    
    * Adapt block attestations error message with pool apis
    nflaig authored and g11tech committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    3918aae View commit details
    Browse the repository at this point in the history
  70. Configuration menu
    Copy the full SHA
    5fd2d09 View commit details
    Browse the repository at this point in the history
  71. fix: ssz v0.17.1 (#7035)

    * fix: work around for sliceFrom() api
    
    * Revert "fix: work around for sliceFrom() api"
    
    This reverts commit 7aa6678.
    
    * fix: upgrade ssz
    twoeths authored and g11tech committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    23fb9fb View commit details
    Browse the repository at this point in the history
  72. chore: rebase fixes

    g11tech committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    cb7878b View commit details
    Browse the repository at this point in the history
  73. Configuration menu
    Copy the full SHA
    8ccbed7 View commit details
    Browse the repository at this point in the history
  74. Configuration menu
    Copy the full SHA
    ed18ff0 View commit details
    Browse the repository at this point in the history

Commits on Aug 28, 2024

  1. fix: perf test relative import from state-transition (#7055)

    test: make import relative and add eslint-disable
    matthewkeil authored Aug 28, 2024
    Configuration menu
    Copy the full SHA
    7fe30b4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    03f7396 View commit details
    Browse the repository at this point in the history