lambdaclass / lambdaclass/lambda_ethereum_consensus
Make `Historical accumulator` sanity test case run in a reasonable time
Open
Nobody has claimed this yet.
- Dominant language
- Elixir
- Stars
- 109
- Forks
- 41
- PR merge metrics
- No merged PRs in 30d
Description
This case processes 8192 empty slots, to fill BeaconState.historical_summaries. Because of that, it makes a lot of calls to on_tick, and takes a lot of time.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at lib/spec/runners/sanity.ex around line 92 and run the Historical accumulator sanity case to measure its current runtime. Investigate the repeated on_tick calls while processing 8192 empty slots; done means the case runs in a reasonable time and still fills BeaconState.historical_summaries.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- elixir
- Domain
- blockchain, distributed-systems
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100