docs: fix duplicate words throughout documentation files (#24981)
This commit is contained in:
@@ -43,7 +43,7 @@ The MsgChangePubKey transaction needs to be signed by the existing pubkey in sta
|
||||
|
||||
Once, approved, the handler for this message type, which takes in the AccountKeeper, will update the in-state pubkey for the account and replace it with the pubkey from the Msg.
|
||||
|
||||
An account that has had its pubkey changed cannot be automatically pruned from state. This is because if pruned, the original pubkey of the account would be needed to recreate the same address, but the owner of the address may not have the original pubkey anymore. Currently, we do not automatically prune any accounts anyways, but we would like to keep this option open the road (this is the purpose of account numbers). To resolve this, we charge an additional gas fee for this operation to compensate for this this externality (this bound gas amount is configured as parameter `PubKeyChangeCost`). The bonus gas is charged inside the handler, using the `ConsumeGas` function. Furthermore, in the future, we can allow accounts that have rekeyed manually prune themselves using a new Msg type such as `MsgDeleteAccount`. Manually pruning accounts can give a gas refund as an incentive for performing the action.
|
||||
An account that has had its pubkey changed cannot be automatically pruned from state. This is because if pruned, the original pubkey of the account would be needed to recreate the same address, but the owner of the address may not have the original pubkey anymore. Currently, we do not automatically prune any accounts anyways, but we would like to keep this option open the road (this is the purpose of account numbers). To resolve this, we charge an additional gas fee for this operation to compensate for this externality (this bound gas amount is configured as parameter `PubKeyChangeCost`). The bonus gas is charged inside the handler, using the `ConsumeGas` function. Furthermore, in the future, we can allow accounts that have rekeyed manually prune themselves using a new Msg type such as `MsgDeleteAccount`. Manually pruning accounts can give a gas refund as an incentive for performing the action.
|
||||
|
||||
```go
|
||||
amount := ak.GetParams(ctx).PubKeyChangeCost
|
||||
|
||||
@@ -275,7 +275,7 @@ Examples:
|
||||
The number 35 was chosen because it is the longest length where the hashed-and-prefixed representation is longer than the original data directly formatted, using the 3 rules above. More specifically:
|
||||
|
||||
* a 35-byte array will have 70 hex characters, plus 17 space characters, resulting in 87 characters.
|
||||
* byte arrays starting from length 36 will be be hashed to 32 bytes, which is 64 hex characters plus 15 spaces, and with the `SHA-256=` prefix, it takes 87 characters.
|
||||
* byte arrays starting from length 36 will be hashed to 32 bytes, which is 64 hex characters plus 15 spaces, and with the `SHA-256=` prefix, it takes 87 characters.
|
||||
Also, secp256k1 public keys have length 33, so their Textual representation is not their hashed value, which we would like to avoid.
|
||||
|
||||
Note: Data longer than 35 bytes are not rendered in a way that can be inverted. See ADR-050's [section about invertability](./adr-050-sign-mode-textual.md#invertible-rendering) for a discussion.
|
||||
|
||||
@@ -42,7 +42,7 @@ until `Commit()` is called on the `CommitMultiStore`.
|
||||
|
||||
### `CommitMultiStore`
|
||||
|
||||
The `CommitMultiStore` interface exposes the the top-level interface that is used
|
||||
The `CommitMultiStore` interface exposes the top-level interface that is used
|
||||
to manage state commitment and storage by an SDK application and abstracts the
|
||||
concept of multiple `KVStore`s which are used by multiple modules. Specifically,
|
||||
it supports the following high-level primitives:
|
||||
@@ -53,7 +53,7 @@ it supports the following high-level primitives:
|
||||
* Allows for loading state storage at a particular height/version in the past to
|
||||
provide current head and historical queries.
|
||||
* Provides the ability to rollback state to a previous height/version.
|
||||
* Provides the ability to to load state storage at a particular height/version
|
||||
* Provides the ability to load state storage at a particular height/version
|
||||
while also performing store upgrades, which are used during live hard-fork
|
||||
application state migrations.
|
||||
* Provides the ability to commit all current accumulated state to disk and performs
|
||||
|
||||
@@ -591,7 +591,7 @@ simd tx vesting --help
|
||||
|
||||
#### create-periodic-vesting-account
|
||||
|
||||
The `create-periodic-vesting-account` command creates a new vesting account funded with an allocation of tokens, where a sequence of coins and period length in seconds. Periods are sequential, in that the duration of of a period only starts at the end of the previous period. The duration of the first period starts upon account creation.
|
||||
The `create-periodic-vesting-account` command creates a new vesting account funded with an allocation of tokens, where a sequence of coins and period length in seconds. Periods are sequential, in that the duration of a period only starts at the end of the previous period. The duration of the first period starts upon account creation.
|
||||
|
||||
```bash
|
||||
simd tx vesting create-periodic-vesting-account [to_address] [periods_json_file] [flags]
|
||||
|
||||
+1
-1
@@ -91,7 +91,7 @@ Reset is called by an authorized account to enable execution for a specific msgU
|
||||
|
||||
```protobuf
|
||||
// ResetCircuitBreaker resumes processing of Msg's in the state machine that
|
||||
// have been been paused using TripCircuitBreaker.
|
||||
// have been paused using TripCircuitBreaker.
|
||||
rpc ResetCircuitBreaker(MsgResetCircuitBreaker) returns (MsgResetCircuitBreakerResponse);
|
||||
```
|
||||
|
||||
|
||||
@@ -55,4 +55,4 @@ Ref: https://keepachangelog.com/en/1.0.0/
|
||||
|
||||
* [#15606](https://github.com/cosmos/cosmos-sdk/pull/15606) `NewKeeper` now takes a `KVStoreService` instead of a `StoreKey` and methods in the `Keeper` now take a `context.Context` instead of a `sdk.Context`.
|
||||
* [#15347](https://github.com/cosmos/cosmos-sdk/pull/15347) Remove global bech32 usage in keeper.
|
||||
* [#15347](https://github.com/cosmos/cosmos-sdk/pull/15347) `ValidateBasic` is treated as a no op now with with acceptance of RFC001
|
||||
* [#15347](https://github.com/cosmos/cosmos-sdk/pull/15347) `ValidateBasic` is treated as a no op now with acceptance of RFC001
|
||||
|
||||
+1
-1
@@ -1092,7 +1092,7 @@ where `proposal.json` contains:
|
||||
"messages": [
|
||||
{
|
||||
"@type": "/cosmos.bank.v1beta1.MsgSend",
|
||||
"from_address": "cosmos1...", // The gov module module address
|
||||
"from_address": "cosmos1...", // The gov module address
|
||||
"to_address": "cosmos1...",
|
||||
"amount":[{"denom": "stake","amount": "10"}]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user