Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bft/msg.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion fsm/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/certificate.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down
2 changes: 1 addition & 1 deletion lib/crypto/address_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion lib/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion store/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down