diff --git a/.circleci/config.yml b/.circleci/config.yml index c025f694b..7613e5b97 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -39,7 +39,7 @@ jobs: - run: name: go-lint command: | - curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.40.0 + curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.42.1 make lint test_1_15: diff --git a/.golangci.yml b/.golangci.yml index 39a4d8e51..1c67aa665 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -29,7 +29,7 @@ linters: enable: # mandatory linters - govet - - golint + - revive # some default golangci-lint linters - deadcode diff --git a/pkg/core/blockchain.go b/pkg/core/blockchain.go index f2e7e14a1..719af0115 100644 --- a/pkg/core/blockchain.go +++ b/pkg/core/blockchain.go @@ -96,7 +96,7 @@ var ( ErrPolicy = errors.New("not allowed by policy") // ErrInvalidBlockIndex is returned when trying to add block with index // other than expected height of the blockchain. - ErrInvalidBlockIndex error = errors.New("invalid block index") + ErrInvalidBlockIndex = errors.New("invalid block index") // ErrHasConflicts is returned when trying to add some transaction which // conflicts with other transaction in the chain or pool according to // Conflicts attribute. diff --git a/pkg/core/native/native_neo.go b/pkg/core/native/native_neo.go index 391525f1f..f56914eab 100644 --- a/pkg/core/native/native_neo.go +++ b/pkg/core/native/native_neo.go @@ -212,7 +212,7 @@ func (n *NEO) Initialize(ic *interop.Context) error { } n.mint(ic, h, big.NewInt(NEOTotalSupply), false) - var index uint32 = 0 + var index uint32 value := big.NewInt(5 * GASFactor) err = n.putGASRecord(ic.DAO, index, value) if err != nil {