diff --git a/.golangci.yml b/.golangci.yml index ff3c3f10..cd45f1e1 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -3,6 +3,7 @@ linters: enable: - golint - gocyclo + - misspell linters-settings: gocyclo: diff --git a/consensus/chainedhotstuff/chainedhotstuff.go b/consensus/chainedhotstuff/chainedhotstuff.go index cb203594..aaf66353 100644 --- a/consensus/chainedhotstuff/chainedhotstuff.go +++ b/consensus/chainedhotstuff/chainedhotstuff.go @@ -84,7 +84,7 @@ func (hs *chainedhotstuff) Leaf() *hotstuff.Block { return hs.bLeaf } -// BlockChain returns the datastructure contianing the blocks known to the replica +// BlockChain returns the datastructure containing the blocks known to the replica func (hs *chainedhotstuff) BlockChain() hotstuff.BlockChain { return hs.blocks } diff --git a/hotstuff.go b/hotstuff.go index 950cedba..b28e28bf 100644 --- a/hotstuff.go +++ b/hotstuff.go @@ -131,7 +131,7 @@ type QuorumCert interface { BlockHash() Hash } -// Signer implements the methods requried to create signatures and certificates. +// Signer implements the methods required to create signatures and certificates. type Signer interface { // Sign signs a single block and returns the partial certificate. Sign(block *Block) (cert PartialCert, err error)