[#1023] *: fix linter errors

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
Evgenii Stratonikov 2022-01-29 16:36:29 +03:00 committed by Alex Vanin
parent eb99b65134
commit 476528361e
7 changed files with 1 additions and 18 deletions

View file

@ -21,7 +21,6 @@ import (
) )
const defaultNameServiceDomainPrice = 10_0000_0000 const defaultNameServiceDomainPrice = 10_0000_0000
const defaultNameServiceSysfee = 4000_0000
const defaultRegisterSysfee = 10_0000_0000 + defaultNameServiceDomainPrice const defaultRegisterSysfee = 10_0000_0000 + defaultNameServiceDomainPrice
func (c *initializeContext) setNNS() error { func (c *initializeContext) setNNS() error {

View file

@ -8,7 +8,6 @@ import (
"time" "time"
"github.com/nspcc-dev/neo-go/pkg/crypto/keys" "github.com/nspcc-dev/neo-go/pkg/crypto/keys"
"github.com/nspcc-dev/neo-go/pkg/encoding/fixedn"
neogoutil "github.com/nspcc-dev/neo-go/pkg/util" neogoutil "github.com/nspcc-dev/neo-go/pkg/util"
netmapV2 "github.com/nspcc-dev/neofs-api-go/v2/netmap" netmapV2 "github.com/nspcc-dev/neofs-api-go/v2/netmap"
"github.com/nspcc-dev/neofs-node/cmd/neofs-node/config" "github.com/nspcc-dev/neofs-node/cmd/neofs-node/config"
@ -133,8 +132,6 @@ type cfgMorph struct {
client *client.Client client *client.Client
notaryEnabled bool notaryEnabled bool
notaryDepositAmount fixedn.Fixed8
notaryDepositDuration uint32
disableCache bool disableCache bool

View file

@ -12,7 +12,6 @@ import (
"github.com/nspcc-dev/neo-go/pkg/core/transaction" "github.com/nspcc-dev/neo-go/pkg/core/transaction"
"github.com/nspcc-dev/neo-go/pkg/crypto/keys" "github.com/nspcc-dev/neo-go/pkg/crypto/keys"
"github.com/nspcc-dev/neo-go/pkg/encoding/fixedn" "github.com/nspcc-dev/neo-go/pkg/encoding/fixedn"
"github.com/nspcc-dev/neo-go/pkg/util"
"github.com/nspcc-dev/neofs-node/pkg/innerring/config" "github.com/nspcc-dev/neofs-node/pkg/innerring/config"
"github.com/nspcc-dev/neofs-node/pkg/innerring/processors/alphabet" "github.com/nspcc-dev/neofs-node/pkg/innerring/processors/alphabet"
"github.com/nspcc-dev/neofs-node/pkg/innerring/processors/audit" "github.com/nspcc-dev/neofs-node/pkg/innerring/processors/audit"
@ -134,7 +133,6 @@ type (
cfg *viper.Viper cfg *viper.Viper
key *keys.PrivateKey key *keys.PrivateKey
name string name string
gas util.Uint160
sgn *transaction.Signer sgn *transaction.Signer
from uint32 // block height from uint32 // block height
} }

View file

@ -13,10 +13,6 @@ func countryValue(r Record) string {
return r.CountryName() return r.CountryName()
} }
func locationCodeValue(r Record) string {
return r.LocationCode().String()
}
func locationValue(r Record) string { func locationValue(r Record) string {
return r.LocationName() return r.LocationName()
} }

View file

@ -85,8 +85,6 @@ func (e *notHaltStateError) Error() string {
var errEmptyInvocationScript = errors.New("got empty invocation script from neo node") var errEmptyInvocationScript = errors.New("got empty invocation script from neo node")
var errScriptDecode = errors.New("could not decode invocation script from neo node")
// implementation of error interface for NeoFS-specific errors. // implementation of error interface for NeoFS-specific errors.
type neofsError struct { type neofsError struct {
err error err error

View file

@ -7,7 +7,6 @@ import (
"github.com/nspcc-dev/neo-go/pkg/core/transaction" "github.com/nspcc-dev/neo-go/pkg/core/transaction"
"github.com/nspcc-dev/neo-go/pkg/crypto/keys" "github.com/nspcc-dev/neo-go/pkg/crypto/keys"
"github.com/nspcc-dev/neo-go/pkg/rpc/client" "github.com/nspcc-dev/neo-go/pkg/rpc/client"
"github.com/nspcc-dev/neo-go/pkg/util"
"github.com/nspcc-dev/neo-go/pkg/wallet" "github.com/nspcc-dev/neo-go/pkg/wallet"
"github.com/nspcc-dev/neofs-node/pkg/util/logger" "github.com/nspcc-dev/neofs-node/pkg/util/logger"
"go.uber.org/zap" "go.uber.org/zap"
@ -24,8 +23,6 @@ type cfg struct {
logger *logger.Logger // logging component logger *logger.Logger // logging component
gas util.Uint160 // native gas script-hash
waitInterval time.Duration waitInterval time.Duration
signer *transaction.Signer signer *transaction.Signer

View file

@ -48,8 +48,6 @@ const (
// NotaryNonAlphabet makes client to not use its internal key for signing the notary requests. // NotaryNonAlphabet makes client to not use its internal key for signing the notary requests.
NotaryNonAlphabet NotaryNonAlphabet
lastMode
) )
// SetMode makes client to work with non-notary sidechain. // SetMode makes client to work with non-notary sidechain.