github.com/MetalBlockchain/metalgo@v1.11.9/config/keys.go (about) 1 // Copyright (C) 2019-2024, Ava Labs, Inc. All rights reserved. 2 // See the file LICENSE for licensing terms. 3 4 package config 5 6 // the HTTPWriteTimeoutKey was moved here so that it would not generate the 7 // false-positive linter error "G101: Potential hardcoded credentials" when running golangci-lint. 8 const HTTPWriteTimeoutKey = "http-write-timeout" // #nosec G101 9 10 const ( 11 DataDirKey = "data-dir" 12 ConfigFileKey = "config-file" 13 ConfigContentKey = "config-file-content" 14 ConfigContentTypeKey = "config-file-content-type" 15 VersionKey = "version" 16 VersionJSONKey = "version-json" 17 GenesisFileKey = "genesis-file" 18 GenesisFileContentKey = "genesis-file-content" 19 NetworkNameKey = "network-id" 20 ACPSupportKey = "acp-support" 21 ACPObjectKey = "acp-object" 22 TxFeeKey = "tx-fee" 23 CreateAssetTxFeeKey = "create-asset-tx-fee" 24 CreateSubnetTxFeeKey = "create-subnet-tx-fee" 25 TransformSubnetTxFeeKey = "transform-subnet-tx-fee" 26 CreateBlockchainTxFeeKey = "create-blockchain-tx-fee" 27 AddPrimaryNetworkValidatorFeeKey = "add-primary-network-validator-fee" 28 AddPrimaryNetworkDelegatorFeeKey = "add-primary-network-delegator-fee" 29 AddSubnetValidatorFeeKey = "add-subnet-validator-fee" 30 AddSubnetDelegatorFeeKey = "add-subnet-delegator-fee" 31 UptimeRequirementKey = "uptime-requirement" 32 MinValidatorStakeKey = "min-validator-stake" 33 MaxValidatorStakeKey = "max-validator-stake" 34 MinDelegatorStakeKey = "min-delegator-stake" 35 MinDelegatorFeeKey = "min-delegation-fee" 36 MinStakeDurationKey = "min-stake-duration" 37 MaxStakeDurationKey = "max-stake-duration" 38 StakeMaxConsumptionRateKey = "stake-max-consumption-rate" 39 StakeMinConsumptionRateKey = "stake-min-consumption-rate" 40 StakeMintingPeriodKey = "stake-minting-period" 41 StakeSupplyCapKey = "stake-supply-cap" 42 DBTypeKey = "db-type" 43 DBReadOnlyKey = "db-read-only" 44 DBPathKey = "db-dir" 45 DBConfigFileKey = "db-config-file" 46 DBConfigContentKey = "db-config-file-content" 47 PublicIPKey = "public-ip" 48 PublicIPResolutionFreqKey = "public-ip-resolution-frequency" 49 PublicIPResolutionServiceKey = "public-ip-resolution-service" 50 HTTPHostKey = "http-host" 51 HTTPPortKey = "http-port" 52 HTTPSEnabledKey = "http-tls-enabled" 53 HTTPSKeyFileKey = "http-tls-key-file" 54 HTTPSKeyContentKey = "http-tls-key-file-content" 55 HTTPSCertFileKey = "http-tls-cert-file" 56 HTTPSCertContentKey = "http-tls-cert-file-content" 57 58 HTTPAllowedOrigins = "http-allowed-origins" 59 HTTPAllowedHostsKey = "http-allowed-hosts" 60 HTTPShutdownTimeoutKey = "http-shutdown-timeout" 61 HTTPShutdownWaitKey = "http-shutdown-wait" 62 HTTPReadTimeoutKey = "http-read-timeout" 63 HTTPReadHeaderTimeoutKey = "http-read-header-timeout" 64 65 HTTPIdleTimeoutKey = "http-idle-timeout" 66 StateSyncIPsKey = "state-sync-ips" 67 StateSyncIDsKey = "state-sync-ids" 68 BootstrapIPsKey = "bootstrap-ips" 69 BootstrapIDsKey = "bootstrap-ids" 70 StakingHostKey = "staking-host" 71 StakingPortKey = "staking-port" 72 StakingEphemeralCertEnabledKey = "staking-ephemeral-cert-enabled" 73 StakingTLSKeyPathKey = "staking-tls-key-file" 74 StakingTLSKeyContentKey = "staking-tls-key-file-content" 75 StakingCertPathKey = "staking-tls-cert-file" 76 StakingCertContentKey = "staking-tls-cert-file-content" 77 StakingEphemeralSignerEnabledKey = "staking-ephemeral-signer-enabled" 78 StakingSignerKeyPathKey = "staking-signer-key-file" 79 StakingSignerKeyContentKey = "staking-signer-key-file-content" 80 SybilProtectionEnabledKey = "sybil-protection-enabled" 81 SybilProtectionDisabledWeightKey = "sybil-protection-disabled-weight" 82 NetworkInitialTimeoutKey = "network-initial-timeout" 83 NetworkMinimumTimeoutKey = "network-minimum-timeout" 84 NetworkMaximumTimeoutKey = "network-maximum-timeout" 85 NetworkMaximumInboundTimeoutKey = "network-maximum-inbound-timeout" 86 NetworkTimeoutHalflifeKey = "network-timeout-halflife" 87 NetworkTimeoutCoefficientKey = "network-timeout-coefficient" 88 NetworkHealthMinPeersKey = "network-health-min-conn-peers" 89 NetworkHealthMaxTimeSinceMsgReceivedKey = "network-health-max-time-since-msg-received" 90 NetworkHealthMaxTimeSinceMsgSentKey = "network-health-max-time-since-msg-sent" 91 NetworkHealthMaxPortionSendQueueFillKey = "network-health-max-portion-send-queue-full" 92 NetworkHealthMaxSendFailRateKey = "network-health-max-send-fail-rate" 93 NetworkHealthMaxOutstandingDurationKey = "network-health-max-outstanding-request-duration" 94 NetworkPeerListNumValidatorIPsKey = "network-peer-list-num-validator-ips" 95 NetworkPeerListPullGossipFreqKey = "network-peer-list-pull-gossip-frequency" 96 NetworkPeerListBloomResetFreqKey = "network-peer-list-bloom-reset-frequency" 97 NetworkInitialReconnectDelayKey = "network-initial-reconnect-delay" 98 NetworkReadHandshakeTimeoutKey = "network-read-handshake-timeout" 99 NetworkPingTimeoutKey = "network-ping-timeout" 100 NetworkPingFrequencyKey = "network-ping-frequency" 101 NetworkMaxReconnectDelayKey = "network-max-reconnect-delay" 102 NetworkCompressionTypeKey = "network-compression-type" 103 NetworkMaxClockDifferenceKey = "network-max-clock-difference" 104 NetworkAllowPrivateIPsKey = "network-allow-private-ips" 105 NetworkRequireValidatorToConnectKey = "network-require-validator-to-connect" 106 NetworkPeerReadBufferSizeKey = "network-peer-read-buffer-size" 107 NetworkPeerWriteBufferSizeKey = "network-peer-write-buffer-size" 108 NetworkTCPProxyEnabledKey = "network-tcp-proxy-enabled" 109 NetworkTCPProxyReadTimeoutKey = "network-tcp-proxy-read-timeout" 110 NetworkTLSKeyLogFileKey = "network-tls-key-log-file-unsafe" 111 NetworkInboundConnUpgradeThrottlerCooldownKey = "network-inbound-connection-throttling-cooldown" 112 NetworkInboundThrottlerMaxConnsPerSecKey = "network-inbound-connection-throttling-max-conns-per-sec" 113 NetworkOutboundConnectionThrottlingRpsKey = "network-outbound-connection-throttling-rps" 114 NetworkOutboundConnectionTimeoutKey = "network-outbound-connection-timeout" 115 BenchlistFailThresholdKey = "benchlist-fail-threshold" 116 BenchlistDurationKey = "benchlist-duration" 117 BenchlistMinFailingDurationKey = "benchlist-min-failing-duration" 118 LogsDirKey = "log-dir" 119 LogLevelKey = "log-level" 120 LogDisplayLevelKey = "log-display-level" 121 LogFormatKey = "log-format" 122 LogRotaterMaxSizeKey = "log-rotater-max-size" 123 LogRotaterMaxFilesKey = "log-rotater-max-files" 124 LogRotaterMaxAgeKey = "log-rotater-max-age" 125 LogRotaterCompressEnabledKey = "log-rotater-compress-enabled" 126 LogDisableDisplayPluginLogsKey = "log-disable-display-plugin-logs" 127 SnowSampleSizeKey = "snow-sample-size" 128 SnowQuorumSizeKey = "snow-quorum-size" 129 SnowPreferenceQuorumSizeKey = "snow-preference-quorum-size" 130 SnowConfidenceQuorumSizeKey = "snow-confidence-quorum-size" 131 SnowCommitThresholdKey = "snow-commit-threshold" 132 SnowConcurrentRepollsKey = "snow-concurrent-repolls" 133 SnowOptimalProcessingKey = "snow-optimal-processing" 134 SnowMaxProcessingKey = "snow-max-processing" 135 SnowMaxTimeProcessingKey = "snow-max-time-processing" 136 PartialSyncPrimaryNetworkKey = "partial-sync-primary-network" 137 TrackSubnetsKey = "track-subnets" 138 AdminAPIEnabledKey = "api-admin-enabled" 139 InfoAPIEnabledKey = "api-info-enabled" 140 KeystoreAPIEnabledKey = "api-keystore-enabled" 141 MetricsAPIEnabledKey = "api-metrics-enabled" 142 HealthAPIEnabledKey = "api-health-enabled" 143 MeterVMsEnabledKey = "meter-vms-enabled" 144 ConsensusAppConcurrencyKey = "consensus-app-concurrency" 145 ConsensusShutdownTimeoutKey = "consensus-shutdown-timeout" 146 ConsensusFrontierPollFrequencyKey = "consensus-frontier-poll-frequency" 147 ProposerVMUseCurrentHeightKey = "proposervm-use-current-height" 148 FdLimitKey = "fd-limit" 149 IndexEnabledKey = "index-enabled" 150 IndexAllowIncompleteKey = "index-allow-incomplete" 151 RouterHealthMaxDropRateKey = "router-health-max-drop-rate" 152 RouterHealthMaxOutstandingRequestsKey = "router-health-max-outstanding-requests" 153 HealthCheckFreqKey = "health-check-frequency" 154 HealthCheckAveragerHalflifeKey = "health-check-averager-halflife" 155 PluginDirKey = "plugin-dir" 156 BootstrapBeaconConnectionTimeoutKey = "bootstrap-beacon-connection-timeout" 157 BootstrapMaxTimeGetAncestorsKey = "bootstrap-max-time-get-ancestors" 158 BootstrapAncestorsMaxContainersSentKey = "bootstrap-ancestors-max-containers-sent" 159 BootstrapAncestorsMaxContainersReceivedKey = "bootstrap-ancestors-max-containers-received" 160 ChainDataDirKey = "chain-data-dir" 161 ChainConfigDirKey = "chain-config-dir" 162 ChainConfigContentKey = "chain-config-content" 163 SubnetConfigDirKey = "subnet-config-dir" 164 SubnetConfigContentKey = "subnet-config-content" 165 ProfileDirKey = "profile-dir" 166 ProfileContinuousEnabledKey = "profile-continuous-enabled" 167 ProfileContinuousFreqKey = "profile-continuous-freq" 168 ProfileContinuousMaxFilesKey = "profile-continuous-max-files" 169 InboundThrottlerAtLargeAllocSizeKey = "throttler-inbound-at-large-alloc-size" 170 InboundThrottlerVdrAllocSizeKey = "throttler-inbound-validator-alloc-size" 171 InboundThrottlerNodeMaxAtLargeBytesKey = "throttler-inbound-node-max-at-large-bytes" 172 InboundThrottlerMaxProcessingMsgsPerNodeKey = "throttler-inbound-node-max-processing-msgs" 173 InboundThrottlerBandwidthRefillRateKey = "throttler-inbound-bandwidth-refill-rate" 174 InboundThrottlerBandwidthMaxBurstSizeKey = "throttler-inbound-bandwidth-max-burst-size" 175 InboundThrottlerCPUMaxRecheckDelayKey = "throttler-inbound-cpu-max-recheck-delay" 176 InboundThrottlerDiskMaxRecheckDelayKey = "throttler-inbound-disk-max-recheck-delay" 177 CPUVdrAllocKey = "throttler-inbound-cpu-validator-alloc" 178 CPUMaxNonVdrUsageKey = "throttler-inbound-cpu-max-non-validator-usage" 179 CPUMaxNonVdrNodeUsageKey = "throttler-inbound-cpu-max-non-validator-node-usage" 180 SystemTrackerFrequencyKey = "system-tracker-frequency" 181 SystemTrackerProcessingHalflifeKey = "system-tracker-processing-halflife" 182 SystemTrackerCPUHalflifeKey = "system-tracker-cpu-halflife" 183 SystemTrackerDiskHalflifeKey = "system-tracker-disk-halflife" 184 SystemTrackerRequiredAvailableDiskSpaceKey = "system-tracker-disk-required-available-space" 185 SystemTrackerWarningThresholdAvailableDiskSpaceKey = "system-tracker-disk-warning-threshold-available-space" 186 DiskVdrAllocKey = "throttler-inbound-disk-validator-alloc" 187 DiskMaxNonVdrUsageKey = "throttler-inbound-disk-max-non-validator-usage" 188 DiskMaxNonVdrNodeUsageKey = "throttler-inbound-disk-max-non-validator-node-usage" 189 OutboundThrottlerAtLargeAllocSizeKey = "throttler-outbound-at-large-alloc-size" 190 OutboundThrottlerVdrAllocSizeKey = "throttler-outbound-validator-alloc-size" 191 OutboundThrottlerNodeMaxAtLargeBytesKey = "throttler-outbound-node-max-at-large-bytes" 192 UptimeMetricFreqKey = "uptime-metric-freq" 193 VMAliasesFileKey = "vm-aliases-file" 194 VMAliasesContentKey = "vm-aliases-file-content" 195 ChainAliasesFileKey = "chain-aliases-file" 196 ChainAliasesContentKey = "chain-aliases-file-content" 197 TracingEnabledKey = "tracing-enabled" 198 TracingEndpointKey = "tracing-endpoint" 199 TracingInsecureKey = "tracing-insecure" 200 TracingSampleRateKey = "tracing-sample-rate" 201 TracingExporterTypeKey = "tracing-exporter-type" 202 TracingHeadersKey = "tracing-headers" 203 ProcessContextFileKey = "process-context-file" 204 )