prysm-pulse/beacon-chain/blockchain
kasey 7cdddcb015
Weak subjectivity verification refactor (#9832)
* weak subjectivity verification refactor

This separates weak subjectivity verification into a
distinct type which does not have a dependency on
blockchain.Service

* remove unused variable

* saving enqueued init blocks before ws verify

* remove TODO, handled in previous commit

* accept suggested comment change

start comment w/ name of function NewWeakSubjectivityVerifier

Co-authored-by: Radosław Kapka <rkapka@wp.pl>

* update log w/ Raul's suggested language

* explicit zero value for clarity

* add comments clarifying how we adhere to spec

* more clear TODO per Raul's feedback

* gofmt

Co-authored-by: kasey <kasey@users.noreply.github.com>
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-11-03 15:07:46 +00:00
..
testing Slasher Simulator Code for Testing Optimized Slasher Behavior (#9695) 2021-09-29 02:27:21 +00:00
blockchain_test.go Update TestMain(): do not call os.Exit() explicitly (#8046) 2020-12-04 16:10:07 +00:00
BUILD.bazel [Service Config Revamp] - Blockchain Initialization (#9783) 2021-10-18 17:48:05 +00:00
chain_info_norace_test.go [Service Config Revamp] - Blockchain Initialization (#9783) 2021-10-18 17:48:05 +00:00
chain_info_test.go [Service Config Revamp] - Blockchain Initialization (#9783) 2021-10-18 17:48:05 +00:00
chain_info.go Check Head State For New Head Methods (#9676) 2021-09-27 08:27:11 +00:00
checktags_test.go Fix data races in tests accessing beacon config concurrently (#8190) 2021-01-05 04:51:25 +00:00
head_sync_committee_info_test.go [Service Config Revamp] - Blockchain Initialization (#9783) 2021-10-18 17:48:05 +00:00
head_sync_committee_info.go Refactor: move functions beacon-chain/core/time -> time/slots (#9719) 2021-10-01 15:17:57 -05:00
head_test.go [Service Config Revamp] - Blockchain Initialization (#9783) 2021-10-18 17:48:05 +00:00
head.go Use BeaconBlockIsNil helper more (#9834) 2021-11-01 14:13:05 +00:00
info_test.go [Service Config Revamp] - Blockchain Initialization (#9783) 2021-10-18 17:48:05 +00:00
info.go Move Shared/Params Into Config/Params (#9642) 2021-09-21 19:59:25 +00:00
init_sync_process_block.go Eliminate Proto V2 Namespace (#9297) 2021-07-28 21:23:44 +00:00
init_test.go Move Shared/Params Into Config/Params (#9642) 2021-09-21 19:59:25 +00:00
log_test.go Move Shared/Testutil into Testing (#9659) 2021-09-23 18:53:46 +00:00
log.go Improve "synced block.." log (#9760) 2021-10-09 15:27:34 +02:00
metrics_test.go Move Shared/Testutil into Testing (#9659) 2021-09-23 18:53:46 +00:00
metrics.go Create Encoding Bytesutil (#9658) 2021-09-23 15:23:37 +00:00
options.go [Service Config Revamp] - Blockchain Initialization (#9783) 2021-10-18 17:48:05 +00:00
process_attestation_helpers.go Use BeaconBlockIsNil helper more (#9834) 2021-11-01 14:13:05 +00:00
process_attestation_test.go [Service Config Revamp] - Blockchain Initialization (#9783) 2021-10-18 17:48:05 +00:00
process_attestation.go Refactor: move functions beacon-chain/core/time -> time/slots (#9719) 2021-10-01 15:17:57 -05:00
process_block_helpers.go Refactor: move functions beacon-chain/core/time -> time/slots (#9719) 2021-10-01 15:17:57 -05:00
process_block_test.go [Service Config Revamp] - Blockchain Initialization (#9783) 2021-10-18 17:48:05 +00:00
process_block.go Use BeaconBlockIsNil helper more (#9834) 2021-11-01 14:13:05 +00:00
receive_attestation_test.go [Service Config Revamp] - Blockchain Initialization (#9783) 2021-10-18 17:48:05 +00:00
receive_attestation.go Refactor: move functions beacon-chain/core/time -> time/slots (#9719) 2021-10-01 15:17:57 -05:00
receive_block_test.go [Service Config Revamp] - Blockchain Initialization (#9783) 2021-10-18 17:48:05 +00:00
receive_block.go Weak subjectivity verification refactor (#9832) 2021-11-03 15:07:46 +00:00
service_norace_test.go [Service Config Revamp] - Blockchain Initialization (#9783) 2021-10-18 17:48:05 +00:00
service_test.go [Service Config Revamp] - Blockchain Initialization (#9783) 2021-10-18 17:48:05 +00:00
service.go Weak subjectivity verification refactor (#9832) 2021-11-03 15:07:46 +00:00
weak_subjectivity_checks_test.go Weak subjectivity verification refactor (#9832) 2021-11-03 15:07:46 +00:00
weak_subjectivity_checks.go Weak subjectivity verification refactor (#9832) 2021-11-03 15:07:46 +00:00