mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-09 11:41:51 +00:00
Add flag to import all attestations (#1941)
## Issue Addressed NA ## Proposed Changes Adds the `--import-all-attestations` flag which tells the `network::AttestationService` to import/aggregate all attestations after verification (instead of only ones for subnets that are relevant to local validators). This is useful for testing/debugging and also for creating back-up nodes that should be all cached up and ready for any validator. ## Additional Info NA
This commit is contained in:
@@ -37,6 +37,14 @@ pub fn cli_app<'a, 'b>() -> App<'a, 'b> {
|
||||
This will also advertise the beacon node as being long-lived subscribed to all subnets.")
|
||||
.takes_value(false),
|
||||
)
|
||||
.arg(
|
||||
Arg::with_name("import-all-attestations")
|
||||
.long("import-all-attestations")
|
||||
.help("Import and aggregate all attestations, regardless of validator subscriptions. \
|
||||
This will only import attestations from already-subscribed subnets, use with \
|
||||
--subscribe-all-subnets to ensure all attestations are received for import.")
|
||||
.takes_value(false),
|
||||
)
|
||||
.arg(
|
||||
Arg::with_name("zero-ports")
|
||||
.long("zero-ports")
|
||||
|
||||
Reference in New Issue
Block a user