mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-05 17:22:18 +00:00
bef58620fc
* Update libp2p * Update com_google_protobuf commit hash to 763c358 * Update graknlabs_bazel_distribution commit hash to 1ec7e2d * Update dependency com_github_coreos_go_semver to v0.3.0 * Update dependency com_github_minio_sha256_simd to v0.1.1 * Update dependency com_github_prometheus_common to v0.7.0 * Update dependency com_github_prometheus_procfs to v0.0.5 * Update dependency com_google_cloud_go to v0.46.2 * Update dependency io_bazel_rules_docker to v0.10.1 * Update libp2p * Update dependency com_github_beorn7_perks to v1 * Update dependency com_github_grpc_ecosystem_go_grpc_middleware to v1 * change back protobuf
72 lines
2.8 KiB
Go
72 lines
2.8 KiB
Go
package featureconfig
|
|
|
|
import (
|
|
"github.com/urfave/cli"
|
|
)
|
|
|
|
var (
|
|
// NoGenesisDelayFlag disables the standard genesis delay.
|
|
NoGenesisDelayFlag = cli.BoolFlag{
|
|
Name: "no-genesis-delay",
|
|
Usage: "Process genesis event 30s after the ETH1 block time, rather than wait to midnight of the next day.",
|
|
}
|
|
// DemoConfigFlag enables the demo configuration.
|
|
DemoConfigFlag = cli.BoolFlag{
|
|
Name: "demo-config",
|
|
Usage: "Use demo config with lower deposit thresholds.",
|
|
}
|
|
// EnableActiveBalanceCacheFlag see https://github.com/prysmaticlabs/prysm/issues/3106.
|
|
EnableActiveBalanceCacheFlag = cli.BoolFlag{
|
|
Name: "enable-active-balance-cache",
|
|
Usage: "Enable unsafe cache mechanism. See https://github.com/prysmaticlabs/prysm/issues/3106",
|
|
}
|
|
// EnableAttestationCacheFlag see https://github.com/prysmaticlabs/prysm/issues/3106.
|
|
EnableAttestationCacheFlag = cli.BoolFlag{
|
|
Name: "enable-attestation-cache",
|
|
Usage: "Enable unsafe cache mechanism. See https://github.com/prysmaticlabs/prysm/issues/3106",
|
|
}
|
|
// EnableAncestorBlockCacheFlag see https://github.com/prysmaticlabs/prysm/issues/3106.
|
|
EnableAncestorBlockCacheFlag = cli.BoolFlag{
|
|
Name: "enable-ancestor-block-cache",
|
|
Usage: "Enable unsafe cache mechanism. See https://github.com/prysmaticlabs/prysm/issues/3106",
|
|
}
|
|
// EnableEth1DataVoteCacheFlag see https://github.com/prysmaticlabs/prysm/issues/3106.
|
|
EnableEth1DataVoteCacheFlag = cli.BoolFlag{
|
|
Name: "enable-eth1-data-vote-cache",
|
|
Usage: "Enable unsafe cache mechanism. See https://github.com/prysmaticlabs/prysm/issues/3106",
|
|
}
|
|
// EnableSeedCacheFlag see https://github.com/prysmaticlabs/prysm/issues/3106.
|
|
EnableSeedCacheFlag = cli.BoolFlag{
|
|
Name: "enable-seed-cache",
|
|
Usage: "Enable unsafe cache mechanism. See https://github.com/prysmaticlabs/prysm/issues/3106",
|
|
}
|
|
// EnableStartShardCacheFlag see https://github.com/prysmaticlabs/prysm/issues/3106.
|
|
EnableStartShardCacheFlag = cli.BoolFlag{
|
|
Name: "enable-start-shard-cache",
|
|
Usage: "Enable unsafe cache mechanism. See https://github.com/prysmaticlabs/prysm/issues/3106",
|
|
}
|
|
// EnableTotalBalanceCacheFlag see https://github.com/prysmaticlabs/prysm/issues/3106.
|
|
EnableTotalBalanceCacheFlag = cli.BoolFlag{
|
|
Name: "enable-total-balance-cache",
|
|
Usage: "Enable unsafe cache mechanism. See https://github.com/prysmaticlabs/prysm/issues/3106",
|
|
}
|
|
)
|
|
|
|
// ValidatorFlags contains a list of all the feature flags that apply to the validator client.
|
|
var ValidatorFlags = []cli.Flag{
|
|
DemoConfigFlag,
|
|
}
|
|
|
|
// BeaconChainFlags contains a list of all the feature flags that apply to the beacon-chain client.
|
|
var BeaconChainFlags = []cli.Flag{
|
|
NoGenesisDelayFlag,
|
|
DemoConfigFlag,
|
|
EnableActiveBalanceCacheFlag,
|
|
EnableAttestationCacheFlag,
|
|
EnableAncestorBlockCacheFlag,
|
|
EnableEth1DataVoteCacheFlag,
|
|
EnableSeedCacheFlag,
|
|
EnableStartShardCacheFlag,
|
|
EnableTotalBalanceCacheFlag,
|
|
}
|