diff --git a/app/split_shares.go b/app/split_shares.go index 9b5631b2b3..4f1ce2716d 100644 --- a/app/split_shares.go +++ b/app/split_shares.go @@ -210,7 +210,7 @@ func (sqwr *shareSplitter) hasRoomForBoth(tx, msg []byte) bool { txBytesTaken := types.DelimLen(uint64(len(tx))) + len(tx) - maxTxSharesTaken := ((txBytesTaken - availableBytes) / consts.TxShareSize) + 1 // plus one becuase we have to add at least one share + maxTxSharesTaken := ((txBytesTaken - availableBytes) / consts.TxShareSize) + 1 // plus one because we have to add at least one share maxMsgSharesTaken := types.MsgSharesUsed(len(msg)) @@ -225,7 +225,7 @@ func (sqwr *shareSplitter) hasRoomForTx(tx []byte) bool { return true } - maxSharesTaken := ((bytesTaken - availableBytes) / consts.TxShareSize) + 1 // plus one becuase we have to add at least one share + maxSharesTaken := ((bytesTaken - availableBytes) / consts.TxShareSize) + 1 // plus one because we have to add at least one share return currentShareCount+maxSharesTaken <= sqwr.maxShareCount } diff --git a/x/payment/types/builder.go b/x/payment/types/builder.go index 8a2818d47c..1a0bcbf08b 100644 --- a/x/payment/types/builder.go +++ b/x/payment/types/builder.go @@ -38,7 +38,7 @@ func NewKeyringSigner(ring keyring.Keyring, name string, chainID string) *Keyrin } } -// QueryAccountNumber queries the applicaiton to find the latest account number and +// QueryAccountNumber queries the application to find the latest account number and // sequence, updating the respective internal fields. The internal account number must // be set by this method or by manually calling k.SetAccountNumber in order for any built // transactions to be valide diff --git a/x/payment/types/events.go b/x/payment/types/events.go index bb5b573a57..2026285898 100644 --- a/x/payment/types/events.go +++ b/x/payment/types/events.go @@ -13,7 +13,7 @@ const ( AttributeKeySize = "size" ) -//NewPayForDataEvent construt a new payformessge sdk.Event +//NewPayForDataEvent constructs a new payformessge sdk.Event func NewPayForDataEvent(signer string, size uint64) sdk.Event { return sdk.NewEvent( EventTypePayForData, diff --git a/x/payment/types/payfordata.go b/x/payment/types/payfordata.go index c32916c3c3..9d4edb0e83 100644 --- a/x/payment/types/payfordata.go +++ b/x/payment/types/payfordata.go @@ -160,7 +160,7 @@ func CreateCommitment(k uint64, namespace, message []byte) ([]byte, error) { } // powerOf2MountainRange returns the heights of the subtrees for binary merkle -// mountian range +// mountain range func powerOf2MountainRange(l, k uint64) []uint64 { var output []uint64