From 7cf48d4d911e255632eaf7420c8626cbb317f850 Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Mon, 5 Apr 2021 12:27:58 +0300 Subject: [PATCH] [#452] Update neo-go to latest master Signed-off-by: Alex Vanin --- cmd/neofs-node/reputation.go | 10 +++++++++- go.mod | 2 +- go.sum | Bin 59867 -> 59867 bytes .../transport/reputation/grpc/service.go | 15 +++++++++++++++ pkg/services/reputation/rpc/response.go | 13 +++++++++++++ pkg/services/reputation/rpc/server.go | 1 + pkg/services/reputation/rpc/sign.go | 13 +++++++++++++ 7 files changed, 52 insertions(+), 2 deletions(-) diff --git a/cmd/neofs-node/reputation.go b/cmd/neofs-node/reputation.go index a65aacd3c..293ca4d8f 100644 --- a/cmd/neofs-node/reputation.go +++ b/cmd/neofs-node/reputation.go @@ -180,7 +180,7 @@ func (s *loggingReputationServer) SendLocalTrust(_ context.Context, req *v2reput for _, t := range body.GetTrusts() { log.Info("local trust received", - zap.String("peer", hex.EncodeToString(t.GetPeer())), + zap.String("peer", hex.EncodeToString(t.GetPeer().GetValue())), zap.Float64("value", t.GetValue()), ) } @@ -190,3 +190,11 @@ func (s *loggingReputationServer) SendLocalTrust(_ context.Context, req *v2reput return resp, nil } + +func (s *loggingReputationServer) SendIntermediateResult(_ context.Context, req *v2reputation.SendIntermediateResultRequest) (*v2reputation.SendIntermediateResultResponse, error) { + resp := new(v2reputation.SendIntermediateResultResponse) + + // todo: implement me + + return resp, nil +} diff --git a/go.mod b/go.mod index afa2c4390..7be2a9521 100644 --- a/go.mod +++ b/go.mod @@ -16,7 +16,7 @@ require ( github.com/multiformats/go-multihash v0.0.13 // indirect github.com/nspcc-dev/hrw v1.0.9 github.com/nspcc-dev/neo-go v0.94.0 - github.com/nspcc-dev/neofs-api-go v1.25.1-0.20210325082034-b792e4e4647a + github.com/nspcc-dev/neofs-api-go v1.25.1-0.20210402125759-771f395d9d4e github.com/nspcc-dev/neofs-crypto v0.3.0 github.com/nspcc-dev/tzhash v1.4.0 github.com/panjf2000/ants/v2 v2.3.0 diff --git a/go.sum b/go.sum index f9efd0fe56bb10750c29b4dcc64ff343d619b83f..a2f93c73d3f63988489d41998e9cdc8d13039580 100644 GIT binary patch delta 115 zcmcb8nfdl*<_&S#t|kUXhDN65rk1+q=7wp;mZm9|DJH238HQGsj>Z1krCu)1Ib|g! zZsi%lB~j^lVMY}xkpbEv;qH~$2AN5w$*CcUp81mxWJ*omn=L7Z-L%bbvftMN0K!x! A4*&oF delta 114 zcmcb8nfdl*<_&S#F2+Wt1{OvJ#wNN+=9WgOCaET7CgzC>8HQHn&S?hbej(X`sh)WT zsbv<9{_e@yrB&u0xw*Mv`o*q6u9fZ)29Bxb6_X$4$W1-`4^FXlf