diff --git a/docs/architecture/adr-020-protobuf-transaction-encoding.md b/docs/architecture/adr-020-protobuf-transaction-encoding.md index 2efe583cf..b5333bacc 100644 --- a/docs/architecture/adr-020-protobuf-transaction-encoding.md +++ b/docs/architecture/adr-020-protobuf-transaction-encoding.md @@ -222,7 +222,7 @@ Signature verifiers do: - Pull account number and sequence from the state. - Obtain the public key either from state or `AuthInfo`'s `signer_infos`. - Create a `SignDoc` and serialize it using [ADR 027](./adr-027-deterministic-protobuf-serialization.md). - - Verify the signature at the the same list position against the serialized `SignDoc`. + - Verify the signature at the same list position against the serialized `SignDoc`. #### `SIGN_MODE_LEGACY_AMINO` diff --git a/docs/basics/tx-lifecycle.md b/docs/basics/tx-lifecycle.md index fa51eef1c..74c382af6 100644 --- a/docs/basics/tx-lifecycle.md +++ b/docs/basics/tx-lifecycle.md @@ -117,7 +117,7 @@ nodes and add it to the Mempool so that the `Tx` becomes a candidate to be inclu The **mempool** serves the purpose of keeping track of transactions seen by all full-nodes. Full-nodes keep a **mempool cache** of the last `mempool.cache_size` transactions they have seen, as a first line of defense to prevent replay attacks. Ideally, `mempool.cache_size` is large enough to encompass all -of the transactions in the full mempool. If the the mempool cache is too small to keep track of all +of the transactions in the full mempool. If the mempool cache is too small to keep track of all the transactions, `CheckTx` is responsible for identifying and rejecting replayed transactions. Currently existing preventative measures include fees and a `sequence` (nonce) counter to distinguish diff --git a/types/rest/rest.go b/types/rest/rest.go index 4810cc9c9..91d9ed817 100644 --- a/types/rest/rest.go +++ b/types/rest/rest.go @@ -132,7 +132,7 @@ func (br BaseReq) ValidateBasic(w http.ResponseWriter) bool { return true } -// ReadRESTReq reads and unmarshals a Request's body to the the BaseReq struct. +// ReadRESTReq reads and unmarshals a Request's body to the BaseReq struct. // Writes an error response to ResponseWriter and returns false if errors occurred. func ReadRESTReq(w http.ResponseWriter, r *http.Request, cdc *codec.LegacyAmino, req interface{}) bool { body, err := ioutil.ReadAll(r.Body) diff --git a/x/auth/tx/sigs.go b/x/auth/tx/sigs.go index e2d5d63a6..7d4716ace 100644 --- a/x/auth/tx/sigs.go +++ b/x/auth/tx/sigs.go @@ -89,7 +89,7 @@ func ModeInfoAndSigToSignatureData(modeInfo *tx.ModeInfo, sig []byte) (signing.S } } -// decodeMultisignatures safely decodes the the raw bytes as a MultiSignature protobuf message +// decodeMultisignatures safely decodes the raw bytes as a MultiSignature protobuf message func decodeMultisignatures(bz []byte) ([][]byte, error) { multisig := cryptotypes.MultiSignature{} err := multisig.Unmarshal(bz)