nimbus-eth2/beacon_chain/spec
Jacek Sieka 84a501d1ff
remove one cache, add another (#1449)
* remove one cache, add another

This cache removes the need for rewinding in most attestation validation
flow since the attestations come from one of two epochs and must be
targetting a viable block.

Additionally, it also removes all state caches which are less likely to
be used over-all - more metrics are needed to track the rewinding.

On risk is that when chains don't finalize, we'll have lots of epochrefs
in memory meaning lots of validator key databases, most being exactly
the same. This can be addressed in any number of ways. Some of the
memory usage is mitigated by the fact that we previously had lots of big
state caches and now we're keeping only keys instead.

* cleanups

* doc
2020-08-06 19:48:47 +00:00
..
eth2_apis Add an option for graffiti customization 2020-07-12 21:01:31 +03:00
presets/v0_12_2 Fix 'make test' 2020-08-06 14:49:58 +03:00
beaconstate.nim update spec refs to v0.12.2 (#1457) 2020-08-06 13:05:13 +00:00
crypto.nim fix validator cache keys 2020-08-04 23:00:33 +03:00
datatypes.nim mark .borrow. procs as noSideEffect (#1402) 2020-07-30 14:47:59 +02:00
digest.nim update 111 v0.12.1 beacon chain spec refs to v0.12.2 (#1380) 2020-07-27 18:49:46 +02:00
english_word_list.txt Bump testutils 2020-06-01 16:58:28 +03:00
helpers.nim update 111 v0.12.1 beacon chain spec refs to v0.12.2 (#1380) 2020-07-27 18:49:46 +02:00
keystore.nim Allow loading keystores produced by Lighthouse 2020-08-06 17:33:57 +03:00
network.nim convert 22 v0.12.1 spec refs to v0.12.2 and remove 1 unnecessary spec ref (#1384) 2020-07-28 14:55:46 +00:00
preset_values.nim v0.12.2 beacon chain protocol update (#1378) 2020-07-27 12:59:57 +02:00
presets.nim make eth1 distance runtime configurable 2020-08-06 14:49:58 +03:00
signatures.nim lazily initialize validator public keys, which were a third or more of sync CPU usage 2020-08-04 23:00:33 +03:00
state_transition.nim convert 10 v0.12.1 spec refs to v0.12.2 (#1406) 2020-07-31 09:59:14 +00:00
state_transition_block.nim update 111 v0.12.1 beacon chain spec refs to v0.12.2 (#1380) 2020-07-27 18:49:46 +02:00
state_transition_epoch.nim increase allowed missing validators in verifyFinalization mode (#1414) 2020-08-03 05:31:35 +00:00
state_transition_helpers.nim update 111 v0.12.1 beacon chain spec refs to v0.12.2 (#1380) 2020-07-27 18:49:46 +02:00
validator.nim remove one cache, add another (#1449) 2020-08-06 19:48:47 +00:00