prysm-pulse/beacon-chain/db
Mohamed Zahoor c6bd7a2f83
Efficient Historical State Representation (#9155)
* added migration in to new schema

* gazel fix

* goimports fix

* construct state with validator entries from a seperate bucket

* save state with validator entry indirection

* fixed save and retreieve issues

* fixed more test cases related to DeepEqual

* added save benchmark

* gazel fix

* organize benchmarks

* add cache and improve state construction  performance

* gazel fix

* check type

* remove cache checking from Has

* fix decoding when cache is off

* fix slice bugs

* add migration testcases

* linter fix

* fix few review comments

* fix review feedback

* gazel fix

* satisfy deepsource

* added the feature flag

* lint fix

* fix usage of featureconfig Inti in testcases

* call resetConfig method

* add feature flag in  migration testcases

* fix formatting

* change bucket name from blockRootValidatorKeysIndexBucket to blockRootValidatorHashesBucket

* remove from cache when state deleted

* fixed few more comments

* added to devModeFlags

* added cache delete under the feature flag

* fix lint

* change cache sizes and improve documentation

* fiexed few more review coments

* not using hash anymore and using a new SaveStates function

* satisfu deepsource

* run gazel

* fix feature flag related stuff

* fixing merge conflict fix

* few goodies

* improve UX and dont swallow error

* merge fix

* import format fix

* fix migrationion when flag not given issue

Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2021-07-27 20:02:53 +00:00
..
filters Bazel: minimal test build transitions (#9122) 2021-06-30 19:22:09 +00:00
iface Move proto/interfaces -> proto/prysm/v2 (#9270) 2021-07-23 20:10:15 +00:00
kafka Move proto/interfaces -> proto/prysm/v2 (#9270) 2021-07-23 20:10:15 +00:00
kv Efficient Historical State Representation (#9155) 2021-07-27 20:02:53 +00:00
slasherkv Move RPC Protos Into V2 Namespace (#9254) 2021-07-22 21:00:28 +00:00
testing Optimized Slasher Database Methods (#8805) 2021-04-23 12:06:13 -05:00
alias.go Reduce Usage of Eth2 Terminology in Prysm (#9104) 2021-06-26 19:00:33 +00:00
BUILD.bazel Move v1alpha1 into Prysm API namespace (#9245) 2021-07-21 21:34:07 +00:00
db_kafka_wrapped.go Configurable DB Mmap Size for Beacon Node and Validator Client (#8448) 2021-02-15 20:29:47 +00:00
db_test.go Verify interface compliance using typed nil instead of dereferencing and conversion (#7489) 2020-10-10 00:36:48 +00:00
db.go Reduce Usage of Eth2 Terminology in Prysm (#9104) 2021-06-26 19:00:33 +00:00
log.go Unify the pattern of using a package-level logger (#8245) 2021-01-11 20:03:28 +00:00
restore_test.go Move v1alpha1 into Prysm API namespace (#9245) 2021-07-21 21:34:07 +00:00
restore.go Add All Other Prysm CLI Entrypoints to "cmd" Folder (#8545) 2021-03-03 17:05:37 +00:00