lighthouse/consensus/types/src
realbigsean adbb62f7f3
Devnet6 (#4404)
* some blob reprocessing work

* remove ForceBlockLookup

* reorder enum match arms in sync manager

* a lot more reprocessing work

* impl logic for triggerng blob lookups along with block lookups

* deal with rpc blobs in groups per block in the da checker. don't cache missing blob ids in the da checker.

* make single block lookup generic

* more work

* add delayed processing logic and combine some requests

* start fixing some compile errors

* fix compilation in main block lookup mod

* much work

* get things compiling

* parent blob lookups

* fix compile

* revert red/stevie changes

* fix up sync manager delay message logic

* add peer usefulness enum

* should remove lookup refactor

* consolidate retry error handling

* improve peer scoring during certain failures in parent lookups

* improve retry code

* drop parent lookup if either req has a peer disconnect during download

* refactor single block processed method

* processing peer refactor

* smol bugfix

* fix some todos

* fix lints

* fix lints

* fix compile in lookup tests

* fix lints

* fix lints

* fix existing block lookup tests

* renamings

* fix after merge

* cargo fmt

* compilation fix in beacon chain tests

* fix

* refactor lookup tests to work with multiple forks and response types

* make tests into macros

* wrap availability check error

* fix compile after merge

* add random blobs

* start fixing up lookup verify error handling

* some bug fixes and the start of deneb only tests

* make tests work for all forks

* track information about peer source

* error refactoring

* improve peer scoring

* fix test compilation

* make sure blobs are sent for processing after stream termination, delete copied tests

* add some tests and fix a bug

* smol bugfixes and moar tests

* add tests and fix some things

* compile after merge

* lots of refactoring

* retry on invalid block/blob

* merge unknown parent messages before current slot lookup

* get tests compiling

* penalize blob peer on invalid blobs

* Check disk on in-memory cache miss

* Update beacon_node/beacon_chain/src/data_availability_checker/overflow_lru_cache.rs

* Update beacon_node/network/src/sync/network_context.rs

Co-authored-by: Divma <26765164+divagant-martian@users.noreply.github.com>

* fix bug in matching blocks and blobs in range sync

* pr feedback

* fix conflicts

* upgrade logs from warn to crit when we receive incorrect response in range

* synced_and_connected_within_tolerance -> should_search_for_block

* remove todo

* add data gas used and update excess data gas to u64

* Fix Broken Overflow Tests

* payload verification with commitments

* fix merge conflicts

* restore payload file

* Restore payload file

* remove todo

* add max blob commitments per block

* c-kzg lib update

* Fix ef tests

* Abstract over minimal/mainnet spec in kzg crate

* Start integrating new KZG

* checkpoint sync without alignment

* checkpoint sync without alignment

* add import

* add import

* query for checkpoint state by slot rather than state root (teku doesn't serve by state root)

* query for checkpoint state by slot rather than state root (teku doesn't serve by state root)

* loosen check

* get state first and query by most recent block root

* Revert "loosen check"

This reverts commit 069d13dd63aa794a3505db9f17bd1a6b73f0be81.

* get state first and query by most recent block root

* merge max blobs change

* simplify delay logic

* rename unknown parent sync message variants

* rename parameter, block_slot -> slot

* add some docs to the lookup module

* use interval instead of sleep

* drop request if blocks and blobs requests both return `None` for `Id`

* clean up `find_single_lookup` logic

* add lookup source enum

* clean up `find_single_lookup` logic

* add docs to find_single_lookup_request

* move LookupSource our of param where unnecessary

* remove unnecessary todo

* query for block by `state.latest_block_header.slot`

* fix lint

* fix merge transition ef tests

* fix test

* fix test

* fix observed  blob sidecars test

* Add some metrics (#33)

* fix protocol limits for blobs by root

* Update Engine API for 1:1 Structure Method

* make beacon chain tests to fix devnet 6 changes

* get ckzg working and fix some tests

* fix remaining tests

* fix lints

* Fix KZG linking issues

* remove unused dep

* lockfile

* test fixes

* remove dbgs

* remove unwrap

* cleanup tx generator

* small fixes

* fixing fixes

* more self reivew

* more self review

* refactor genesis header initialization

* refactor mock el instantiations

* fix compile

* fix network test, make sure they run for each fork

* pr feedback

* fix last test (hopefully)

---------

Co-authored-by: Pawan Dhananjay <pawandhananjay@gmail.com>
Co-authored-by: Mark Mackey <mark@sigmaprime.io>
Co-authored-by: Divma <26765164+divagant-martian@users.noreply.github.com>
Co-authored-by: Michael Sproul <michael@sigmaprime.io>
2023-06-29 15:35:43 -04:00
..
beacon_state Fix Rust 1.69 lints (#4222) 2023-04-21 18:29:28 +00:00
test_utils Single blob lookups (#4152) 2023-06-15 12:59:10 -04:00
aggregate_and_proof.rs Split common crates out into their own repos (#3890) 2023-04-28 01:15:40 +00:00
application_domain.rs Register validator api (#3194) 2022-06-30 00:49:21 +00:00
attestation_data.rs Split common crates out into their own repos (#3890) 2023-04-28 01:15:40 +00:00
attestation_duty.rs Split common crates out into their own repos (#3890) 2023-04-28 01:15:40 +00:00
attestation.rs Fix Arbitrary implementations (#3867) 2023-01-12 15:17:03 +11:00
attester_slashing.rs Fix Arbitrary implementations (#3867) 2023-01-12 15:17:03 +11:00
beacon_block_body.rs Devnet6 (#4404) 2023-06-29 15:35:43 -04:00
beacon_block_header.rs Split common crates out into their own repos (#3890) 2023-04-28 01:15:40 +00:00
beacon_block.rs Merge branch 'unstable' into deneb-free-blobs 2023-05-30 22:44:05 +10:00
beacon_committee.rs Fix Arbitrary implementations (#3867) 2023-01-12 15:17:03 +11:00
beacon_state.rs Merge branch 'unstable' into deneb-free-blobs 2023-05-30 22:44:05 +10:00
blob_sidecar.rs Devnet6 (#4404) 2023-06-29 15:35:43 -04:00
bls_to_execution_change.rs Split common crates out into their own repos (#3890) 2023-04-28 01:15:40 +00:00
builder_bid.rs Split common crates out into their own repos (#3890) 2023-04-28 01:15:40 +00:00
chain_spec.rs Merge branch 'unstable' into deneb-merge-from-unstable-20230627 2023-06-27 15:30:44 +10:00
checkpoint.rs Fix Arbitrary implementations (#3867) 2023-01-12 15:17:03 +11:00
config_and_preset.rs Merge branch 'unstable' of https://github.com/sigp/lighthouse into deneb-free-blobs 2023-06-02 11:57:15 -04:00
consts.rs Devnet6 (#4404) 2023-06-29 15:35:43 -04:00
contribution_and_proof.rs Split common crates out into their own repos (#3890) 2023-04-28 01:15:40 +00:00
deposit_data.rs Split common crates out into their own repos (#3890) 2023-04-28 01:15:40 +00:00
deposit_message.rs Split common crates out into their own repos (#3890) 2023-04-28 01:15:40 +00:00
deposit_tree_snapshot.rs Use JSON by default for Deposit Snapshot Sync (#4397) 2023-06-15 08:42:20 +00:00
deposit.rs Fix Arbitrary implementations (#3867) 2023-01-12 15:17:03 +11:00
enr_fork_id.rs Split common crates out into their own repos (#3890) 2023-04-28 01:15:40 +00:00
eth1_data.rs Split common crates out into their own repos (#3890) 2023-04-28 01:15:40 +00:00
eth_spec.rs Devnet6 (#4404) 2023-06-29 15:35:43 -04:00
execution_block_hash.rs merge capella 2023-01-12 12:51:09 -05:00
execution_block_header.rs Devnet6 (#4404) 2023-06-29 15:35:43 -04:00
execution_payload_header.rs Devnet6 (#4404) 2023-06-29 15:35:43 -04:00
execution_payload.rs Devnet6 (#4404) 2023-06-29 15:35:43 -04:00
fork_context.rs Rename eip4844 to deneb (#4129) 2023-03-26 11:49:16 -04:00
fork_data.rs Split common crates out into their own repos (#3890) 2023-04-28 01:15:40 +00:00
fork_name.rs Merge branch 'unstable' into deneb-free-blobs 2023-05-30 22:44:05 +10:00
fork_versioned_response.rs Remove the unused ExecutionOptimisticForkVersionedResponse type (#4160) 2023-04-12 01:48:21 +00:00
fork.rs Split common crates out into their own repos (#3890) 2023-04-28 01:15:40 +00:00
graffiti.rs Split common crates out into their own repos (#3890) 2023-04-28 01:15:40 +00:00
historical_batch.rs Fix Arbitrary implementations (#3867) 2023-01-12 15:17:03 +11:00
historical_summary.rs Merge remote-tracking branch 'origin/unstable' into capella 2023-01-12 16:22:00 +11:00
indexed_attestation.rs Split common crates out into their own repos (#3890) 2023-04-28 01:15:40 +00:00
lib.rs Devnet6 (#4404) 2023-06-29 15:35:43 -04:00
light_client_bootstrap.rs Fix Arbitrary implementations (#3867) 2023-01-12 15:17:03 +11:00
light_client_finality_update.rs Fix Arbitrary implementations (#3867) 2023-01-12 15:17:03 +11:00
light_client_optimistic_update.rs Fix Arbitrary implementations (#3867) 2023-01-12 15:17:03 +11:00
light_client_update.rs Fix Arbitrary implementations (#3867) 2023-01-12 15:17:03 +11:00
participation_flags.rs Split common crates out into their own repos (#3890) 2023-04-28 01:15:40 +00:00
participation_list.rs Rust 1.54.0 lints (#2483) 2021-07-30 01:11:47 +00:00
payload.rs Rename eip4844 to deneb (#4129) 2023-03-26 11:49:16 -04:00
pending_attestation.rs Split common crates out into their own repos (#3890) 2023-04-28 01:15:40 +00:00
preset.rs Split common crates out into their own repos (#3890) 2023-04-28 01:15:40 +00:00
proposer_preparation_data.rs Split common crates out into their own repos (#3890) 2023-04-28 01:15:40 +00:00
proposer_slashing.rs Fix Arbitrary implementations (#3867) 2023-01-12 15:17:03 +11:00
relative_epoch.rs Fix Arbitrary implementations (#3867) 2023-01-12 15:17:03 +11:00
selection_proof.rs Split common crates out into their own repos (#3890) 2023-04-28 01:15:40 +00:00
shuffling_id.rs Optimize validator duties (#2243) 2021-03-17 05:09:57 +00:00
signed_aggregate_and_proof.rs Fix Arbitrary implementations (#3867) 2023-01-12 15:17:03 +11:00
signed_beacon_block_header.rs Fix Arbitrary implementations (#3867) 2023-01-12 15:17:03 +11:00
signed_beacon_block.rs Single blob lookups (#4152) 2023-06-15 12:59:10 -04:00
signed_blob.rs Rework block processing (#4092) 2023-03-24 17:30:41 -04:00
signed_bls_to_execution_change.rs Broadcast address changes at Capella (#3919) 2023-02-07 17:13:49 +11:00
signed_contribution_and_proof.rs Fix Arbitrary implementations (#3867) 2023-01-12 15:17:03 +11:00
signed_voluntary_exit.rs Fix Arbitrary implementations (#3867) 2023-01-12 15:17:03 +11:00
signing_data.rs Fix Arbitrary implementations (#3867) 2023-01-12 15:17:03 +11:00
slot_data.rs [Altair] Sync committee pools (#2321) 2021-07-15 00:52:02 +00:00
slot_epoch_macros.rs Use SmallVec for TreeHash packed encoding (#3581) 2022-09-16 08:54:06 +00:00
slot_epoch.rs Merge branch 'unstable' into deneb-free-blobs 2023-05-30 22:44:05 +10:00
sqlite.rs Directory Restructure (#1163) 2020-05-18 21:24:23 +10:00
subnet_id.rs Shift subnet backbone structure (attnets revamp) (#4304) 2023-05-30 06:15:56 +00:00
sync_aggregate.rs Fix Arbitrary implementations (#3867) 2023-01-12 15:17:03 +11:00
sync_aggregator_selection_data.rs Split common crates out into their own repos (#3890) 2023-04-28 01:15:40 +00:00
sync_committee_contribution.rs Split common crates out into their own repos (#3890) 2023-04-28 01:15:40 +00:00
sync_committee_message.rs Split common crates out into their own repos (#3890) 2023-04-28 01:15:40 +00:00
sync_committee_subscription.rs Split common crates out into their own repos (#3890) 2023-04-28 01:15:40 +00:00
sync_committee.rs Fix Arbitrary implementations (#3867) 2023-01-12 15:17:03 +11:00
sync_duty.rs Split common crates out into their own repos (#3890) 2023-04-28 01:15:40 +00:00
sync_selection_proof.rs Split common crates out into their own repos (#3890) 2023-04-28 01:15:40 +00:00
sync_subnet_id.rs Split common crates out into their own repos (#3890) 2023-04-28 01:15:40 +00:00
tree_hash_impls.rs Fixes to make EF Capella tests pass (#3719) 2022-11-14 13:14:31 -06:00
validator_registration_data.rs Split common crates out into their own repos (#3890) 2023-04-28 01:15:40 +00:00
validator_subscription.rs Implement standard eth2.0 API (#1569) 2020-10-01 11:12:36 +10:00
validator.rs Split common crates out into their own repos (#3890) 2023-04-28 01:15:40 +00:00
voluntary_exit.rs Split common crates out into their own repos (#3890) 2023-04-28 01:15:40 +00:00
withdrawal.rs Split common crates out into their own repos (#3890) 2023-04-28 01:15:40 +00:00