Skip to content

Commit

Permalink
fix: default config and genesis demon (#465)
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeNinjaX authored Jun 25, 2024
1 parent 088f265 commit d9c9824
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion server/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ func DefaultConfig() *Config {
GlobalLabels: [][]string{},
},
API: APIConfig{
Enable: false,
Enable: true,
Swagger: false,
Address: DefaultAPIAddress,
MaxOpenConnections: 1000,
Expand Down
2 changes: 1 addition & 1 deletion server/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ func interceptConfigs(rootViper *viper.Viper, customAppTemplate string, customCo
// The SDK is opinionated about those comet values, so we set them here.
// We verify first that the user has not changed them for not overriding them.
if conf.Consensus.TimeoutCommit == defaultCometCfg.Consensus.TimeoutCommit {
conf.Consensus.TimeoutCommit = 5 * time.Second
conf.Consensus.TimeoutCommit = 500 * time.Millisecond
}
if conf.RPC.PprofListenAddress == defaultCometCfg.RPC.PprofListenAddress {
conf.RPC.PprofListenAddress = "localhost:6060"
Expand Down
2 changes: 1 addition & 1 deletion types/staking.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const ValidatorUpdateDelay int64 = 1
var (
// DefaultBondDenom is the default bondable coin denomination (defaults to stake)
// Overwriting this value has the side effect of changing the default denomination in genesis
DefaultBondDenom = "stake"
DefaultBondDenom = "uart"

// DefaultPowerReduction is the default amount of staking tokens required for 1 unit of consensus-engine power
DefaultPowerReduction = NewIntFromUint64(1000000)
Expand Down
2 changes: 1 addition & 1 deletion x/authz/simulation/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func genGrant(r *rand.Rand, accounts []simtypes.Account, genT time.Time) []authz

func generateRandomGrant(r *rand.Rand) *codectypes.Any {
authorizations := make([]*codectypes.Any, 2)
sendAuthz := banktypes.NewSendAuthorization(sdk.NewCoins(sdk.NewCoin("stake", sdk.NewInt(1000))), nil)
sendAuthz := banktypes.NewSendAuthorization(sdk.NewCoins(sdk.NewCoin("uart", sdk.NewInt(1000))), nil)
authorizations[0] = newAnyAuthorization(sendAuthz)
authorizations[1] = newAnyAuthorization(authz.NewGenericAuthorization(sdk.MsgTypeURL(&v1.MsgSubmitProposal{})))

Expand Down
4 changes: 2 additions & 2 deletions x/feegrant/simulation/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ func genFeeGrants(r *rand.Rand, accounts []simtypes.Account) []feegrant.Grant {

func generateRandomAllowances(granter, grantee sdk.AccAddress, r *rand.Rand) feegrant.Grant {
allowances := make([]feegrant.Grant, 3)
spendLimit := sdk.NewCoins(sdk.NewCoin("stake", sdk.NewInt(100)))
periodSpendLimit := sdk.NewCoins(sdk.NewCoin("stake", sdk.NewInt(10)))
spendLimit := sdk.NewCoins(sdk.NewCoin("art", sdk.NewInt(100)))
periodSpendLimit := sdk.NewCoins(sdk.NewCoin("art", sdk.NewInt(10)))

basic := feegrant.BasicAllowance{
SpendLimit: spendLimit,
Expand Down
6 changes: 3 additions & 3 deletions x/gov/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,13 @@ Where proposal.json contains:
"@type": "/cosmos.bank.v1beta1.MsgSend",
"from_address": "cosmos1...",
"to_address": "cosmos1...",
"amount":[{"denom": "stake","amount": "10"}]
"amount":[{"denom": "art","amount": "10"}]
}
],
// metadata can be any of base64 encoded, raw text, stringified json, IPFS link to json
// see below for example metadata
"metadata: "4pIMOgIGx1vZGU=",
"deposit": "10stake"
"deposit": "10art"
"title: "My proposal"
"summary": "A short summary of my proposal"
}
Expand Down Expand Up @@ -230,7 +230,7 @@ func NewCmdDeposit() *cobra.Command {
find the proposal-id by running "%s query gov proposals".
Example:
$ %s tx gov deposit 1 10stake --from mykey
$ %s tx gov deposit 1 10art --from mykey
`,
version.AppName, version.AppName,
),
Expand Down
4 changes: 2 additions & 2 deletions x/group/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -565,9 +565,9 @@ Parameters:
"@type": "/cosmos.bank.v1beta1.MsgSend",
"from_address": "cosmos1...",
"to_address": "cosmos1...",
"amount":[{"denom": "stake","amount": "10"}]
"amount":[{"denom": "art","amount": "10"}]
"title": "My proposal",
"summary": "This is a proposal to send 10 stake to cosmos1...",
"summary": "This is a proposal to send 10 art to cosmos1...",
}
],
// metadata can be any of base64 encoded, raw text, stringified json, IPFS link to json
Expand Down

0 comments on commit d9c9824

Please sign in to comment.