nimbus-eth2/beacon_chain/fork_choice
Jacek Sieka 157ddd2ac4
Fork choice fixes 5 (#1381)
* limit attestations kept in attestation pool

With fork choice updated, the attestation pool only needs to keep track
of attestations that will eventually end up in blocks - we can thus
limit the horizon of attestations that we keep more aggressively.

To get here, we expose getEpochRef which gets metadata about a
particular epochref, and make sure to populate it when a block is added
- this ensures that state rewinds during block addition are minimized.

In addition, we'll use the target root/epoch when validating
attestations - this helps minimize the number of different states that
we need to rewind to, in general.

* remove CandidateChains.justifiedState

unused

* remove BlockPools.Head object

* avoid quadratic quarantine loop

* fix
2020-07-28 13:54:32 +00:00
..
README.md bump a couple more eth2 phase0 spec refs to v0.11.1 2020-04-17 16:37:52 +03:00
fork_choice.nim Fork choice fixes 5 (#1381) 2020-07-28 13:54:32 +00:00
fork_choice_types.nim Use fork v2 (#1358) 2020-07-25 21:41:12 +02:00
proto_array.nim Fork choice fixes (#1350) 2020-07-22 11:42:55 +02:00