5b33eaec36
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
15 lines
227 B
Go
15 lines
227 B
Go
package reputation
|
|
|
|
// SetPeer sets trusted peer's ID.
|
|
func (x *Trust) SetPeer(v []byte) {
|
|
if x != nil {
|
|
x.Peer = v
|
|
}
|
|
}
|
|
|
|
// SetValue sets trust value.
|
|
func (x *Trust) SetValue(v float64) {
|
|
if x != nil {
|
|
x.Value = v
|
|
}
|
|
}
|