mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 21:38:05 -05:00
Reboot Discovery Listener (#14487)
* Add Current Changes To Routine * Add In New Test * Add Feature Flag * Add Discovery Rebooter feature * Do Not Export Mutex And Use Zero Value Mutex * Wrap Error For Better Debugging * Fix Function Name and Add Specific Test For it * Manu's Review
This commit is contained in:
@@ -78,6 +78,8 @@ type Flags struct {
|
||||
SaveInvalidBlock bool // SaveInvalidBlock saves invalid block to temp.
|
||||
SaveInvalidBlob bool // SaveInvalidBlob saves invalid blob to temp.
|
||||
|
||||
EnableDiscoveryReboot bool // EnableDiscoveryReboot allows the node to have its local listener to be rebooted in the event of discovery issues.
|
||||
|
||||
// KeystoreImportDebounceInterval specifies the time duration the validator waits to reload new keys if they have
|
||||
// changed on disk. This feature is for advanced use cases only.
|
||||
KeystoreImportDebounceInterval time.Duration
|
||||
@@ -260,6 +262,10 @@ func ConfigureBeaconChain(ctx *cli.Context) error {
|
||||
logEnabled(DisableCommitteeAwarePacking)
|
||||
cfg.DisableCommitteeAwarePacking = true
|
||||
}
|
||||
if ctx.IsSet(EnableDiscoveryReboot.Name) {
|
||||
logEnabled(EnableDiscoveryReboot)
|
||||
cfg.EnableDiscoveryReboot = true
|
||||
}
|
||||
|
||||
cfg.AggregateIntervals = [3]time.Duration{aggregateFirstInterval.Value, aggregateSecondInterval.Value, aggregateThirdInterval.Value}
|
||||
Init(cfg)
|
||||
|
||||
@@ -170,6 +170,10 @@ var (
|
||||
Name: "disable-committee-aware-packing",
|
||||
Usage: "Changes the attestation packing algorithm to one that is not aware of attesting committees.",
|
||||
}
|
||||
EnableDiscoveryReboot = &cli.BoolFlag{
|
||||
Name: "enable-discovery-reboot",
|
||||
Usage: "Experimental: Enables the discovery listener to rebooted in the event of connectivity issues.",
|
||||
}
|
||||
)
|
||||
|
||||
// devModeFlags holds list of flags that are set when development mode is on.
|
||||
@@ -227,6 +231,7 @@ var BeaconChainFlags = append(deprecatedBeaconFlags, append(deprecatedFlags, []c
|
||||
BlobSaveFsync,
|
||||
EnableQUIC,
|
||||
DisableCommitteeAwarePacking,
|
||||
EnableDiscoveryReboot,
|
||||
}...)...)
|
||||
|
||||
// E2EBeaconChainFlags contains a list of the beacon chain feature flags to be tested in E2E.
|
||||
|
||||
Reference in New Issue
Block a user