diff --git a/pkg/client/reputation.go b/pkg/client/reputation.go index 2ee6bc1..a096efb 100644 --- a/pkg/client/reputation.go +++ b/pkg/client/reputation.go @@ -87,11 +87,21 @@ func (c *clientImpl) SendLocalTrust(ctx context.Context, prm SendLocalTrustPrm, // SendIntermediateTrustPrm groups parameters of SendIntermediateTrust operation. type SendIntermediateTrustPrm struct { + epoch uint64 + iter uint32 trust *reputation.PeerToPeerTrust } +func (x *SendIntermediateTrustPrm) Epoch() uint64 { + return x.epoch +} + +func (x *SendIntermediateTrustPrm) SetEpoch(epoch uint64) { + x.epoch = epoch +} + // Iteration returns sequence number of the iteration. func (x SendIntermediateTrustPrm) Iteration() uint32 { return x.iter @@ -124,6 +134,7 @@ func (c *clientImpl) SendIntermediateTrust(ctx context.Context, prm SendIntermed } reqBody := new(v2reputation.SendIntermediateResultRequestBody) + reqBody.SetEpoch(prm.Epoch()) reqBody.SetIteration(prm.Iteration()) reqBody.SetTrust(prm.Trust().ToV2())