prysm-pulse/beacon-chain/blockchain
terence tsao af3122a9e8
Fork choice avoids redundant call to get_ancestor (#6282)
* Add helper to prevent zero hashes

* Test

* Add cacheJustifiedStateBalances

* Cache justifed balances

* Use cached justified balances

* Remove unncessary justification checks during initial syncing

* Test

* Proper locking

* Use getter

* Add CheckPointIsEqual helper

* Test CheckPointIsEqual helper

* Update finalizedImpliesNewJustified

* Better tests for finalizedImpliesNewJustified

Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-06-17 08:50:10 -05:00
..
testing Update to v0.12 (#5614) 2020-06-09 15:40:48 -07:00
BUILD.bazel use stateutil.BlockRoot instead of ssz for forkchoice (#6075) 2020-06-01 23:45:57 +00:00
chain_info_norace_test.go Refactor db teardown to testing.TB.Cleanup (#5725) 2020-05-04 01:14:34 +00:00
chain_info_test.go Update to v0.12 (#5614) 2020-06-09 15:40:48 -07:00
chain_info.go Update to v0.12 (#5614) 2020-06-09 15:40:48 -07:00
head_test.go Use justified balances for fork choice (#6272) 2020-06-16 08:10:34 -07:00
head.go Use justified balances for fork choice (#6272) 2020-06-16 08:10:34 -07:00
info.go Removes redundant type conversions (#6041) 2020-05-29 12:42:39 +00:00
init_sync_process_block_test.go Update to v0.12 (#5614) 2020-06-09 15:40:48 -07:00
init_sync_process_block.go Save init sync cached blocks before regenerate state (#5501) 2020-04-18 23:29:58 +00:00
log.go beacon/log: augment logs with block roots (#5675) 2020-04-29 16:57:04 +00:00
metrics.go Remove unused code (#6065) 2020-05-31 15:47:15 -07:00
process_attestation_helpers.go Revert "Remove Excess State Copies" (#6240) 2020-06-14 06:34:33 +00:00
process_attestation_test.go Update to v0.12 (#5614) 2020-06-09 15:40:48 -07:00
process_attestation.go Update to v0.12 (#5614) 2020-06-09 15:40:48 -07:00
process_block_helpers.go Fork choice avoids redundant call to get_ancestor (#6282) 2020-06-17 08:50:10 -05:00
process_block_test.go Fork choice avoids redundant call to get_ancestor (#6282) 2020-06-17 08:50:10 -05:00
process_block.go Use justified balances for fork choice (#6272) 2020-06-16 08:10:34 -07:00
receive_attestation_test.go ActiveValidatorCount to use cache (#6254) 2020-06-14 15:24:49 -07:00
receive_attestation.go Use justified balances for fork choice (#6272) 2020-06-16 08:10:34 -07:00
receive_block.go Use justified balances for fork choice (#6272) 2020-06-16 08:10:34 -07:00
service_norace_test.go Refactor db teardown to testing.TB.Cleanup (#5725) 2020-05-04 01:14:34 +00:00
service_test.go ActiveValidatorCount to use cache (#6254) 2020-06-14 15:24:49 -07:00
service.go Use justified balances for fork choice (#6272) 2020-06-16 08:10:34 -07:00