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
realbigsean
3058b96f25
Release v5.1.3 ( #5497 )
...
* Release v5.1.3
2024-03-28 05:22:30 +00:00
João Oliveira
59ef564b1d
Move gossipsub into a separate crate ( #5401 )
...
* move gossipsub into a separate crate
* Merge branch 'unstable' of github.com:sigp/lighthouse into separate-gossipsub
* address review 2
* clippy beta
* update logging to log gossipsub logs
2024-03-26 03:10:59 +00:00
realbigsean
5ce16192c7
Release v5.1.2 ( #5453 )
...
* Release v5.1.2
2024-03-21 18:04:00 +00:00
João Oliveira
f33ce8cc34
fix NAT nat_open metrics report ( #5427 )
...
* fix nat reporting
2024-03-20 06:45:18 +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
Michael Sproul
2a3c709f8c
Release v5.1.1 ( #5396 )
...
* Release v5.1.1
2024-03-12 03:42:15 +00:00
Pawan Dhananjay
10a38a8aae
Release v5.1.0 ( #5372 )
...
* Bump versions
2024-03-10 23:44:29 +00:00
Michael Sproul
bf118a17d4
Fix block v3 header decoding ( #5366 )
...
* Fix block v3 header decoding
2024-03-07 03:31:06 +00:00
João Oliveira
a89ff100af
improve libp2p connected peer metrics ( #5314 )
...
* patch rust-yamux dep
* improve libp2p connected peer metrics
2024-02-28 03:52:55 +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
Paul Hauner
b5bae6e7a2
Release v5.0.0 ( #5254 )
...
* Bump versions
2024-02-20 22:12:52 +00:00
Jimmy Chen
50c423ad88
Revert libp2p metrics ( #4870 ) ( #5265 )
...
* Revert "improve libp2p connected peer metrics (#4870 )"
This reverts commit 0c3fef59b3 .
2024-02-20 04:19:17 +00:00
Eitan Seri-Levi
4d625951b8
Deprecate env_log flag in tracing layer ( #5228 )
...
* deprecate terminal logs file in tracing layer
* sink writer
2024-02-19 05:17:58 +00:00
Paul Hauner
e22c9eed8f
Add Deneb fork epoch for Gnosis ( #5242 )
...
* Add Deneb fork epoch for Gnosis
* Add deneb constants
* Update common/eth2_network_config/built_in_network_configs/gnosis/config.yaml
Co-authored-by: realbigsean <seananderson33@GMAIL.com >
* Adjust `min_epochs_for_block_requests`
* Change `MAX_PER_EPOCH_ACTIVATION_CHURN_LIMIT`
* Fix chain spec `max_per_epoch_activation_churn_limit`
* Fix chain spec values again
2024-02-19 02:22:19 +00:00
Michael Sproul
0e819fa785
Schedule Deneb on mainnet ( #5233 )
...
* Schedule Deneb on mainnet
* Fix trusted setup roundtrip test
* Fix BN CLI tests for insecure genesis sync
2024-02-15 12:23:51 +00:00
Eitan Seri-Levi
e7ef2a3a54
validator liveness endpoint should accept string encoded indices ( #5184 )
...
* deserialize string indices as u64
* client should send quoted indices
2024-02-09 04:59:39 +00:00
João Oliveira
0c3fef59b3
improve libp2p connected peer metrics ( #4870 )
...
* improve libp2p connected peer metrics
* separate discv5 port from libp2p for NAT open
* use metric family for DISCOVERY_BYTES
* Merge branch 'unstable' of https://github.com/sigp/lighthouse into improve-metrics
2024-02-08 02:40:54 +00:00
Jimmy Chen
39e9f7dc6b
Fix Rust beta compiler errors (1.77) ( #5180 )
...
* Lint fixes
* More fixes for beta compiler.
* Format fixes
* Move `#[allow(dead_code)]` to field level.
* Remove old comment.
* Update beacon_node/execution_layer/src/test_utils/mod.rs
Co-authored-by: João Oliveira <hello@jxs.pt >
* remove duplicate line
2024-02-05 17:54:11 +00:00
4rgon4ut
1d4ee5d150
Update gnosis bootnodes ( #4986 )
...
* chore(eth2_network_config): update gnosis bootnodes
* Merge remote-tracking branch 'origin/unstable' into update_gnosis_bootnodes
2024-02-01 08:35:06 +00:00
4rgon4ut
b7ba5a087c
feat(config): add chiado bootnodes ENRs ( #4727 )
...
* feat(config): add chiado bootnodes erns
* Merge remote-tracking branch 'origin/unstable' into feat/add-chiado-bootnodes
2024-02-01 08:35:00 +00:00
João Oliveira
dada5750ee
Properly log panics with slog ( #5075 )
...
* log panics with slog
* update set_hook location
* Merge branch 'unstable' of https://github.com/sigp/lighthouse into slog-panics
2024-01-31 19:20:09 +00:00
Divma
8353ec9785
Update deterministic subnets upgrade to allow prefix computation ( #4959 )
...
* add new spec field to spec
* add spec changes
* fix bug and update expected subnets with validation from pyspec
* fix values and make test prettier (?)
* fix style
---------
Co-authored-by: Lion - dapplion <35266934+dapplion@users.noreply.github.com >
2024-01-31 09:30:26 +00:00
Eitan Seri-Levi
1d87edb03d
Assume Content-Type is json for endpoints that require json ( #4575 )
...
* added default content type filter
* Merge branch 'unstable' of https://github.com/sigp/lighthouse into unstable
* create custom warp json filter that ignores content type header
* cargo fmt and linting
* updated test
* updated test
* merge unstable
* merge conflicts
* workspace=true
* use Bytes instead of Buf
* resolve merge conflict
* resolve merge conflicts
* add extra error message context
* merge conflicts
* lint
2024-01-31 01:11:54 +00:00
Jack McPherson
abeb358f0b
Remove custom SSZ beacon states route ( #5065 )
...
* Remove SSZ state root route
* Remove SSZ states route from client impl
* Patch tests
* Merge branch 'unstable' into 5063-delete-ssz-state-route
* Further remove dead code
2024-01-30 00:33:05 +00:00
Paul Hauner
1be5253610
Bump versions ( #5123 )
2024-01-25 10:02:00 +11: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
Eitan Seri-Levi
612eaf2d41
Prevent rolling file appender panic ( #5117 )
...
* rolling file appender panic removal and max log file count
* max log file
2024-01-24 10:12:48 +11:00
Pawan Dhananjay
b55b58b3c6
Fix indices filter in blobs_sidecar http endpoint ( #5118 )
...
* add get blobs unit test
* Use a multi_key_query for blob_sidecar indices
* Fix test
* Remove env_logger
---------
Co-authored-by: realbigsean <seananderson33@GMAIL.com >
2024-01-24 09:35:24 +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
realbigsean
70b0528f36
set deneb fork on testnets ( #5089 )
...
* set deneb fork on testnets
* re-order fields in holesky
2024-01-22 15:14:26 +11:00
Michael Sproul
185646acb2
Fix PublishBlockRequest SSZ decoding ( #5078 )
...
* Fix PublishBlockRequest SSZ decoding
* Send header for block v1 ssz client
* Delete unused function
2024-01-19 12:56:30 +11:00
Eitan Seri-Levi
f22e5b0f85
Critical dependency logging ( #4988 )
...
* add metrics layer
* add metrics
* simplify getting the target
* make clippy happy
* fix typos
* unify deps under workspace
* make import statement shorter, fix typos
* enable warn by default, mark flag as deprecated
* do not exit on error when initializing logging fails
* revert exit on error
* adjust bootnode logging
* add logging layer
* non blocking file writer
* non blocking file writer
* add tracing visitor
* use target as is by default
* make libp2p events register correctly
* adjust repilcated cli help
* refactor tracing layer
* linting
* filesize
* log gossipsub, dont filter by log level
* turn on debug logs by default, remove deprecation warning
* truncate file, add timestamp, add unit test
* suppress output (#5 )
* use tracing appender
* cleanup
* Add a task to remove old log files and upgrade to warn level
* Add the time feature for tokio
* Udeps and fmt
---------
Co-authored-by: Diva M <divma@protonmail.com >
Co-authored-by: Divma <26765164+divagant-martian@users.noreply.github.com >
Co-authored-by: Age Manning <Age@AgeManning.com >
2024-01-16 19:44:26 +11:00
Divma
a68b701807
add tracing metrics layer for dependency logging ( #4979 )
...
* add metrics layer
* add metrics
* simplify getting the target
* make clippy happy
* fix typos
* unify deps under workspace
* make import statement shorter, fix typos
* enable warn by default, mark flag as deprecated
* do not exit on error when initializing logging fails
* revert exit on error
* adjust bootnode logging
* use target as is by default
* make libp2p events register correctly
* adjust repilcated cli help
* turn on debug logs by default, remove deprecation warning
* suppress output (#5 )
---------
Co-authored-by: Age Manning <Age@AgeManning.com >
2024-01-16 12:22:09 +11:00
vuittont60
0613eb7a21
docs: fix typos ( #5059 )
...
* docs: fix typos
* docs: fix typo
* docs: update by 'make cli'
2024-01-16 12:18:54 +11:00
Enrico Del Fante
31b797ed83
Update teku's bootnodes ( #5052 )
2024-01-16 12:18:06 +11:00
Eitan Seri-Levi
72bcf47dd0
add content-type octet stream helper fn ( #5062 )
2024-01-15 16:23:39 +11:00
Paul Hauner
2e8e160679
v4.6.0-rc.0 ( #5042 )
2024-01-11 10:46:29 +11:00
Michael Sproul
7e948eec9d
Fix block v3 reward encodings ( #5049 )
...
* Fix block v3 reward encodings
* Use crates.io version
2024-01-10 10:44:07 +11:00
realbigsean
db05d37675
update goerli config ( #5036 )
2024-01-08 11:24:12 +11:00
Eitan Seri-Levi
9c1505d082
Block v3 builder boost factor ( #5035 )
...
* builder boost factor
* default boost factor
* revert
* deprecate always_prefer_builder_payload, builder-profit-threshold, ignore_builder_override_suggestion_threshold and builder_comparison_factor flags
* revert
* set deprecated flags to no op, revert should_override_builder
* fix test, calc boosted relay value correctly, dont calculate if none
* Add deprecation warnings and restore CLI docs
2024-01-08 11:10:32 +11:00
Jimmy Chen
0c97762032
Track shared memory in metrics ( #5023 )
...
* Track shared memory so we can exclude them form resident memory.
* Bump psutil version to 3.3.0 to get shared memory metrics.
2024-01-05 14:48:11 -05: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
Jimmy Chen
b0c374c1ca
Update dependencies to get rid of the yanked deps ( #4994 )
...
* Initial attempt to upgrade hashbrown to latest to get rid of the crate warnings.
* Replace `.expect()` usage with use of `const`.
* Update ahash 0.7 as well
* Remove unsafe code.
* Update `lru` to 0.12 and fix release test errors.
* Set non-blocking socket
* Bump testcontainers to 0.15.
* Fix lint
---------
Co-authored-by: Michael Sproul <michael@sigmaprime.io >
2023-12-15 18:31:59 +11:00
Michael Sproul
b882519d2f
Implement POST validators/validator_balances APIs ( #4872 )
...
* Add POST for fetching validators from state
* Implement POST for balances
* Tests
2023-12-08 12:09:36 +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