prysm-pulse/beacon-chain/blockchain
Potuz 0a87210514
Forkchoice external locks v2 (#12036)
* write locks

* fix forkchoice tests

* blockchain locks

* lock on IsOptimistic

* use forkchoice instead of chaininfo within savehead

* Use forkchoice HasNode to check if a block is consistent with finality

* interface fix

* Use forkchoice HasNode to check if a block is consistent with finality

* interface fix

* fix tests

* remove VerifyFinalizedBlkDescendant

* don't write lock wrappers

* fix validateBeaconBlock

* Terence's review and more missing locks

* add lock for InForkChoice

* lock head on fillMissingBlockPayload

* fix lock on IsOptimisticForRoot

* fix lock in fillMissingBlockPayloadId

* extra comments

* lock proposerBoost on spectests

* nishant's review

---------

Co-authored-by: Nishant Das <nishdas93@gmail.com>
2023-03-02 09:10:52 -03:00
..
testing Remove VerifyFinalizedBlkDescendant (#12046) 2023-02-25 13:39:13 -03:00
blockchain_test.go Replace ioutil with io and os (#10541) 2022-04-18 20:42:07 +00:00
BUILD.bazel Remove state balance cache (#11964) 2023-02-15 14:19:46 +00:00
chain_info_norace_test.go save genesis state to hot cache and do not look it up from disk (#11911) 2023-01-24 23:14:50 +01:00
chain_info_test.go Remove state balance cache (#11964) 2023-02-15 14:19:46 +00:00
chain_info.go Forkchoice external locks v2 (#12036) 2023-03-02 09:10:52 -03:00
checktags_test.go Use go:build lines and remove obsolete +build lines (#10704) 2022-06-14 11:47:27 +00:00
error_test.go Add V3 Suffix to All Prysm Packages (#11083) 2022-08-16 12:20:13 +00:00
error.go Remove VerifyFinalizedBlkDescendant (#12046) 2023-02-25 13:39:13 -03:00
execution_engine_test.go Remove state balance cache (#11964) 2023-02-15 14:19:46 +00:00
execution_engine.go Remove state balance cache (#11964) 2023-02-15 14:19:46 +00:00
forkchoice_update_execution_test.go Call FCU with attribute on non head block (#11919) 2023-01-31 19:17:16 +00:00
forkchoice_update_execution.go Rename block interfaces (#11975) 2023-02-09 10:23:32 +01:00
head_sync_committee_info_test.go Clean up state types (#11916) 2023-01-26 14:40:12 +00:00
head_sync_committee_info.go Clean up state types (#11916) 2023-01-26 14:40:12 +00:00
head_test.go Remove state balance cache (#11964) 2023-02-15 14:19:46 +00:00
head.go Forkchoice external locks v2 (#12036) 2023-03-02 09:10:52 -03:00
init_sync_process_block_test.go Add V3 Suffix to All Prysm Packages (#11083) 2022-08-16 12:20:13 +00:00
init_sync_process_block.go Rename block interfaces (#11975) 2023-02-09 10:23:32 +01:00
init_test.go Add V3 Suffix to All Prysm Packages (#11083) 2022-08-16 12:20:13 +00:00
log_test.go Rename block interfaces (#11975) 2023-02-09 10:23:32 +01:00
log.go Rename block interfaces (#11975) 2023-02-09 10:23:32 +01:00
merge_ascii_art.go Merge ascii art banner (#10773) 2022-06-14 08:25:42 +00:00
metrics_test.go Add V3 Suffix to All Prysm Packages (#11083) 2022-08-16 12:20:13 +00:00
metrics.go Remove state balance cache (#11964) 2023-02-15 14:19:46 +00:00
mock_test.go Remove state balance cache (#11964) 2023-02-15 14:19:46 +00:00
options.go Remove state balance cache (#11964) 2023-02-15 14:19:46 +00:00
pow_block_test.go Add and use SignedBeaconBlockWriteOnly (#11968) 2023-02-08 08:39:14 -08:00
pow_block.go Rename block interfaces (#11975) 2023-02-09 10:23:32 +01:00
process_attestation_helpers.go Clean up state types (#11916) 2023-01-26 14:40:12 +00:00
process_attestation_test.go Remove VerifyFinalizedBlkDescendant (#12046) 2023-02-25 13:39:13 -03:00
process_attestation.go Update go to 1.19.3 (#11630) 2022-11-18 19:12:19 +00:00
process_block_helpers.go Remove VerifyFinalizedBlkDescendant (#12046) 2023-02-25 13:39:13 -03:00
process_block_test.go Remove VerifyFinalizedBlkDescendant (#12046) 2023-02-25 13:39:13 -03:00
process_block.go Forkchoice external locks v2 (#12036) 2023-03-02 09:10:52 -03:00
receive_attestation_test.go Remove state balance cache (#11964) 2023-02-15 14:19:46 +00:00
receive_attestation.go Forkchoice external locks v2 (#12036) 2023-03-02 09:10:52 -03:00
receive_block_test.go Redesign voluntary exits pool (#11898) 2023-03-01 17:44:00 +01:00
receive_block.go Forkchoice external locks v2 (#12036) 2023-03-02 09:10:52 -03:00
service_norace_test.go Add V3 Suffix to All Prysm Packages (#11083) 2022-08-16 12:20:13 +00:00
service_test.go Rename block interfaces (#11975) 2023-02-09 10:23:32 +01:00
service.go Forkchoice external locks v2 (#12036) 2023-03-02 09:10:52 -03:00
weak_subjectivity_checks_test.go Clean up state types (#11916) 2023-01-26 14:40:12 +00:00
weak_subjectivity_checks.go Clean up state types (#11916) 2023-01-26 14:40:12 +00:00