ralexstokes / ethereum-consensus

Apache License 2.0
137 stars 53 forks source link

cache committee computations in `get_beacon_committee` #349

Open ralexstokes opened 7 months ago

ralexstokes commented 7 months ago

this issue requires a bit of an invasive change to implement some kind of epoch-level cache

I imagine there is such a cache available from the Context, and get_beacon_committee can check if there is already a committee computed for the relevant target before computing it again