Skip to content

Commit 35e1606

Browse files
authoredFeb 5, 2024··
Merge of #4981
2 parents 8fa11aa + afd7c74 commit 35e1606

File tree

7 files changed

+456
-156
lines changed

7 files changed

+456
-156
lines changed
 

‎book/src/help_vc.md

+11-6
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,19 @@ FLAGS:
1313
--disable-auto-discover
1414
If present, do not attempt to discover new validators in the validators-dir. Validators will need to be
1515
manually added to the validator_definitions.yml file.
16-
--disable-log-timestamp If present, do not include timestamps in logging output.
16+
--disable-log-timestamp If present, do not include timestamps in logging output.
1717
--disable-malloc-tuning
1818
If present, do not configure the system allocator. Providing this flag will generally increase memory usage,
1919
it should only be provided when debugging specific memory allocation issues.
2020
--disable-run-on-all
2121
DEPRECATED. Use --broadcast. By default, Lighthouse publishes attestation, sync committee subscriptions and
2222
proposer preparation messages to all beacon nodes provided in the `--beacon-nodes flag`. This option changes
2323
that behaviour such that these api calls only go out to the first available and synced beacon node
24+
--disable-slashing-protection-web3signer
25+
Disable Lighthouse's slashing protection for all web3signer keys. This can reduce the I/O burden on the VC
26+
but is only safe if slashing protection is enabled on the remote signer and is implemented correctly. DO NOT
27+
ENABLE THIS FLAG UNLESS YOU ARE CERTAIN THAT SLASHING PROTECTION IS ENABLED ON THE REMOTE SIGNER. YOU WILL
28+
GET SLASHED IF YOU USE THIS FLAG WITHOUT ENABLING WEB3SIGNER'S SLASHING PROTECTION.
2429
--enable-doppelganger-protection
2530
If this flag is set, Lighthouse will delay startup for three epochs and monitor for messages on the network
2631
by any of the validators managed by this client. This will result in three (possibly four) epochs worth of
@@ -32,8 +37,8 @@ FLAGS:
3237
Enable per validator metrics for > 64 validators. Note: This flag is automatically enabled for <= 64
3338
validators. Enabling this metric for higher validator counts will lead to higher volume of prometheus
3439
metrics being collected.
35-
-h, --help Prints help information
36-
--http Enable the RESTful HTTP API server. Disabled by default.
40+
-h, --help Prints help information
41+
--http Enable the RESTful HTTP API server. Disabled by default.
3742
--http-allow-keystore-export
3843
If present, allow access to the DELETE /lighthouse/keystores HTTP API method, which allows exporting
3944
keystores and passwords to HTTP API consumers who have access to the API token. This method is useful for
@@ -47,15 +52,15 @@ FLAGS:
4752
flag unless you're certain that a new slashing protection database is required. Usually, your database will
4853
have been initialized when you imported your validator keys. If you misplace your database and then run with
4954
this flag you risk being slashed.
50-
--log-color Force outputting colors when emitting logs to the terminal.
55+
--log-color Force outputting colors when emitting logs to the terminal.
5156
--logfile-compress
5257
If present, compress old log files. This can help reduce the space needed to store old logs.
5358
5459
--logfile-no-restricted-perms
5560
If present, log files will be generated as world-readable meaning they can be read by any user on the
5661
machine. Note that logs can often contain sensitive information about your validator and so this flag should
5762
be used with caution. For Windows users, the log file permissions will be inherited from the parent folder.
58-
--metrics Enable the Prometheus metrics HTTP server. Disabled by default.
63+
--metrics Enable the Prometheus metrics HTTP server. Disabled by default.
5964
--prefer-builder-proposals
6065
If this flag is set, Lighthouse will always prefer blocks constructed by builders, regardless of payload
6166
value.
@@ -69,7 +74,7 @@ FLAGS:
6974
--use-long-timeouts
7075
If present, the validator client will use longer timeouts for requests made to the beacon node. This flag is
7176
generally not recommended, longer timeouts can cause missed duties when fallbacks are used.
72-
-V, --version Prints version information
77+
-V, --version Prints version information
7378
7479
OPTIONS:
7580
--beacon-nodes <NETWORK_ADDRESSES>

‎lighthouse/tests/validator_client.rs

+17
Original file line numberDiff line numberDiff line change
@@ -636,3 +636,20 @@ fn validator_registration_batch_size_zero_value() {
636636
.flag("validator-registration-batch-size", Some("0"))
637637
.run();
638638
}
639+
640+
#[test]
641+
fn validator_disable_web3_signer_slashing_protection_default() {
642+
CommandLineTest::new().run().with_config(|config| {
643+
assert!(config.enable_web3signer_slashing_protection);
644+
});
645+
}
646+
647+
#[test]
648+
fn validator_disable_web3_signer_slashing_protection() {
649+
CommandLineTest::new()
650+
.flag("disable-slashing-protection-web3signer", None)
651+
.run()
652+
.with_config(|config| {
653+
assert!(!config.enable_web3signer_slashing_protection);
654+
});
655+
}

0 commit comments

Comments
 (0)
Please sign in to comment.