forked from TrueCloudLab/frostfs-node
[#527] reputation: Fix EigenTrust algorithm
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
e1e4a61ba7
commit
9fbc6f5efe
2 changed files with 2 additions and 1 deletions
|
@ -158,7 +158,7 @@ func (s *EpochTrustValueStorage) Iterate(h reputation.TrustHandler) (err error)
|
|||
t := reputation.Trust{}
|
||||
|
||||
t.SetPeer(peerIDFromString(strID))
|
||||
t.SetValue(val)
|
||||
t.SetValue(val.Div(sum))
|
||||
|
||||
if err = h(t); err != nil {
|
||||
break
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue