Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use blocks v3 endpoint in the VC #4813

Merged
merged 78 commits into from
Jan 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
2cf2dec
block v3 endpoint init
eserilev Aug 14, 2023
cd36be5
block v3 flow
eserilev Aug 14, 2023
6515ce4
block v3 flow
eserilev Aug 14, 2023
a55e91d
continue refactor
eserilev Aug 15, 2023
5d984f0
the full flow...
eserilev Aug 16, 2023
48661b4
add api logic
eserilev Aug 16, 2023
ae690fb
add api logic
eserilev Aug 16, 2023
1802e45
add new endpoint version
eserilev Aug 16, 2023
281d88d
Merge branch 'unstable' of https://github.com/sigp/lighthouse into bl…
eserilev Aug 16, 2023
bac744e
added v3 endpoint
eserilev Aug 16, 2023
54860ac
some debugging
eserilev Aug 21, 2023
50b0d13
merge conflicts
eserilev Aug 31, 2023
17f00f3
merge v2 flow with v3
eserilev Aug 31, 2023
133c289
Merge branch 'unstable' of https://github.com/sigp/lighthouse into bl…
eserilev Sep 4, 2023
272cb76
debugging
eserilev Sep 4, 2023
682eb61
tests passing
eserilev Sep 4, 2023
03f442f
tests passing
eserilev Sep 4, 2023
877973e
revert cargo lock
eserilev Sep 4, 2023
5be3113
initial v3 test
eserilev Sep 4, 2023
ae2b1d3
blinded payload test case passing
eserilev Sep 5, 2023
0edfcbd
fix clippy issues
eserilev Sep 5, 2023
2599fec
cleanup
eserilev Sep 5, 2023
0f0c41e
cleanup
eserilev Sep 5, 2023
f285d16
remove dead code
eserilev Sep 5, 2023
8021687
fixed logs
eserilev Sep 6, 2023
a59a966
add block value
eserilev Sep 6, 2023
d5cb547
block value fix
eserilev Sep 6, 2023
36f863a
linting
eserilev Sep 6, 2023
6441c52
initial merge
eserilev Sep 25, 2023
c68e7af
merge unstable
eserilev Sep 27, 2023
df25083
refactor
eserilev Sep 27, 2023
91d37e9
add consensus block value
eserilev Sep 28, 2023
6878abe
lint
eserilev Sep 28, 2023
33254e7
Merge branch 'unstable' of https://github.com/sigp/lighthouse into bl…
eserilev Oct 1, 2023
8a674dd
update header name to consensus block value
eserilev Oct 1, 2023
4b1f396
prevent setting the participation flag
eserilev Oct 5, 2023
518c6a0
clone get_epoch_participation result
eserilev Oct 5, 2023
0a70967
fmt
eserilev Oct 5, 2023
1d7cbf0
clone epoch participation outside of the loop
eserilev Oct 6, 2023
1b20398
Merge branch 'unstable' of https://github.com/sigp/lighthouse into bl…
eserilev Oct 7, 2023
d2c7dba
add block v3 to vc
eserilev Oct 7, 2023
dc746c4
Merge branch 'unstable' of https://github.com/sigp/lighthouse into bl…
eserilev Oct 7, 2023
33f3411
add v3 logic into vc
eserilev Oct 7, 2023
a8ded56
add produce-block-v3
eserilev Oct 9, 2023
1667b32
refactor based on feedback
eserilev Oct 14, 2023
4d3621e
update
eserilev Oct 14, 2023
9562d8c
Merge branch 'block-v3-endpoint' of https://github.com/eserilev/light…
eserilev Oct 14, 2023
7dc7ece
resolve merge conflicts
eserilev Oct 21, 2023
59e1a18
remove comments
eserilev Oct 21, 2023
34a08a1
refactor
eserilev Oct 21, 2023
219ad17
header bugfix
eserilev Oct 26, 2023
cb5f56e
fmt
eserilev Oct 26, 2023
229893a
Merge branch 'block-v3-endpoint' of https://github.com/eserilev/light…
eserilev Oct 26, 2023
d2e7790
resolve merge conflicts
eserilev Oct 29, 2023
4715e26
Merge branch 'unstable' of https://github.com/sigp/lighthouse into bl…
eserilev Oct 29, 2023
be8a2be
merge conflicts
eserilev Nov 3, 2023
e2d4fea
fix merge
eserilev Nov 3, 2023
d346356
fix merge
eserilev Nov 3, 2023
fb5e60b
refactor
eserilev Nov 3, 2023
1a50c7f
refactor
eserilev Nov 3, 2023
412d7ca
cleanup
eserilev Nov 3, 2023
282f92b
lint
eserilev Nov 3, 2023
d9a50ad
changes based on feedback
eserilev Nov 22, 2023
8f3ab53
Merge branch 'unstable' of https://github.com/sigp/lighthouse into bl…
eserilev Nov 22, 2023
ad978f6
revert
eserilev Nov 22, 2023
13942bf
remove block v3 fallback to v2
eserilev Nov 24, 2023
6dc3273
todos and flag comments
eserilev Dec 3, 2023
d108edc
publish_block_v3 should return irrecoveerable errors
eserilev Dec 3, 2023
f0f2442
comments
eserilev Dec 3, 2023
bc1a594
comments
eserilev Dec 3, 2023
8d5d5a1
fixed issues from merge
eserilev Dec 4, 2023
2e912f8
merge conflicts
eserilev Jan 2, 2024
3f86e3d
merge conflicts
eserilev Jan 2, 2024
56c565b
Merge remote-tracking branch 'origin/unstable' into block-v3-vc
michaelsproul Jan 8, 2024
a9304c0
Don't activate at fork; support builder_proposals
michaelsproul Jan 8, 2024
b93f16d
Update CLI flags & book
michaelsproul Jan 8, 2024
32cad11
Remove duplicate `current_slot` parameter in `publish_block` function…
jimmygchen Jan 8, 2024
f579a04
Revert changes on making block errors irrecoverable.
jimmygchen Jan 8, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions book/src/help_vc.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ FLAGS:
machine. Note that logs can often contain sensitive information about your validator and so this flag should
be used with caution. For Windows users, the log file permissions will be inherited from the parent folder.
--metrics Enable the Prometheus metrics HTTP server. Disabled by default.
--produce-block-v3
Enable block production via the block v3 endpoint for this validator client. This should only be enabled
when paired with a beacon node that has this endpoint implemented. This flag will be enabled by default in
future.
--unencrypted-http-transport
This is a safety flag to ensure that the user is aware that the http transport is unencrypted and using a
custom HTTP address is unsafe.
Expand Down
15 changes: 15 additions & 0 deletions lighthouse/tests/validator_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,21 @@ fn no_doppelganger_protection_flag() {
.run()
.with_config(|config| assert!(!config.enable_doppelganger_protection));
}
#[test]
fn produce_block_v3_flag() {
CommandLineTest::new()
.flag("produce-block-v3", None)
.run()
.with_config(|config| assert!(config.produce_block_v3));
}

#[test]
fn no_produce_block_v3_flag() {
CommandLineTest::new()
.run()
.with_config(|config| assert!(!config.produce_block_v3));
}

#[test]
fn no_gas_limit_flag() {
CommandLineTest::new()
Expand Down
Loading