prysm-pulse/beacon-chain/blockchain
terence tsao cc730d17af Optimize Counting Target Votes using Ancestor Cache (#2279)
* use committee cache in UpdateLatestAttestation

* fmt

* gaz

* fixed existing tests

* verify cache miss works

* gaz

* added test for committee hit and update attestation target

* verify cache miss works

* Update beacon-chain/core/helpers/committee.go

Co-Authored-By: terenc3t <terence@prysmaticlabs.com>

* rm declaring err

* add feature flag

* fork choice vote count to use cached ancestor

* comments

* fmt

* spelling and grammer

* no extra space

* renamed vars & added a test for cache miss

* lint

* add cache hit test case : )

* gaz

* Remove Enableblock, it was a copy/paste typo

* refactor cached ancestor blk getter into its own function
2019-04-18 22:26:22 -05:00
..
stategenerator Update State to Include Current and Previous Justified Roots (#2186) 2019-04-10 14:52:06 +08:00
block_processing_test.go Blacklist Bad Block Hashes (#2297) 2019-04-18 16:57:19 -05:00
block_processing.go Blacklist Bad Block Hashes (#2297) 2019-04-18 16:57:19 -05:00
BUILD.bazel Optimize Counting Target Votes using Ancestor Cache (#2279) 2019-04-18 22:26:22 -05:00
fork_choice_test.go Optimize Counting Target Votes using Ancestor Cache (#2279) 2019-04-18 22:26:22 -05:00
fork_choice.go Optimize Counting Target Votes using Ancestor Cache (#2279) 2019-04-18 22:26:22 -05:00
service_test.go Use Parent State When Processing Blocks (#2291) 2019-04-18 12:40:46 -05:00
service.go Proposer Server Filters Attestation by Canonical (#2271) 2019-04-16 13:19:31 -05:00