lighthouse-pulse/lighthouse
Age Manning 785a9171e6 Customisable shuffling cache size (#4081)
This PR enables the user to adjust the shuffling cache size.

This is useful for some HTTP API requests which require re-computing old shufflings. This PR currently optimizes the
beacon/states/{state_id}/committees HTTP API by first checking the cache before re-building shuffling.

If the shuffling is set to a non-default value, then the HTTP API request will also fill the cache when as it constructs new shufflings.

If the CLI flag is not present or the value is set to the default of 16 the default behaviour is observed.


Co-authored-by: Michael Sproul <michael@sigmaprime.io>
2023-03-21 05:14:59 +00:00
..
environment Add CLI flag to specify the format of logs written to the logfile (#3839) 2023-01-16 03:42:10 +00:00
src Appease Clippy 1.68 and refactor http_api (#4068) 2023-03-13 01:40:03 +00:00
tests Customisable shuffling cache size (#4081) 2023-03-21 05:14:59 +00:00
Cargo.toml Correct a race condition when dialing peers (#4056) 2023-03-16 05:44:54 +00:00