diff --git a/cmd/neofs-node/reputation.go b/cmd/neofs-node/reputation.go index fe5947203..880fc0d57 100644 --- a/cmd/neofs-node/reputation.go +++ b/cmd/neofs-node/reputation.go @@ -37,8 +37,6 @@ import ( "go.uber.org/zap" ) -const EigenTrustAlpha = 0.1 - func initReputationService(c *cfg) { staticClient, err := client.NewStatic( c.cfgMorph.client, @@ -149,9 +147,7 @@ func initReputationService(c *cfg) { eigenTrustCalculator := eigentrustcalc.New( eigentrustcalc.Prm{ - AlphaProvider: intermediate.AlphaProvider{ - Alpha: EigenTrustAlpha, - }, + AlphaProvider: c.cfgNetmap.wrapper, InitialTrustSource: intermediatereputation.InitialTrustSource{ NetMap: nmSrc, }, diff --git a/cmd/neofs-node/reputation/intermediate/calculator.go b/cmd/neofs-node/reputation/intermediate/calculator.go index a59293538..9b7d58a6e 100644 --- a/cmd/neofs-node/reputation/intermediate/calculator.go +++ b/cmd/neofs-node/reputation/intermediate/calculator.go @@ -53,13 +53,3 @@ func (c *DaughtersTrustCalculator) Calculate(ctx eigentrustctrl.IterationContext c.Calculator.Calculate(calcPrm) } - -// AlphaProvider provides required alpha parameter of eigen trust algorithm. -// TODO: decide if `Alpha` should be dynamically read from global config. #497 -type AlphaProvider struct { - Alpha float64 -} - -func (ap AlphaProvider) EigenTrustAlpha() (float64, error) { - return ap.Alpha, nil -}