From 63f212f4b37dd55b42ed04b91be336e8984bcfe0 Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Fri, 2 Sep 2022 17:20:39 +0300 Subject: [PATCH] golangci: enable/fix misspell --- .golangci.yml | 1 + pkg/core/blockchain_core_test.go | 2 +- pkg/core/mpt/billet.go | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 00ab87f67..d63fe3d3e 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -46,6 +46,7 @@ linters: - contextcheck - errorlint - gofmt + - misspell - whitespace - goimports disable-all: true diff --git a/pkg/core/blockchain_core_test.go b/pkg/core/blockchain_core_test.go index a0ccae047..8ef59604e 100644 --- a/pkg/core/blockchain_core_test.go +++ b/pkg/core/blockchain_core_test.go @@ -77,7 +77,7 @@ func TestAddBlock(t *testing.T) { } func TestRemoveOldTransfers(t *testing.T) { - // Creating proper number of transfers/blocks takes unneccessary time, so emulate + // Creating proper number of transfers/blocks takes unnecessary time, so emulate // some DB with stale entries. bc := newTestChain(t) h, err := bc.GetHeader(bc.GetHeaderHash(0)) diff --git a/pkg/core/mpt/billet.go b/pkg/core/mpt/billet.go index 86b2abeb6..cba44afa0 100644 --- a/pkg/core/mpt/billet.go +++ b/pkg/core/mpt/billet.go @@ -37,7 +37,7 @@ type Billet struct { // NewBillet returns a new billet for MPT trie restoring. It accepts a MemCachedStore // to decouple storage errors from logic errors so that all storage errors are -// processed during `store.Persist()` at the caller. Another benifit is +// processed during `store.Persist()` at the caller. Another benefit is // that every `Put` can be considered an atomic operation. func NewBillet(rootHash util.Uint256, mode TrieMode, prefix storage.KeyPrefix, store *storage.MemCachedStore) *Billet { return &Billet{