Add support for fulu fork epoch and bpo schedule#15975
Conversation
1e0c89e to
39d7744
Compare
|
|
||
| if [ "$#" -lt 2 ]; then | ||
| echo "Usage: $0 <network> <commit_sha> [workspace_file]" >&2 | ||
| echo " network: mainnet | holesky | sepolia | hoodi" >&2 |
There was a problem hiding this comment.
This is just a script to update the WORKSPACE in the future for ethclient package verifying configs
| genesisTime := time.Now() | ||
| genesisValidatorsRoot := make([]byte, 32) | ||
| custodyInfoSet := make(chan struct{}) | ||
| close(custodyInfoSet) // Close immediately since custodyInfo is already set |
There was a problem hiding this comment.
This is required because the custody check is enabled now that we have fulu set
| export ARCHIVE_NAME URL STRIP_PREFIX INTEGRITY | ||
|
|
||
| # Update integrity | ||
| perl -0pi -e ' |
There was a problem hiding this comment.
Why are you using perl for this?
There was a problem hiding this comment.
I didn't put much thought into this script and just got it generated, did some tests, saw it worked and just went with it. will change it to use something standard.
maybe for the sake of this PR i'll just remove this for now
There was a problem hiding this comment.
I updated the values manually at first but it was tedious so i just tried to get ai to automate
|
will merge fulu-p2p-rpc-test-fixes back in after discussing offline |
| @@ -132,8 +132,8 @@ func TestNextForkData(t *testing.T) { | |||
| { | |||
| name: "after last bpo - should be far future epoch and 0x00000000", | |||
There was a problem hiding this comment.
This test doesn't match the data here. The data is neither far future epoch or 0x000000
| params.SetupTestConfigCleanup(t) | ||
| config := params.BeaconConfig() | ||
| config.FuluForkEpoch = 0 | ||
| params.OverrideBeaconConfig(config) |
There was a problem hiding this comment.
This is also a hack. Why not fix the test to support fulu or use a block number that is in electra or something other than unsetting the fulu fork epoch?
There was a problem hiding this comment.
reverted, was due to merging from separate pr
Co-authored-by: Preston Van Loon <[email protected]>
| }, | ||
| { | ||
| name: "after last bpo - should be far future epoch and 0x00000000", | ||
| name: "post last full fork, fulu bpo 1", |
There was a problem hiding this comment.
@kasey I updated this test name based on feedback it gives the bpo 1 after setting
* wip * fixing tests * adding script to update workspace for eth clients * updating test sepc to 1.6.0 and fixing broadcaster test * fix specrefs * more ethspecify fixes * still trying to fix ethspecify * fixing attestation tests * fixing sha for consensus specs * removing script for now until i have something more standard * fixing more p2p tests * fixing discovery tests * attempting to fix discovery test flakeyness * attempting to fix port binding issue * more attempts to fix flakey tests * Revert "more attempts to fix flakey tests" This reverts commit 25e8183. * Revert "attempting to fix port binding issue" This reverts commit 583df80. * Revert "attempting to fix discovery test flakeyness" This reverts commit 3c76525. * Revert "fixing discovery tests" This reverts commit 8c701bf. * Revert "fixing more p2p tests" This reverts commit 140d5db. * Revert "fixing attestation tests" This reverts commit 26ded24. * fixing attestation tests * fixing more p2p tests * fixing discovery tests * attempting to fix discovery test flakeyness * attempting to fix port binding issue * more attempts to fix flakey tests * changelog * fixing import * adding some missing dependencies, but TestService_BroadcastAttestationWithDiscoveryAttempts is still failing * attempting to fix test * reverting test as it migrated to other pr * reverting test * fixing test from merge * Fix `TestService_BroadcastAttestationWithDiscoveryAttempts`. * Fix again `TestService_Start_OnlyStartsOnce`. * fixing TestListenForNewNodes * removing manual set of fulu epoch * missed a few * fixing subnet test * Update beacon-chain/rpc/eth/config/handlers_test.go Co-authored-by: Preston Van Loon <[email protected]> * removing a few more missed spots of reverting fulu epoch setting * updating test name based on feedback * fixing rest apis, they actually need the setting of the epoch due to the guard --------- Co-authored-by: Manu NALEPA <[email protected]> Co-authored-by: Preston Van Loon <[email protected]>
* wip * fixing tests * adding script to update workspace for eth clients * updating test sepc to 1.6.0 and fixing broadcaster test * fix specrefs * more ethspecify fixes * still trying to fix ethspecify * fixing attestation tests * fixing sha for consensus specs * removing script for now until i have something more standard * fixing more p2p tests * fixing discovery tests * attempting to fix discovery test flakeyness * attempting to fix port binding issue * more attempts to fix flakey tests * Revert "more attempts to fix flakey tests" This reverts commit 25e8183. * Revert "attempting to fix port binding issue" This reverts commit 583df80. * Revert "attempting to fix discovery test flakeyness" This reverts commit 3c76525. * Revert "fixing discovery tests" This reverts commit 8c701bf. * Revert "fixing more p2p tests" This reverts commit 140d5db. * Revert "fixing attestation tests" This reverts commit 26ded24. * fixing attestation tests * fixing more p2p tests * fixing discovery tests * attempting to fix discovery test flakeyness * attempting to fix port binding issue * more attempts to fix flakey tests * changelog * fixing import * adding some missing dependencies, but TestService_BroadcastAttestationWithDiscoveryAttempts is still failing * attempting to fix test * reverting test as it migrated to other pr * reverting test * fixing test from merge * Fix `TestService_BroadcastAttestationWithDiscoveryAttempts`. * Fix again `TestService_Start_OnlyStartsOnce`. * fixing TestListenForNewNodes * removing manual set of fulu epoch * missed a few * fixing subnet test * Update beacon-chain/rpc/eth/config/handlers_test.go Co-authored-by: Preston Van Loon <[email protected]> * removing a few more missed spots of reverting fulu epoch setting * updating test name based on feedback * fixing rest apis, they actually need the setting of the epoch due to the guard --------- Co-authored-by: Manu NALEPA <[email protected]> Co-authored-by: Preston Van Loon <[email protected]>
What type of PR is this?
Other
What does this PR do? Why is it needed?
as per ethereum/consensus-specs#4689
Which issues(s) does this PR fix?
Fixes #
Other notes for review
Acknowledgements