Shutdown after sync (#2519)

## Issue Addressed

Resolves #2033 

## Proposed Changes

Adds a flag to enable shutting down beacon node right after sync is completed.

## Additional Info

Will need modification after weak subjectivity sync is enabled to change definition of a fully synced node.
This commit is contained in:
Pawan Dhananjay
2021-08-30 13:46:13 +00:00
parent 10945e0619
commit b4dd98b3c6
5 changed files with 42 additions and 0 deletions

View File

@@ -109,6 +109,9 @@ pub struct Config {
/// prevents sending client identifying information over identify.
pub private: bool,
/// Shutdown beacon node after sync is completed.
pub shutdown_after_sync: bool,
/// List of extra topics to initially subscribe to as strings.
pub topics: Vec<GossipKind>,
}
@@ -183,6 +186,7 @@ impl Default for Config {
private: false,
subscribe_all_subnets: false,
import_all_attestations: false,
shutdown_after_sync: false,
topics: Vec::new(),
}
}