prysm-pulse/beacon-chain/blockchain
terence tsao 0d64f7b80e Part 6 of update fork choice - implement new ReceiveAttestation (#3246)
* Implemented new fork choice service and helpers

* Added rest of the tests

* Lint

* Add back helpers test

* Reformatted to doc, helpers and metrics.go

* include new getter for block

* create block filters from indices

* give every block index a unique bucket

* construct block indices by bucket mmap

* almost done save for the block filters

* include block filters, need a few more small touches for fetching the proper indices by bucket

* full functionality to filter by parent root

* tests pass when using the same logic as attestations

* todo

* proper todo formatting

* first minimum slot range filter

* slot range filters pass

* more filter criteria passing

* tests passing

* add todos

* all block tests pass and work

* rem fmt

* range retrieval test

* fixed test conditions

* instantiate the other buckets

* simplify bucket lookups

* deprecate non map code

* revamp to remove old index prefixes

* create indices from data

* create indices from data

* fetch block roots by slot range

* better abstractions

* simpler abstractions

* roots rename

* comment

* preston feedback

* Fixed existing tests

* allow blocks without parent root

* Cleaned up a few things

* Removed todo

* Lint

* Cleaned up a few things

* A few functions don't need to be exported

* Gaz

* Fixed visibility

* Review feedback

* Review feedback part1

* Raul's feedback, refactored OnBlock and OnAttestation to its own file

* Fixed grammar

* Lint

* Implemented ReceiveAttestation

* Use time.Time

* Implemented ReceiveAttestation

* All tests pass

* Lint

* Oooops

* Typo
2019-08-22 20:00:55 -05:00
..
forkchoice Part 6 of update fork choice - implement new ReceiveAttestation (#3246) 2019-08-22 20:00:55 -05:00
BUILD.bazel Part 6 of update fork choice - implement new ReceiveAttestation (#3246) 2019-08-22 20:00:55 -05:00
chain_info_test.go Add getter for GenesisTime (#3274) 2019-08-22 11:41:05 -05:00
chain_info.go Add getter for GenesisTime (#3274) 2019-08-22 11:41:05 -05:00
receive_attestation_test.go Part 6 of update fork choice - implement new ReceiveAttestation (#3246) 2019-08-22 20:00:55 -05:00
receive_attestation.go Part 6 of update fork choice - implement new ReceiveAttestation (#3246) 2019-08-22 20:00:55 -05:00
receive_block_test.go Deprecate old block chain service (#3268) 2019-08-21 19:14:24 -06:00
receive_block.go Part 6 of update fork choice - implement new ReceiveAttestation (#3246) 2019-08-22 20:00:55 -05:00
service_test.go Part 6 of update fork choice - implement new ReceiveAttestation (#3246) 2019-08-22 20:00:55 -05:00
service.go Part 6 of update fork choice - implement new ReceiveAttestation (#3246) 2019-08-22 20:00:55 -05:00