nimbus-eth2/tests/fork_choice
Jacek Sieka f0720faf17
Fork choice fixes (#1350)
* remove cruft

* reenable fork choice and fix several issues

* in addForkChoice_v2, the `.error` field would be accessed even when
Result is ok
* remove workaround for invalid block structure in fork choice
* fix `tmpState` being used recursively in callback, causing state
corruption while processing attestation
* fix block callback being called twice per block
* pass state to callback to avoid unnecessary rewinding

* enable head select, fix another bug

* never use `get` without `isOk`
* log nil blockref in case blockref is nil

* add missing error checking

* use correct epoch when updating attestation message
2020-07-22 11:42:55 +02:00
..
scenarios Fork choice fixes (#1350) 2020-07-22 11:42:55 +02:00
interpreter.nim Fork choice fixes (#1350) 2020-07-22 11:42:55 +02:00
tests_fork_choice.nim remove all but one UnusedImport warning (#881) 2020-04-10 16:06:24 +02:00