Skip to content

Commit abe524c

Browse files
committed
refactor(flags)!: rename provider-optimizer-* weight flags to qos-*
Drop the "provider" prefix from the five weighted-selection flags so the names describe the QoS dimension rather than the entity being scored: --provider-optimizer-availability-weight -> --qos-availability-weight --provider-optimizer-latency-weight -> --qos-latency-weight --provider-optimizer-sync-weight -> --qos-sync-weight --provider-optimizer-stake-weight -> --qos-stake-weight --provider-optimizer-min-selection-chance -> --qos-min-selection-chance Only the user-facing flag strings change; the internal constant identifiers and viper bindings are untouched. The command has no unknown-flag whitelist, so any caller (e.g. the helm chart) passing the old names must be updated in lockstep with this release.
1 parent 028f9dc commit abe524c

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎protocol/common/cobra_common.go‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,11 @@ const (
8080
EnableSelectionStatsHeaderFlag = "enable-selection-stats" // enable selection stats header for debugging provider selection // allows the user to manually load a spec providing a path, this is useful to test spec changes before they hit the blockchain
8181

8282
// weighted selection flags (new system replacing tiers)
83-
ProviderOptimizerAvailabilityWeight = "provider-optimizer-availability-weight" // weight for availability score (default: 0.4)
84-
ProviderOptimizerLatencyWeight = "provider-optimizer-latency-weight" // weight for latency score (default: 0.3)
85-
ProviderOptimizerSyncWeight = "provider-optimizer-sync-weight" // weight for sync score (default: 0.2)
86-
ProviderOptimizerStakeWeight = "provider-optimizer-stake-weight" // weight for stake (default: 0.1)
87-
ProviderOptimizerMinSelectionChance = "provider-optimizer-min-selection-chance" // minimum selection probability for any provider (default: 0.01)
83+
ProviderOptimizerAvailabilityWeight = "qos-availability-weight" // weight for availability score (default: 0.4)
84+
ProviderOptimizerLatencyWeight = "qos-latency-weight" // weight for latency score (default: 0.3)
85+
ProviderOptimizerSyncWeight = "qos-sync-weight" // weight for sync score (default: 0.2)
86+
ProviderOptimizerStakeWeight = "qos-stake-weight" // weight for stake (default: 0.1)
87+
ProviderOptimizerMinSelectionChance = "qos-min-selection-chance" // minimum selection probability for any provider (default: 0.01)
8888

8989
// optimizer qos sampling cadence — drives the in-memory /metrics
9090
// selection-score cache and the OTel optimizer_qos emit.

0 commit comments

Comments
 (0)