lighthouse/beacon_node
Mac L 406e3921d9 Use forwards iterator for state root lookups (#2422)
## Issue Addressed

#2377 

## Proposed Changes

Implement the same code used for block root lookups (from #2376) to state root lookups in order to improve performance and reduce associated memory spikes (e.g. from certain HTTP API requests).

## Additional Changes

- Tests using `rev_iter_state_roots` and `rev_iter_block_roots` have been refactored to use their `forwards` versions instead.
- The `rev_iter_state_roots` and `rev_iter_block_roots` functions are now unused and have been removed.
- The `state_at_slot` function has been changed to use the `forwards` iterator.

## Additional Info

- Some tests still need to be refactored to use their `forwards_iter` versions. These tests start their iteration from a specific beacon state and thus use the `rev_iter_state_roots_from` and `rev_iter_block_roots_from` functions. If they can be refactored, those functions can also be removed.
2021-07-06 02:38:53 +00:00
..
beacon_chain Use forwards iterator for state root lookups (#2422) 2021-07-06 02:38:53 +00:00
client Monitoring service api (#2251) 2021-05-26 05:58:41 +00:00
eth1 Handle Geth pre-EIP-155 block sync error condition (#2304) 2021-06-17 02:10:47 +00:00
eth2_libp2p Update outdated dependencies (#2425) 2021-07-05 00:54:17 +00:00
genesis Add SensitiveUrl to redact user secrets from endpoints (#2326) 2021-05-04 01:59:51 +00:00
http_api Use forwards iterator for state root lookups (#2422) 2021-07-06 02:38:53 +00:00
http_metrics Tune GNU malloc (#2299) 2021-05-28 05:59:45 +00:00
network rust 1.53.0 updates (#2411) 2021-06-18 05:58:01 +00:00
operation_pool Pack attestations into blocks in parallel (#2307) 2021-04-13 05:27:42 +00:00
src Fix options for --eth1-endpoints flag (#2392) 2021-06-04 00:10:59 +00:00
store Use forwards iterator for state root lookups (#2422) 2021-07-06 02:38:53 +00:00
tests rust 1.53.0 updates (#2411) 2021-06-18 05:58:01 +00:00
timer Update to tokio 1.1 (#2172) 2021-02-10 23:29:49 +00:00
websocket_server Server sent events (#1920) 2020-12-04 00:18:58 +00:00
Cargo.toml v1.4.0 (#2402) 2021-06-10 01:44:49 +00:00