[#584] pkg/innerring: Stop using deprecated methods
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
91f010e0a9
commit
057ebf9d51
11 changed files with 65 additions and 44 deletions
|
@ -41,14 +41,7 @@ func (rp *Processor) processPut(epoch uint64, id reputation.PeerID, value reputa
|
|||
args.SetPeerID(id)
|
||||
args.SetValue(value)
|
||||
|
||||
var err error
|
||||
|
||||
if rp.notaryDisabled {
|
||||
err = rp.reputationWrp.Put(args)
|
||||
} else {
|
||||
err = rp.reputationWrp.PutViaNotary(args)
|
||||
}
|
||||
|
||||
err := rp.reputationWrp.Put(args)
|
||||
if err != nil {
|
||||
rp.log.Warn("can't send approval tx for reputation value",
|
||||
zap.String("peer_id", hex.EncodeToString(id.ToV2().GetPublicKey())),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue