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

@@ -51,6 +51,12 @@ pub fn cli_app<'a, 'b>() -> App<'a, 'b> {
.help("Disables the discovery packet filter. Useful for testing in smaller networks")
.takes_value(false),
)
.arg(
Arg::with_name("shutdown-after-sync")
.long("shutdown-after-sync")
.help("Shutdown beacon node as soon as sync is completed")
.takes_value(false),
)
.arg(
Arg::with_name("zero-ports")
.long("zero-ports")