mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 12:57:18 +00:00
89 lines
3.8 KiB
Go
89 lines
3.8 KiB
Go
package featureconfig
|
|
|
|
import (
|
|
"github.com/urfave/cli"
|
|
)
|
|
|
|
var (
|
|
// EnableCanonicalAttestationFilter filters and sends canonical attestation to RPC requests.
|
|
EnableCanonicalAttestationFilter = cli.BoolFlag{
|
|
Name: "enable-canonical-attestation-filter",
|
|
Usage: "Enable filtering and sending canonical attestations to RPC request, default is disabled.",
|
|
}
|
|
// DisableHistoricalStatePruningFlag allows the database to keep old historical states.
|
|
DisableHistoricalStatePruningFlag = cli.BoolFlag{
|
|
Name: "disable-historical-state-pruning",
|
|
Usage: "Disable database pruning of historical states after finalized epochs.",
|
|
}
|
|
// DisableGossipSubFlag uses floodsub in place of gossipsub.
|
|
DisableGossipSubFlag = cli.BoolFlag{
|
|
Name: "disable-gossip-sub",
|
|
Usage: "Disable gossip sub messaging and use floodsub messaging",
|
|
}
|
|
// EnableExcessDepositsFlag enables a validator to have total amount deposited as more than the
|
|
// max deposit amount.
|
|
EnableExcessDepositsFlag = cli.BoolFlag{
|
|
Name: "enables-excess-deposit",
|
|
Usage: "Enables balances more than max deposit amount for a validator",
|
|
}
|
|
// 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.",
|
|
}
|
|
// 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{}
|
|
|
|
// BeaconChainFlags contains a list of all the feature flags that apply to the beacon-chain client.
|
|
var BeaconChainFlags = []cli.Flag{
|
|
EnableCanonicalAttestationFilter,
|
|
DisableHistoricalStatePruningFlag,
|
|
DisableGossipSubFlag,
|
|
EnableExcessDepositsFlag,
|
|
NoGenesisDelayFlag,
|
|
EnableActiveBalanceCacheFlag,
|
|
EnableAttestationCacheFlag,
|
|
EnableAncestorBlockCacheFlag,
|
|
EnableEth1DataVoteCacheFlag,
|
|
EnableSeedCacheFlag,
|
|
EnableStartShardCacheFlag,
|
|
EnableTotalBalanceCacheFlag,
|
|
}
|