lighthouse/beacon_node/beacon_chain/tests
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
..
attestation_production.rs Use the forwards iterator more often (#2376) 2021-05-31 04:18:20 +00:00
attestation_verification.rs Use the forwards iterator more often (#2376) 2021-05-31 04:18:20 +00:00
block_verification.rs Enable Compatibility with Windows (#2333) 2021-05-19 23:05:16 +00:00
op_verification.rs Use the database to persist the pubkey cache (#2234) 2021-03-04 01:25:12 +00:00
persistence_tests.rs Use the database to persist the pubkey cache (#2234) 2021-03-04 01:25:12 +00:00
store_tests.rs Use forwards iterator for state root lookups (#2422) 2021-07-06 02:38:53 +00:00
tests.rs Use forwards iterator for state root lookups (#2422) 2021-07-06 02:38:53 +00:00