prysm-pulse/beacon-chain/sync
Preston Van Loon 83130358a9
Rollback state to handle side chain with skip blocks (#2147)
* Add initial test

* chkpt

* add failing test

* add span to historical state lookup

* use db.HighestBlockSlot()

* fix comment

* update comment

* i wrote a test like a good programmer.

* add test back

* add assertion and unskip test, something new failing tho

* trying to fix test

* remove -1, not sure if i need it yet

* Revert "remove -1, not sure if i need it yet"

This reverts commit 2cfcbb8108b28bb3d7135a993d9053150d5f1e6e.

* save historical state on every save state

* fix hsitorical states

* set historical state in initialize state

* change to a bool

* fix error with empty retrieval of states

* Add missing import

* fix test

* lock in receive block

* remove state generator

* Revert "lock in receive block"

This reverts commit 151b10829d70b2dad3055a8db36d0e1269a853f2.

* Fix Initial Sync Not Processing Canonical Block to Produce Canonical State (#2152)

* fix init sync

* fatal if highest observed root does not match

* proto fields

* Update beacon-chain/sync/initial-sync/service.go

* confirm canonical state root

* fix most tests

* failing test

* fix PR tests

* lint

* no simbackend changes

* logf revert

* add todo

* fix off by one

* fix test with deleted property

* merge #2157

* passing tests :)
2019-04-04 22:39:51 -05:00
..
initial-sync Rollback state to handle side chain with skip blocks (#2147) 2019-04-04 22:39:51 -05:00
BUILD.bazel Request Missing Parents Recursively via P2P (#2089) 2019-03-27 13:47:05 -05:00
metrics.go Broadcast attestations (#2035) 2019-03-19 23:54:16 -04:00
querier_test.go Rollback state to handle side chain with skip blocks (#2147) 2019-04-04 22:39:51 -05:00
querier.go Rollback state to handle side chain with skip blocks (#2147) 2019-04-04 22:39:51 -05:00
receive_block_test.go Pass ctx to saveState (#2141) 2019-04-02 16:49:45 +08:00
receive_block.go Refactor Initial Sync, Enable Catching Up to Chain (#2111) 2019-04-03 10:13:19 -05:00
regular_sync_test.go don't use c.ctx, use argument ctx instead (#2157) 2019-04-04 08:30:23 -05:00
regular_sync.go Rollback state to handle side chain with skip blocks (#2147) 2019-04-04 22:39:51 -05:00
service_test.go Use justified state as start state for running fork choice (#2093) 2019-03-27 14:53:43 -05:00
service.go Rollback state to handle side chain with skip blocks (#2147) 2019-04-04 22:39:51 -05:00
simulated_sync_test.go Rollback state to handle side chain with skip blocks (#2147) 2019-04-04 22:39:51 -05:00