realbigsean
8a7662b1d2
Merge branch 'beacon-api-electra' of https://github.com/sigp/lighthouse into ef-tests-electra
2024-06-13 14:48:33 -04:00
realbigsean
77c630bc2e
Merge branch 'unstable' of https://github.com/sigp/lighthouse into electra_attestation_changes
2024-06-13 14:45:49 -04:00
Jimmy Chen
5fc01454dc
Replace local testnet script with Kurtosis ( #5865 )
...
* Kurtosis local testnet.
* Remove unused `lcli` subcommands
* Migrate doppelganger_protection test to kurtosis and further cleanup.
* Fix lint
* Add missing download image step and remove unused `lcli` dependencies.
* doppelganger success case working
* Run tests on hosted runner and improve error handling.
* Start the dp vc only after epoch 1
* Add more logging to test results.
* Fix exit code and speed up docker build.
* Fix incorrect exit codes and split doppelganger tests on CI.
* Missing the escape for double quotes 😫
* Remove unnecessary vc params in kurtosis config.
2024-06-04 03:03:26 +00: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
Eitan Seri-Levi
df983a83e1
upgrade clap to v4.5 ( #5273 )
...
* upgrade clap to v4.5
* cli fixes
* Merge branch 'unstable' of https://github.com/sigp/lighthouse into upgrade-clap-cli
* value parser for mnemonic
* Merge branch 'unstable' of https://github.com/sigp/lighthouse into upgrade-clap-cli
* merge unstable
* default --format val
* fix eth sim
* fix eth sim
* merge conflicts
* resolve beta compiler issue
* add num args, version
* add custom flag parser, make rate limiter flags clap friendly
* remove unneeded check
* fmt
* update
* alphabetic order
* resolve merge conflict
* fix test
* resolve conflicts
* fix test
* revert removed if statement
* fmt got me again
* fix broken flag
* make cli
* make cli
* update
* remove -e files
* update
* cli help updates
* Merge branch 'unstable' of https://github.com/sigp/lighthouse into upgrade-clap-cli
* cli help updates
* md files
* merge conflict
* merge conflicts
* md
* help text, text width, and a few flag fixes
* fmt
* merge
* revert
* revert
* resolve merge conflicts
* merge conflicts
* revert simulator changes
* require at least one arg
* fix eth sim cli
* resolve merge conflicts
* book changes
* md changes
* cli check
* cli check
* retry cli check
* retry cli check
* Merge branch 'unstable' of https://github.com/sigp/lighthouse into upgrade-clap-cli
* cli
* Merge remote-tracking branch 'origin/unstable' into upgrade-clap-cli
* Update CLI docs for Goerli removal
* Fix cargo lock
2024-05-28 05:46:39 +00:00
Michael Sproul
7f8b600f2a
Remove Goerli support ( #5770 )
...
* Delete Goerli
* Generate validator manager test vectors
* Fix newlines in CLI docs
* Fix deposit-cli tests
* Run web3signer tests for Holesky from Bellatrix
* Fix mainnet bellatrix web3signer test
* Merge remote-tracking branch 'origin/unstable' into rm-goerli
* Fix snafu
2024-05-27 07:59:10 +00: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
Eitan Seri-Levi
3b7132bc0d
Attestation superstruct changes for EIP 7549 ( #5644 )
...
* update
* experiment
* superstruct changes
* revert
* superstruct changes
* fix tests
* indexed attestation
* indexed attestation superstruct
* updated TODOs
2024-04-30 11:49:08 -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
realbigsean
dd340eebdc
Fix execution integration tests ( #5647 )
...
* update waiting status
* revert to old nethermind version
2024-04-25 17:11:01 +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
Mac L
67f8405921
Update Simulator tests ( #5520 )
...
* Rewrite Simulator
* Add fallback simulator
* Try Sean's test fix
* More fixes
* Cleanup
* Merge branch 'unstable' into update-simulator
* Update cli.rs
* Add sync sim to basic sim
* Formatting
* Add fixes and new block production check
* Merge branch 'unstable' of https://github.com/sigp/lighthouse into update-simulator
* fix compile
2024-04-22 15:08:36 +00:00
AMIT SINGH
62e4abfbff
Fix execution layer redundancy ( #5588 )
...
* remove execution layer url redundancy
* fix typo
* fix tests
* fix formatting
2024-04-18 07:14:56 +00:00
Eitan Seri-Levi
6bac5ce12b
Deprecate http-spec-fork and http-allow-sync-stalled ( #5500 )
...
* deprecate flags
* fmt
* remove backslash
* remove hidden flags from the book
* Merge branch 'unstable' of https://github.com/sigp/lighthouse into deprecate-http-spec-fork-and-http-allow-sync-stalled
* add warn, re-add tests
* Apply suggestions from code review
* Merge remote-tracking branch 'origin/unstable' into deprecate-http-spec-fork-and-http-allow-sync-stalled
* Fix imports
2024-04-12 04:21:00 +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