prysm-pulse/beacon-chain/blockchain
Radosław Kapka 44973b0bb3
Using the multi value slice for the beacon state (#12549)
* in progress...

* in progress...

* remove log

* log root

* Revert "Auxiliary commit to revert individual files from f12a609ea2a2f1e87e97321f3a717cd324b5ae97"

This reverts commit 5ae35edb6477d8d0ea4e94b273efc6590484da85.

* cleanup

* remove log

* remove whitespace

* remove logs

* more stuff

* copy

* always rebuild trie

* revert

* add state

* init state

* fix all

* uintptr

* move slice to new package

* lock in `Detach`

* remove constraint

* reorder

* blockroots and stateroots

* fill roots in empty()

* fix hasher

* implement slice for balances and inactivity scores

* detach in setters

* Revert "implement slice for balances and inactivity scores"

This reverts commit 59eb9df8d766cb1c44a7eb5b3f5e3c042249943d.

# Conflicts:
#	beacon-chain/state/state-native/setters_validator.go

* use counter to track states

* typos

* rename interface

* balances

* gauge

* some improvements

* first try with map

* fix

* inactivity scores in progress

* fix test

# Conflicts:
#	beacon-chain/state/state-native/helpers_test.go

* test fixes

* ToProto fix

* copy roots

* validators

* build fixes

* fix bug in `ToProto`

* fix fuzz test

* fix bug in slice getters

* fix state equality checks

* make tests pass

* make tests pass

* more test updates

* Revert "Auxiliary commit to revert individual files from 34e7344bff08a589e6341bb1829e3cb74159e878"

This reverts commit ecd64efa8917f37ca41460e0356ff007fe55dd9d.

* Revert "make tests pass"

This reverts commit 0cf00f19eecf4678cd2b866dd107f3179d0426ef.

* Revert "make tests pass"

This reverts commit 521b65e1d2e13be3d720f333008b6838a8e78878.

* pass tests

* deepequal identifiable types

* Deflake `cloners_test.go`

* feature flag for block roots

* feature flag

* remove recursive locks

* reduce complexity of rootSelector

* fix randao mixes root

* some fixes

* revisit tests

* revert change to field trie helpers

* initialize field map for tests

* remove whitespace

* initialize roots with proper length

* more fixes

* out of bounds message fix

* optimize length calculation

* remove call to Len in PubkeyAtIndex

* don't log deposits

* unit tests

* unit tests

* fix

* comments

* test fixes

* id

* remove Enumerator interface

* review feedback

* simplify field trie

* bring back fieldtrie package

* fix bazel file

* use handle32ByteArrays for root computation

* fix locks

* metrics

* bzl

* simplify some things

* use htr in state test

* remove code from require package

* gzl

* more htr

* Fuzzing of the multi-value slice

* assert values

* getter optimizations

* use At when reading from validators

* Nishant's review

* restore safe copy

* remove empty line

* build fix

* restore how we get root at index for deafult mode

* more review comments

* optimize default behavior

* simplify Slice calls

* test fix

* remove unnecessary package

* remove unused setter

* make fieldMap unexported

* some improvements in state package

* call `Slice` instead of manually copying

* unlock in ReadFromEveryValidator

* Potuz's comments

* lock the state when reading from all validators

# Conflicts:
#	beacon-chain/state/state-native/getters_validator.go

* add back preston's changes

* add index

---------

Co-authored-by: Potuz <potuz@prysmaticlabs.com>
Co-authored-by: nisdas <nishdas93@gmail.com>
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com>
2023-10-06 01:10:05 +00:00
..
kzg Validate blobs feature (#12574) 2023-08-31 08:41:57 -05:00
testing Deneb spectests release v1.4.0-beta.2-hotfix (#12959) 2023-09-28 21:05:23 +00:00
blockchain_test.go Replace ioutil with io and os (#10541) 2022-04-18 20:42:07 +00:00
BUILD.bazel [1/5] Light client sync protocol (#12853) 2023-10-02 15:34:34 +00:00
chain_info_forkchoice.go Use same signature for unrealized justified hash and justified hash (#12314) 2023-04-20 15:59:12 +00:00
chain_info_norace_test.go Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
chain_info_test.go Track optimistic status on head (#12552) 2023-06-20 08:59:48 -07:00
chain_info.go keep track of block being synced (#12903) 2023-09-15 17:13:13 +00:00
checktags_test.go Use go:build lines and remove obsolete +build lines (#10704) 2022-06-14 11:47:27 +00:00
currently_syncing_block.go keep track of block being synced (#12903) 2023-09-15 17:13:13 +00:00
error_test.go Handle wrapped invalid block error (#12982) 2023-10-04 18:16:35 +00:00
error.go Handle wrapped invalid block error (#12982) 2023-10-04 18:16:35 +00:00
execution_engine_test.go feat: implement eip4788 (#12570) 2023-08-31 08:41:57 -05:00
execution_engine.go Deneb: blob sidecar events (#12928) 2023-09-22 21:54:10 +00:00
forkchoice_update_execution_test.go Replace statefeed Initialize (#12285) 2023-05-03 04:34:01 +00:00
forkchoice_update_execution.go log correctly the head changed when it actually changes (#12324) 2023-04-27 17:13:58 +00:00
head_sync_committee_info_test.go Use next slot cache for sync committee (#12287) 2023-06-12 04:30:06 +00:00
head_sync_committee_info.go Use next slot cache for sync committee (#12287) 2023-06-12 04:30:06 +00:00
head_test.go Replace statefeed Initialize (#12285) 2023-05-03 04:34:01 +00:00
head.go set optimistic status in head at init sync (#12748) 2023-08-16 00:47:56 +00:00
init_sync_process_block_test.go Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
init_sync_process_block.go Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
init_test.go Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
lightclient_test.go [1/5] Light client sync protocol (#12853) 2023-10-02 15:34:34 +00:00
lightclient.go [1/5] Light client sync protocol (#12853) 2023-10-02 15:34:34 +00:00
log_test.go Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
log.go Improved Logging for Blob Sidecar (#12883) 2023-09-11 20:46:06 +00:00
merge_ascii_art.go Merge ascii art banner (#10773) 2022-06-14 08:25:42 +00:00
metrics_test.go Using the multi value slice for the beacon state (#12549) 2023-10-06 01:10:05 +00:00
metrics.go use read-only validators (#12628) 2023-07-15 00:34:45 -07:00
mock_test.go Replace statefeed Initialize (#12285) 2023-05-03 04:34:01 +00:00
options.go Integrate EIP-4881 Deposit Tree Into Prysm via a Feature Flag (#11942) 2023-09-07 03:19:32 +00:00
pow_block_test.go Replace statefeed Initialize (#12285) 2023-05-03 04:34:01 +00:00
pow_block.go Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
process_attestation_helpers.go Add epoch and root to not a checkpt in forkchoice log (#12400) 2023-05-14 06:02:36 +00:00
process_attestation_test.go Add epoch and root to not a checkpt in forkchoice log (#12400) 2023-05-14 06:02:36 +00:00
process_attestation.go Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
process_block_helpers.go Integrate EIP-4881 Deposit Tree Into Prysm via a Feature Flag (#11942) 2023-09-07 03:19:32 +00:00
process_block_test.go Tests for init-sync DA (#12873) 2023-09-08 10:47:34 +00:00
process_block.go Lock forkchoice on late block tasks (#12978) 2023-10-02 17:07:03 +00:00
receive_attestation_test.go Move consensus and execution validation outside of onBlock (#12589) 2023-07-05 21:12:21 +08:00
receive_attestation.go add more descriptive log on FFG-LMD consistency (#12763) 2023-08-21 14:06:59 +00:00
receive_blob.go Deneb spectests release v1.4.0-beta.2-hotfix (#12959) 2023-09-28 21:05:23 +00:00
receive_block_test.go Fix More Racy Tests in Blockchain (#12957) 2023-09-26 09:17:11 +00:00
receive_block.go Deneb spectests release v1.4.0-beta.2-hotfix (#12959) 2023-09-28 21:05:23 +00:00
service_norace_test.go Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
service_test.go set optimistic status in head at init sync (#12748) 2023-08-16 00:47:56 +00:00
service.go keep track of block being synced (#12903) 2023-09-15 17:13:13 +00:00
setup_test.go Update ProposeBeaconBlock Prysm RPC for Deneb (Non builder) (#12495) 2023-08-31 08:41:57 -05:00
weak_subjectivity_checks_test.go Isolate forkchoice to blockchain package (#12174) 2023-03-22 09:12:54 +08:00
weak_subjectivity_checks.go Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00