diff --git a/bft/msg.go b/bft/msg.go index 3145681276..3e75c72e26 100644 --- a/bft/msg.go +++ b/bft/msg.go @@ -13,7 +13,7 @@ func (b *BFT) HandleMessage(message proto.Message) lib.ErrorI { // ensure is a valid `Consensus Message` type switch msg := message.(type) { case *Message: - // capture the paramters needed to validate the message + // capture the parameters needed to validate the message params, err := b.GetValidateMessageParams(msg) if err != nil { return err diff --git a/fsm/validator.go b/fsm/validator.go index 6132d21ee8..e029339bdc 100644 --- a/fsm/validator.go +++ b/fsm/validator.go @@ -188,7 +188,7 @@ func (s *StateMachine) SetValidators(validators []*Validator, supply *Supply) li // SetValidator() upserts a Validator object into the state func (s *StateMachine) SetValidator(validator *Validator) (err lib.ErrorI) { - // covert the validator object to bytes + // convert the validator object to bytes bz, err := s.marshalValidator(validator) if err != nil { return diff --git a/lib/certificate.go b/lib/certificate.go index 8e39c81e13..bbe4694e6c 100644 --- a/lib/certificate.go +++ b/lib/certificate.go @@ -260,7 +260,7 @@ func (x *QuorumCertificate) GetNonSigners(vs *ConsensusValidators) (nonSignerPub // exit with empty qc error return nil, 0, ErrEmptyQuorumCertificate() } - // retrieve the non-signers from the signature using teh validator set + // retrieve the non-signers from the signature using the validator set return x.Signature.GetNonSigners(vs) } diff --git a/lib/crypto/address_test.go b/lib/crypto/address_test.go index 756eea3010..aecaa643f1 100644 --- a/lib/crypto/address_test.go +++ b/lib/crypto/address_test.go @@ -15,7 +15,7 @@ func TestAddress(t *testing.T) { require.NoError(t, err) // cast the public key to bytes addressBytes := Hash(public)[:20] - // covert to an address object + // convert to an address object address := NewAddress(addressBytes) // validate string function require.Equal(t, address.String(), hex.EncodeToString(addressBytes)) diff --git a/lib/metrics.go b/lib/metrics.go index f510aa58d8..0a19deae79 100644 --- a/lib/metrics.go +++ b/lib/metrics.go @@ -58,7 +58,7 @@ const metricsPattern = "/metrics" type Metrics struct { server *http.Server // the http prometheus server chainID float64 // the chain id the node is running - softwareVersion string // the sofware version the node is running + softwareVersion string // the software version the node is running config MetricsConfig // the configuration nodeAddress []byte // the node's address log LoggerI // the logger diff --git a/store/README.md b/store/README.md index 24fc947070..8c27413a19 100644 --- a/store/README.md +++ b/store/README.md @@ -46,7 +46,7 @@ In Canopy's store's module: The store package is built from several key components that work together, like building blocks, to create a complete storage system. It could be represented like a well-organized filing cabinet, -where each component has a specific job in managing and storing data. Each compoent from the +where each component has a specific job in managing and storing data. Each component from the simplest to the most complex is described as follows: 1. **`Txn`**: Database transaction manager and BadgerDB bridge