Post-electra cleanup
Just listing out some items that can be cleaned up post-electra since we know that all clients / other software will have to be updated to be compatible with the fork (feel free to extend the list)
- [x] remove workaround to fix go-eth2-client issue packages/beacon-node/src/api/rest/base.ts#L142-L151
- [x] remove workaround to fix checkpointz accept header handling packages/cli/src/networks/index.ts#L177-L179
- [x] remove workaround to get fork from state bytes instead of header packages/cli/src/networks/index.ts#L195-L198
- [ ] remove Eth1Provider, it won't work anyways once history expiry happens on EL side packages/beacon-node/src/eth1/provider/eth1Provider.ts#L54
- [x] remove apis no longer part of spec, such as https://github.com/ChainSafe/lodestar/issues/7410
- [x] remove if-else and only call v2 attestation apis, see example packages/validator/src/services/attestation.ts#L239-L247
Should probably include these also:
- https://github.com/ChainSafe/lodestar/issues/7604
- https://github.com/ChainSafe/lodestar/issues/7463
- https://github.com/ChainSafe/lodestar/issues/6799
- https://github.com/ChainSafe/lodestar/issues/7645
Should probably include these also:
those are bit different imo, it's not clean up related but rather remaining todos, but sure can list them here to have broader overview
Just noting this task if relevant after closing #6341:
- [x] ~~Handle deprecation of activationChurnLimit, exitQueueEpoch and exitQueueChurn in EpochCache~~
Just noting this task if relevant after closing #6341:
- [ ] Handle deprecation of activationChurnLimit, exitQueueEpoch and exitQueueChurn in EpochCache
These three variables are no longer being used in Electra. However we can keep them as is so this task is no longer needed
remove Eth1Provider, it won't work anyways once history expiry happens on EL side packages/beacon-node/src/eth1/provider/eth1Provider.ts#L54
Signalling @nflaig on getting this last post-electra task completed to close this also