realbigsean
b25471cf3f
Merge branch 'beacon-api-electra' of https://github.com/sigp/lighthouse into ef-tests-electra
2024-06-20 10:47:22 -04:00
dapplion
0e2add2daa
Fork aware ssz static attestation tests
2024-06-20 09:58:53 +02:00
Eitan Seri-Levi
7af3f2eb35
add electra fork enabled fn to ForkName impl ( #36 )
...
* add electra fork enabled fn to ForkName impl
* remove inadvertent file
2024-06-19 11:31:50 +02:00
dapplion
960f8c5c48
Use ForkName Ord in fork-choice tests
2024-06-19 11:31:50 +02:00
dapplion
795eff9bf4
Remove outdated TODO
2024-06-19 11:31:50 +02:00
realbigsean
bd867622f7
Merge branch 'p2p-electra' of https://github.com/sigp/lighthouse into ef-tests-electra
2024-05-31 09:09:10 -04:00
realbigsean
49de63f792
Merge branch 'unstable' of https://github.com/sigp/lighthouse into electra_attestation_changes
2024-05-31 08:49:04 -04:00
ethDreamer
75432e1135
Electra attestation changes rm decode impl ( #5856 )
...
* Remove Crappy Decode impl for Attestation
* Remove Inefficient Attestation Decode impl
* Implement Schema Upgrade / Downgrade
* Update beacon_node/beacon_chain/src/schema_change/migration_schema_v20.rs
Co-authored-by: Michael Sproul <micsproul@gmail.com >
---------
Co-authored-by: Michael Sproul <micsproul@gmail.com >
2024-05-30 11:34:14 -04:00
Akihito Nakano
6f05863007
Remove unused dependencies ( #5812 )
...
* Remove unused dependencies from lighthouse_network
* Remove unused dependencies from gossipsub
* Remove unused dependencies from network
* Remove unused dependencies from consensus/types
* Remove unused dependencies from account_manager
* Remove unused dependencies from boot_node
* Remove unused dependencies from database_manager
* Remove unused dependencies from validator_manager
* Remove unused dependencies from testing/ef_tests
* Remove unused dependencies from testing/simulator
* Remove unused dependencies from testing/execution_engine_integration
* Remove unused dependencies from common/system_health
* Remove unused dependencies from common/eth2
* Remove unused dependencies from common/lighthouse_metrics
* Remove unused dependencies from common/eth2_network_config
* Remove unused dependencies from common/logging
* Remove unused dependencies from watch
* Remove unused dependencies from slasher
* Remove unused dependencies from lighthouse
* Remove unused dependencies from lcli
* Remove unused dependencies from beacon_node
* Remove unused dependencies from beacon_node/builder_client
* Remove unused dependencies from beacon_node/beacon_processor
* Remove unused dependencies from beacon_node/execution_layer
* Remove unused dependencies from beacon_node/eth1
* Remove unused dependencies from beacon_node/client
* Remove unused dependencies from beacon_node/store
* Fix missing deps which is used only for testing
2024-05-27 07:59:07 +00:00
realbigsean
759ad0252e
Merge branch 'p2p-electra' of https://github.com/sigp/lighthouse into ef-tests-electra
2024-05-24 11:03:19 -04:00
Mark Mackey
987abe07f9
Merge remote-tracking branch 'upstream/unstable'
2024-05-24 13:24:37 +02:00
Eitan Seri-Levi
6636167503
Log block import source ( #5738 )
...
* the default target peers is 100
* add some comments
* Merge branch 'unstable' of https://github.com/sigp/lighthouse into track-block-import-source
* add block import source
* revert
* update logging text
* fix tests
* lint
* use % instaed of to_string
2024-05-15 09:17:06 +00:00
Mark Mackey
7e57ab3af2
Fix Final Spec Tests!
2024-05-13 11:36:35 +03:00
realbigsean
9c33a6ff9e
add signed consolidation ssz tests
2024-05-12 20:30:55 -04:00
realbigsean
657887f313
comment out consolidation operation ef tests until they are added
2024-05-12 16:05:39 -04:00
realbigsean
affdccd460
enable tests
2024-05-12 12:38:39 -04:00
Mark Mackey
dff44b393f
Merge remote-tracking branch 'upstream/ef-tests-electra' into ef-tests-electra
2024-05-12 16:04:59 +03:00
Mark Mackey
172353d830
im dumb af
2024-05-12 15:57:53 +03:00
realbigsean
4094d9a4fb
ssz merkle validity for only deneb
2024-05-12 08:38:21 -04:00
realbigsean
2460a5960f
get ssz tests compiling
2024-05-12 08:33:18 -04:00
Mark Mackey
b7d983d655
fix should_override_fc tests
2024-05-12 15:18:34 +03:00
realbigsean
c37a4565f1
disable and enable ef test for epoch processing appropriately
2024-05-12 07:37:31 -04:00
realbigsean
e061e1859d
fix ef test compilation
2024-05-12 07:08:00 -04:00
realbigsean
89ef043491
add epoch processing new tests
2024-05-12 06:53:52 -04:00
realbigsean
8d4a921612
add new operation tests
2024-05-12 05:34:16 -04:00
realbigsean
1e011da0e3
read electra payloads from file
2024-05-11 09:48:18 -04:00
realbigsean
5f09453287
Revert "only increment deposit index on state for old deposit flow"
...
This reverts commit 817d4235ae .
2024-05-11 05:00:47 -04:00
realbigsean
817d4235ae
only increment deposit index on state for old deposit flow
2024-05-11 05:00:11 -04:00
realbigsean
eb2260222c
update tests
2024-05-09 18:59:53 -04:00
realbigsean
07229b76ed
Ef test fixes ( #5753 )
...
* attestation related ef test fixes
* delete commented out stuff
2024-05-09 13:40:52 -04:00
ethDreamer
43c3f63e30
cargo fmt ( #5740 )
2024-05-08 11:53:08 -05:00
Eitan Seri-Levi
90179d4a88
EIP7549 get_attestation_indices ( #5657 )
...
* get attesting indices electra impl
* fmt
* get tests to pass
* fmt
* fix some beacon chain tests
* fmt
* fix slasher test
* fmt got me again
* fix more tests
* fix tests
2024-05-08 11:32:44 -05:00
ethDreamer
19a9479234
Superstruct AggregateAndProof ( #5715 )
...
* Upgrade `superstruct` to `0.8.0`
* superstruct `AggregateAndProof`
2024-05-06 10:09:22 -05:00
ethDreamer
7c6526d978
Finish EF Test Fork Agnostic ( #5714 )
2024-05-03 14:09:49 -05:00
ethDreamer
9b98f4e297
Make EF Tests Fork-Agnostic ( #5713 )
2024-05-03 13:57:01 -05:00
Mark Mackey
3a41e137d1
Merge remote-tracking branch 'upstream/unstable' into electra_attestation_changes
2024-05-02 18:23:32 -05:00
ethDreamer
e6c7f145dd
superstruct the AttesterSlashing (#5636 )
...
* `superstruct` Attester Fork Variants
* Push a little further
* Deal with Encode / Decode of AttesterSlashing
* not so sure about this..
* Stop Encode/Decode Bounds from Propagating Out
* Tons of Changes..
* More Conversions to AttestationRef
* Add AsReference trait (#15 )
* Add AsReference trait
* Fix some snafus
* Got it Compiling! :D
* Got Tests Building
* Get beacon chain tests compiling
---------
Co-authored-by: Michael Sproul <micsproul@gmail.com >
2024-05-02 18:00:21 -05:00
Mac L
13f94ef0f3
Rename Merge to Bellatrix ( #5601 )
...
* Rename Merge to Bellatrix
* Remove tree-hash-cache which got readded from the rebase
2024-04-25 20:19:41 +00:00
Michael Sproul
61962898e2
In-memory tree states ( #5533 )
...
* Consensus changes
* EF tests
* lcli
* common and watch
* account manager
* cargo
* fork choice
* promise cache
* beacon chain
* interop genesis
* http api
* lighthouse
* op pool
* beacon chain misc
* parallel state cache
* store
* fix issues in store
* IT COMPILES
* Remove some unnecessary module qualification
* Revert Arced pubkey optimization (#5536 )
* Merge remote-tracking branch 'origin/unstable' into tree-states-memory
* Fix caching, rebasing and some tests
* Remove unused deps
* Merge remote-tracking branch 'origin/unstable' into tree-states-memory
* Small cleanups
* Revert shuffling cache/promise cache changes
* Fix state advance bugs
* Fix shuffling tests
* Remove some resolved FIXMEs
* Remove StateProcessingStrategy
* Optimise withdrawals calculation
* Don't reorg if state cache is missed
* Remove inconsistent state func
* Fix beta compiler
* Rebase early, rebase often
* Fix state caching behaviour
* Update to milhouse release
* Fix on-disk consensus context format
* Merge remote-tracking branch 'origin/unstable' into tree-states-memory
* Squashed commit of the following:
commit 3a16649023
Author: Michael Sproul <michael@sigmaprime.io >
Date: Thu Apr 18 14:26:09 2024 +1000
Fix on-disk consensus context format
* Keep indexed attestations, thanks Sean
* Merge branch 'on-disk-consensus-context' into tree-states-memory
* Merge branch 'unstable' into tree-states-memory
* Address half of Sean's review
* More simplifications from Sean's review
* Cache state after get_advanced_hot_state
2024-04-24 01:22:36 +00:00
realbigsean
d527d124dd
Beta compiler fixes ( #5543 )
...
* remove duplicate imports in gossip tests. get rid of duplicate trait bound locations
* more double import fixes
* cargo fmt
2024-04-10 07:47:05 +00:00
Eitan Seri-Levi
ee69e14db9
Add is_parent_strong proposer re-org check ( #5417 )
...
* initial fork choice additions
* add helper fns
* add is_parent_strong
* Merge branch 'unstable' of https://github.com/sigp/lighthouse into add_is_parent_strong_check
* disabling proposer reorg should set parent_threshold to u64 max
* add new flag, is_parent_strong check in override fcu params
* cherry-pick changes
* Merge branch 'unstable' of https://github.com/sigp/lighthouse into add_is_parent_strong_check
* cleanup
* fmt
* Minor review tweaks
2024-04-04 19:38:06 +00:00
Michael Sproul
feb531f85b
Single-pass epoch processing and optimised block processing ( #5279 )
...
* Single-pass epoch processing (#4483 , #4573 )
Co-authored-by: Michael Sproul <michael@sigmaprime.io >
* Delete unused epoch processing code (#5170 )
* Delete unused epoch processing code
* Compare total deltas
* Remove unnecessary apply_pending
* cargo fmt
* Remove newline
* Use epoch cache in block packing (#5223 )
* Remove progressive balances mode (#5224 )
* inline inactivity_penalty_quotient_for_state
* drop previous_epoch_total_active_balance
* fc lint
* spec compliant process_sync_aggregate (#15 )
* spec compliant process_sync_aggregate
* Update consensus/state_processing/src/per_block_processing/altair/sync_committee.rs
Co-authored-by: Michael Sproul <micsproul@gmail.com >
---------
Co-authored-by: Michael Sproul <micsproul@gmail.com >
* Delete the participation cache (#16 )
* update help
* Fix op_pool tests
* Fix fork choice tests
* Merge remote-tracking branch 'sigp/unstable' into epoch-single-pass
* Simplify exit cache (#5280 )
* Fix clippy on exit cache
* Clean up single-pass a bit (#5282 )
* Address Mark's review of single-pass (#5386 )
* Merge remote-tracking branch 'origin/unstable' into epoch-single-pass
* Address Sean's review comments (#5414 )
* Address most of Sean's review comments
* Simplify total balance cache building
* Clean up unused junk
* Merge remote-tracking branch 'origin/unstable' into epoch-single-pass
* More self-review
* Merge remote-tracking branch 'origin/unstable' into epoch-single-pass
* Merge branch 'unstable' into epoch-single-pass
* Fix imports for beta compiler
* Fix tests, probably
2024-04-04 13:14:36 +00:00
Mac L
969d12dc6f
Use E for EthSpec globally ( #5264 )
...
* Use `E` for `EthSpec` globally
* Fix tests
* Merge branch 'unstable' into e-ethspec
* Merge branch 'unstable' into e-ethspec
# Conflicts:
# beacon_node/execution_layer/src/engine_api.rs
# beacon_node/execution_layer/src/engine_api/http.rs
# beacon_node/execution_layer/src/engine_api/json_structures.rs
# beacon_node/execution_layer/src/test_utils/handle_rpc.rs
# beacon_node/store/src/partial_beacon_state.rs
# consensus/types/src/beacon_block.rs
# consensus/types/src/beacon_block_body.rs
# consensus/types/src/beacon_state.rs
# consensus/types/src/config_and_preset.rs
# consensus/types/src/execution_payload.rs
# consensus/types/src/execution_payload_header.rs
# consensus/types/src/light_client_optimistic_update.rs
# consensus/types/src/payload.rs
# lcli/src/parse_ssz.rs
2024-04-02 15:12:25 +00:00
Mac L
f8fdb71f50
Add Electra fork boilerplate ( #5122 )
...
* Add Electra fork boilerplate
* Remove electra from spec tests
* Fix tests
* Remove sneaky log file
* Fix more tests
* Fix even more tests and add suggestions
* Remove unrelated lcli addition
* Update more tests
* Merge branch 'unstable' into electra
* Add comment for test-suite lcli override
* Merge branch 'unstable' into electra
* Cleanup
* Merge branch 'unstable' into electra
* Apply suggestions
* Merge branch 'unstable' into electra
* Merge sigp/unstable into electra
* Merge branch 'unstable' into electra
2024-04-02 12:35:02 +00:00
Eitan Seri-Levi
e4d4e439cb
Add Capella & Deneb light client support ( #4946 )
...
* rebase and add comment
* conditional test
* test
* optimistic chould be working now
* finality should be working now
* try again
* try again
* clippy fix
* add lc bootstrap beacon api
* add lc optimistic/finality update to events
* fmt
* That error isn't occuring on my computer but I think this should fix it
* Merge branch 'unstable' into light_client_beacon_api_1
# Conflicts:
# beacon_node/beacon_chain/src/events.rs
# beacon_node/http_api/src/lib.rs
# beacon_node/http_api/src/test_utils.rs
# beacon_node/http_api/tests/main.rs
# beacon_node/lighthouse_network/src/rpc/codec/ssz_snappy.rs
# beacon_node/lighthouse_network/src/rpc/methods.rs
# beacon_node/lighthouse_network/src/service/api_types.rs
# beacon_node/network/src/beacon_processor/worker/rpc_methods.rs
# beacon_node/tests/test.rs
# common/eth2/src/types.rs
# lighthouse/src/main.rs
* Add missing test file
* Update light client types to comply with Altair light client spec.
* Fix test compilation
* Merge branch 'unstable' into light_client_beacon_api_1
* Support deserializing light client structures for the Bellatrix fork
* Move `get_light_client_bootstrap` logic to `BeaconChain`. `LightClientBootstrap` API to return `ForkVersionedResponse`.
* Misc fixes.
- log cleanup
- move http_api config mutation to `config::get_config` for consistency
- fix light client API responses
* Add light client bootstrap API test and fix existing ones.
* Merge branch 'unstable' into light_client_beacon_api_1
* Fix test for `light-client-server` http api config.
* Appease clippy
* Add Altair light client SSZ tests
* Merge branch 'unstable' of https://github.com/sigp/lighthouse into light_client_beacon_api_1
* updates to light client header
* light client header from signed beacon block
* using options
* implement helper functions
* placeholder conversion from vec hash256 to exec branch
* add deneb
* using fixed vector
* remove unwraps
* by epoch
* compute merkle proof
* merkle proof
* update comments
* resolve merge conflicts
* linting
* Merge branch 'unstable' into light-client-ssz-tests
# Conflicts:
# beacon_node/beacon_chain/src/beacon_chain.rs
# consensus/types/src/light_client_bootstrap.rs
# consensus/types/src/light_client_header.rs
* superstruct attempt
* superstruct changes
* lint
* altair
* update
* update
* changes to light_client_optimistic_ and finality
* merge unstable
* refactor
* resolved merge conflicts
* Merge branch 'unstable' of https://github.com/sigp/lighthouse into capella_deneb_light_client_types
* block_to_light_client_header fork aware
* fmt
* comment fix
* comment fix
* include merge fork, update deserialize_by_fork, refactor
* fmt
* pass by ref to prevent clone
* rename merkle proof fn
* add FIXME
* LightClientHeader TestRandom
* fix comments
* fork version deserialize
* merge unstable
* move fn arguments, fork name calc
* use task executor
* remove unneeded fns
* remove dead code
* add manual ssz decoding/encoding and add ssz_tests_by_fork macro
* merge deneb types with tests
* merge ssz tests, revert code deletion, cleanup
* move chainspec
* update ssz tests
* fmt
* light client ssz tests
* change to superstruct
* changes from feedback
* linting
* Merge branch 'unstable' of https://github.com/sigp/lighthouse into capella_deneb_light_client_types
* test fix
* cleanup
* Remove unused `derive`.
* Merge branch 'unstable' of https://github.com/sigp/lighthouse into capella_deneb_light_client_types
* beta compiler fix
* merge
2024-03-25 11:01:56 +00:00
Eitan Seri-Levi
01ec42e75a
Fix Rust beta compiler errors 1.78.0-beta.1 ( #5439 )
...
* remove redundant imports
* fix test
* contains key
* fmt
* Merge branch 'unstable' into fix-beta-compiler
2024-03-20 05:17:02 +00:00
chonghe
258eeb5f09
Delete milagro library ( #5298 )
...
* fix lib.rs and tests.rs
* update decode.rs
* auto-delete in Cargo.lock
* delete milagro in cargo.toml
* remove milagro from makefile
* remove milagro from the name
* delete milagro in comment
* delete milagro in cargo.toml
* delete in /testing/ef_tests/cargo.toml
* delete milagro in the logical OR
* delete milagro in /lighthouse/src/main.rs
* delete milagro in /crypto/bls/tests/tests.rs
* delete milagro in comment
* delete milagro in /testing//ef_test/src//cases/bls_eth_aggregate_pubkeys.rs
* delete milagro
* delete more in lib.rs
* delete more in lib.rs
* delete more in lib.rs
* delete milagro in /crypto/bls/src/lib.rs
* delete milagro in crypto/bls/src/mod.rs
* delete milagro.rs
2024-03-06 23:17:42 +00:00
realbigsean
4172d9f75c
Update to consensus spec v1.4.0-beta.6 ( #5094 )
...
* get latest ef tests passing
* fix tests
* Fix invalid payload recovery tests
* Merge branch 'unstable' into update-to-spec-v1.4.0-beta.6
* Revert "fix tests"
This reverts commit 0c875b02e0 .
* Fix fork choice def. tests
* Update beacon_node/beacon_chain/tests/payload_invalidation.rs
2024-02-08 18:08:21 +00:00
Pawan Dhananjay
31044402ee
Sidecar inclusion proof ( #4900 )
...
* Refactor BlobSidecar to new type
* Fix some compile errors
* Gossip verification compiles
* Fix http api types take 1
* Fix another round of compile errors
* Beacon node crate compiles
* EF tests compile
* Remove all blob signing from VC
* fmt
* Tests compile
* Fix some tests
* Fix more http tests
* get compiling
* Fix gossip conditions and tests
* Add basic proof generation and verification
* remove unnecessary ssz decode
* add back build_sidecar
* remove default at fork for blobs
* fix beacon chain tests
* get relase tests compiling
* fix lints
* fix existing spec tests
* add new ef tests
* fix gossip duplicate rule
* lints
* add back sidecar signature check in gossip
* add finalized descendant check to blob sidecar gossip
* fix error conversion
* fix release tests
* sidecar inclusion self review cleanup
* Add proof verification and computation metrics
* Remove accidentally committed file
* Unify some block and blob errors; add slashing conditions for sidecars
* Address review comment
* Clean up re-org tests (#4957 )
* Address more review comments
* Add Comments & Eliminate Unnecessary Clones
* update names
* Update beacon_node/beacon_chain/src/metrics.rs
Co-authored-by: Jimmy Chen <jchen.tc@gmail.com >
* Update beacon_node/network/src/network_beacon_processor/tests.rs
Co-authored-by: Jimmy Chen <jchen.tc@gmail.com >
* pr feedback
* fix test compile
* Sidecar Inclusion proof small refactor and updates (#4967 )
* Update some comments, variables and small cosmetic fixes.
* Couple blobs and proofs into a tuple in `PayloadAndBlobs` for simplicity and safety.
* Update function comment.
* Update testing/ef_tests/src/cases/merkle_proof_validity.rs
Co-authored-by: Jimmy Chen <jchen.tc@gmail.com >
* Rename the block and blob wrapper types used in the beacon API interfaces.
* make sure gossip invalid blobs are passed to the slasher (#4970 )
* Add blob headers to slasher before adding to DA checker
* Replace Vec with HashSet in BlockQueue
* fmt
* Rename gindex -> index
* Simplify gossip condition
---------
Co-authored-by: realbigsean <seananderson33@gmail.com >
Co-authored-by: realbigsean <sean@sigmaprime.io >
Co-authored-by: Michael Sproul <michael@sigmaprime.io >
Co-authored-by: Mark Mackey <mark@sigmaprime.io >
Co-authored-by: Jimmy Chen <jchen.tc@gmail.com >
2023-12-05 11:19:59 -05:00
Eitan Seri-Levi
4ce01ddd11
Activate clippy::manual_let_else lint ( #4889 )
...
## Issue Addressed
#4888
## Proposed Changes
Enabled `clippy::manual_let_else` lint and resolved the warning messages.
2023-10-31 10:31:02 +00:00