Mac L
7f574b3ccc
Merge branch 'unstable' into vc-fallback
2024-06-05 16:20:15 +10: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
Jimmy Chen
52e31121df
Reduce frequency of polling unknown validators to avoid overwhelming the Beacon Node ( #5628 )
...
* Reduce frequency of polling unknown validators.
* Move slot calculation into for loop.
* Simplify logic.
Co-authored-by: Michael Sproul <micsproul@gmail.com >
* Fix formatting
2024-05-22 00:52:40 +00:00
Lukas Rusak
da9d38698d
web3Signer: set header "Accept: application/json" as we expect json in the response ( #5692 )
...
* web3Signer: set header "Accept: application/json" as we expect json in the response
The web3signer handler in lighthouse requires a json response.
Setting the header "Accept: application/json" indicates to the web3signer that json is an acceptable response.
Signed-off-by: Lukas Rusak <lorusak@gmail.com >
* fixup! web3Signer: set header "Accept: application/json" as we expect json in the response
2024-05-06 03:02:47 +00:00
Michael Sproul
d3d429ff5c
Improve logging and metrics for block publication ( #5699 )
...
* Improve logging and metrics for block publication
* Add better buckets
* Bump SQL connection timeout for tests.
2024-05-03 08:24:49 +00:00
Michael Sproul
ee974db0ba
Add metric for current epoch total balance ( #5688 )
...
* Add metric for current epoch total balance
2024-05-02 04:50:30 +00:00
Roman Krasiuk
c8ffafb3f8
fix(validator_client): raise soft fd limit ( #4796 )
...
* fix(validator_client): raise soft fd limit
* Merge branch 'unstable' of https://github.com/sigp/lighthouse into rkrasiuk/raise-vc-fdlimit
* cargo lock
* Merge branch 'unstable' of https://github.com/sigp/lighthouse into rkrasiuk/raise-vc-fdlimit
2024-04-29 22:55:23 +00:00
realbigsean
c33edc82eb
Beta compiler fix ( #5659 )
...
* fix beta compiler compilation
* remove unused import
* Revert "remove unused import"
This reverts commit 0bef36b05b .
* Revert "fix beta compiler compilation"
This reverts commit 23152cf4cc .
* rename ununsed fields
* allow dead code on some error variants
* remove unused blob download queue
* add back debug to backfill error
* more allow dead code on errors
2024-04-29 20:45:54 +00:00
Mac L
7e3866aa5b
Remove old commented code
2024-04-26 17:44:20 +10:00
Mac L
9897626f13
Merge branch 'unstable' into vc-fallback
2024-04-26 12:46:25 +10: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
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
chonghe
5c30afbc7c
Revise secrets-dir flag in the VC ( #5480 )
...
* Update docs on secrets-dir
* Hidden secrets-dir flag
* Remove conflicts_with
* Restore description
* make cli
* Update book/src/validator-management.md
2024-04-18 07:14:59 +00:00
Michael Sproul
49617f3e82
Set web3signer keep-alive to 20s by default ( #5587 )
...
* Set web3signer keep-alive to 20s by default
* add tests
2024-04-17 15:09:09 +00:00
Mac L
1d9dc26ca2
Merge branch 'unstable' into vc-fallback
2024-04-15 21:31:51 +10: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
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
Krishang Shah
b9614571a3
Fix 5288: Doesn't POST if attestations is empty. ( #5318 )
...
* changed to is_empty() and removed WARN
* added log argument
* fix: issue 5288
2024-03-07 08:49:18 +00:00
Michael Sproul
cff6258bb1
Fix duties override bug in VC ( #5305 )
...
* Fix duties override bug in VC
* Use initial request efficiently
* Prevent expired subscriptions by construction
* Clean up selection proof logic
* Add test
2024-03-04 23:15:05 +00:00
Michael Sproul
88b37a10df
Optimise no-op PATCH ops in VC HTTP API ( #5064 )
...
* Optimise no-op changes in VC API
* Handle another no-op case
* Merge remote-tracking branch 'origin/unstable' into opt-vc-patch-api
2024-02-29 01:51:07 +00:00
João Oliveira
65c4ff0775
remove exit-future ( #5183 )
...
* remove exit-future usage,
as it is non maintained, and replace with async-channel which is already in the repo.
* Merge branch 'unstable' of https://github.com/sigp/lighthouse into remove-exit-future
* Merge branch 'unstable' of https://github.com/sigp/lighthouse into remove-exit-future
2024-02-27 22:12:44 +00:00
Age Manning
49536ff103
Add distributed flag to VC to enable support for DVT ( #4867 )
...
* Initial flag building
* Update validator_client/src/cli.rs
Co-authored-by: Abhishek Kumar <43061995+xenowits@users.noreply.github.com >
* Merge latest unstable
* Per slot aggregates
* One slot lookahead for sync committee aggregates
* Update validator_client/src/duties_service.rs
Co-authored-by: Abhishek Kumar <43061995+xenowits@users.noreply.github.com >
* Rename selection_look_ahead
* Merge branch 'unstable' into vc-distributed
* Merge remote-tracking branch 'origin/unstable' into vc-distributed
* Update CLI text
2024-02-15 12:23:58 +00:00
Mac L
ee75a72b6b
Combine sync distance tolerance flags into one
2024-02-06 19:13:19 +11:00
Michael Sproul
7bec3f9b59
Optional slashing protection for remote keys ( #4981 )
...
* Optional slashing protection for remote keys
* Merge remote-tracking branch 'origin/unstable' into disable-slashing-protection-web3signer
* Start writing tests
* Merge remote-tracking branch 'origin/unstable' into disable-slashing-protection-web3signer
* Merge remote-tracking branch 'michael/disable-slashing-protection-web3signer' into disable-slashing-protection-web3signer
* Make half-written tests compile
* Make tests work
* Update help text
* Update book CLI text
* Merge remote-tracking branch 'origin/unstable' into disable-slashing-protection-web3signer
* More logging & CLI tests
* CLI tweaks
2024-02-06 01:30:31 +00:00
Mac L
e368397bf5
Use the more descriptive user_index instead of id
2024-02-05 16:32:30 +11:00
Michael Sproul
8fb6989801
Config for web3signer keep-alive ( #5007 )
...
* Allow tweaking connection pool settings
* Build docker image
* Fix imports
* Merge tag 'v4.6.0' into web3signer-keep-alive
v4.6.0
* Delete temp docker build stuff
* Fix tests
* Merge remote-tracking branch 'origin/unstable' into web3signer-keep-alive
* Update CLI text
2024-02-01 08:35:14 +00:00
Mac L
a5e934883a
Simplify compute_distance_tier and reduce notifier awaits
2024-02-01 17:35:22 +11:00
Mac L
1802080cab
Remove unnecessary pubs
2024-02-01 17:10:25 +11:00
Mac L
5672afeab0
Merge branch 'unstable' into vc-fallback
2024-01-31 19:24:52 +11:00
Michael Sproul
d2aef1b35c
Fix bug in --builder-proposals ( #5151 )
...
* Fix bug in `--builder-proposals`
* Add tests
* More sensible test order
* Fix duplicate builder-boost test case
* Cargo fmt and rename
2024-01-31 05:25:55 +00:00
Eitan Seri-Levi
f9e36c94ed
Expose additional builder booster related flags in the vc ( #5086 )
...
* expose builder booster flags in vc, enable options in validator endpoints, update tests
* resolve failing test
* fix issues related to CreateConfig and MoveConfig
* remove unneeded val, change how boost factor flag logic in the vc, add some additional documentation
* fix typos
* fix typos
* assume builder-proosals flag if one of other two vc builder flags are present
* fmt
* typo
* typo
* Fix CLI help text
* Prioritise per validator builder boost configurations over CLI flags.
* Add http test for builder boost factor with process defaults.
* Fix issue with PATCH request
* Add prefer builder proposals
* Add more builder boost factor tests.
---------
Co-authored-by: Mac L <mjladson@pm.me >
Co-authored-by: Jimmy Chen <jchen.tc@gmail.com >
Co-authored-by: Paul Hauner <paul@paulhauner.com >
2024-01-25 09:09:47 +11:00
Michael Sproul
a403138ed0
Reduce size of futures in HTTP API to prevent stack overflows ( #5104 )
...
* Box::pin a few big futures
* Arc the blocks early in publication
* Fix more tests
2024-01-23 15:32:07 +11:00
Mac L
ba322391d4
Fix conflicts
2024-01-16 20:38:46 +11:00
Mac L
e555dc9213
Merge branch 'unstable' into vc-fallback
2024-01-16 20:36:11 +11:00
Eitan Seri-Levi
5c8c8da8b1
Use blocks v3 endpoint in the VC ( #4813 )
...
* block v3 endpoint init
* block v3 flow
* block v3 flow
* continue refactor
* the full flow...
* add api logic
* add api logic
* add new endpoint version
* added v3 endpoint
* some debugging
* merge v2 flow with v3
* debugging
* tests passing
* tests passing
* revert cargo lock
* initial v3 test
* blinded payload test case passing
* fix clippy issues
* cleanup
* cleanup
* remove dead code
* fixed logs
* add block value
* block value fix
* linting
* merge unstable
* refactor
* add consensus block value
* lint
* update header name to consensus block value
* prevent setting the participation flag
* clone get_epoch_participation result
* fmt
* clone epoch participation outside of the loop
* add block v3 to vc
* add v3 logic into vc
* add produce-block-v3
* refactor based on feedback
* update
* remove comments
* refactor
* header bugfix
* fmt
* resolve merge conflicts
* fix merge
* fix merge
* refactor
* refactor
* cleanup
* lint
* changes based on feedback
* revert
* remove block v3 fallback to v2
* publish_block_v3 should return irrecoveerable errors
* comments
* comments
* fixed issues from merge
* merge conflicts
* Don't activate at fork; support builder_proposals
* Update CLI flags & book
* Remove duplicate `current_slot` parameter in `publish_block` function, and remove unnecessary clone.
* Revert changes on making block errors irrecoverable.
---------
Co-authored-by: Michael Sproul <michael@sigmaprime.io >
Co-authored-by: Jimmy Chen <jchen.tc@gmail.com >
2024-01-08 16:12:39 -05:00
Mac L
6dc44b2f23
Merge branch 'unstable' into vc-fallback
2024-01-05 12:25:10 +11:00
Michael Sproul
af11e78ae1
Clean up blockv3 metadata and client ( #5015 )
...
* Improve block production v3 client
* Delete wayward line
* Overhaul JSON endpoint as well
* Rename timeout param
* Update tests
* I broke everything
* Ah this is an insane fix
* Remove unnecessary optionals
* Doc fix
2023-12-22 09:39:17 -05:00
Mac L
88ebe36f7c
Merge branch 'unstable' into vc-fallback
2023-12-13 12:24:11 +11:00
Eitan Seri-Levi
8ba39cbf2c
Implement graffiti management API ( #4951 )
...
* implement get graffiti
* add set graffiti
* add set graffiti
* delete graffiti
* set graffiti
* set graffiti
* fmt
* added tests
* add graffiti file check
* update
* fixed delete req
* remove unused code
* changes based on feedback
* changes based on feedback
* invalid auth test plus lint
* fmt
* remove unneeded async
2023-12-07 12:02:46 +11: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
Manu NALEPA
ec8edfb89a
EIP-3076 tests - complete database ( #4958 )
...
* EIP-3076 interchange tests: Add `should_succeed_complete` boolean.
This new added `should_succeed_complete` boolean means the test should succeed using
complete anti-slashing DB, while the untouched `should_succeed` boolean is
still implicitely reserved for minimal anti-slashing DB.
Note:
This commit only adds the new `should_succeed_complete` boolean, and copy the value from
`should_succeed` without any meaning regarding the value this boolean should
take.
* `TestEIP3076SpecTests`: Modify two tests
Those two tests are modified in a way they both comply with minimal AND
complete anti-slashing DB.
* Disallow false positives and differentiate more minimal vs complete cases
* Fix my own typos
* Update to v5.3.0 tag
---------
Co-authored-by: Michael Sproul <michael@sigmaprime.io >
2023-12-05 10:49:50 +11:00
Mac L
f87ab637a1
Merge branch 'unstable' into vc-fallback
2023-12-01 12:52:54 +11:00
Gua00va
44aaf13ff0
Standard Liveness Endpoint ( #4853 )
...
* Changes to use required Endpoint
* Format
* fixed doppleganger service
* minor fix
* efficiency changes
* fixed tests
* remove commented line
---------
Co-authored-by: Jimmy Chen <jchen.tc@gmail.com >
2023-11-30 17:41:22 +11:00
Michael Sproul
44c1817c2b
Remove block-delay-ms ( #4956 )
2023-11-28 16:00:28 +11:00
Alexander Uvizhev
b4556a3d62
Broadcast various requests as per #4684 ( #4920 )
...
* multiple broadcast flags
* rewrite with single --broadcast option
* satisfy cargo fmt
* shorten sync-committee-messages
* fix a doc comment and a test
* use strum
* Add broadcast test to simulator
* bring --disable-run-on-all flag back with deprecation notice
2023-11-27 15:39:37 +11:00
chonghe
7fd9389a8c
Delete deprecated cli flags ( #4906 )
...
* Delete BN spec flag and VC beacon-node flag
* Remove warn
* slog
* add warn
* delete eth1-endpoint
* delete server from vc cli.rs
* delete server flag in config.rs
* delete delete-lockfiles in vc
* delete allow-unsynced flag in VC
* delete strict-fee-recipient in VC and warn log
* delete merge flag in bn (hidden)
* delete count-unrealized and count-unrealized-full in bn (hidden)
* delete http-disable-legacy-spec in bn (hidden)
* delete eth1-endpoint in lcli
* delete warn message lcli
* delete eth1-endpoints
* delete minify in slashing protection
* delete minify related
* Remove mut
* add back warn! log
* Indentation
* Delete count-unrealized
* Delete eth1-endpoints
* Delete eth1-endpoint test
* delete eth1-endpints test
* delete allow-unsynced test
* Add back lcli eth1-endpoint
---------
Co-authored-by: Michael Sproul <michael@sigmaprime.io >
2023-11-09 15:05:55 +11:00
Mac L
4ddfc7d534
Add id to ui endpoint
2023-11-03 15:43:28 +11:00
Mac L
1d70441157
Add suggestions
2023-11-03 13:22:32 +11:00
Mac L
235c4524f7
Merge branch 'unstable' into vc-fallback
2023-11-02 16:27:14 +11:00