Skip to content

Commit

Permalink
update init defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
jhernandezb committed Jan 31, 2025
1 parent 97713e8 commit 66b09b0
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 9 deletions.
12 changes: 6 additions & 6 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ steps:
password:
from_secret: docker_password
tags:
- 15.0.0-alpha.7
- 15.0.0-alpha.8
when:
event:
- push
Expand Down Expand Up @@ -315,7 +315,7 @@ steps:
environment:
GOPROXY: http://goproxy
- name: stargaze
image: publicawesome/stargaze:14.0.0-rc.2
image: publicawesome/stargaze:14.0.0
commands:
- ./scripts/ci/upgrade/setup-preinstalled-stargaze.sh
environment:
Expand Down Expand Up @@ -348,12 +348,12 @@ steps:
commands:
- /bin/bash ./scripts/ci/transfer-relayer-v1.7.sh
- name: proposal
image: publicawesome/stargaze:14.0.0-rc.2
image: publicawesome/stargaze:14.0.0
commands:
- ./scripts/ci/upgrade/proposal.sh
- name: stargaze-upgraded
pull: always
image: publicawesome/stargaze:15.0.0-alpha.7
image: publicawesome/stargaze:15.0.0-alpha.8
commands:
- ./scripts/ci/upgrade/run-upgrade.sh
environment:
Expand All @@ -372,7 +372,7 @@ steps:
- http://icad:26657
- name: check-params
pull: always
image: publicawesome/stargaze:15.0.0-alpha.7
image: publicawesome/stargaze:15.0.0-alpha.8
commands:
- starsd q mint params --node http://stargaze-upgraded:26657
- starsd q alloc params --node http://stargaze-upgraded:26657
Expand Down Expand Up @@ -424,6 +424,6 @@ volumes:

---
kind: signature
hmac: 556584e395ad80e6ba22597ba36bbd28b6fbfe44a2e9fe5f2510ee875ff74ec6
hmac: 1fa82bda77a029c13e98d30cc649d792cca23ee1eeb77f7297722b087330db85

...
2 changes: 1 addition & 1 deletion app/params/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func DefaultConfig() (string, interface{}) {

wasmConfig.SimulationGasLimit = &simulationLimit
wasmConfig.SmartQueryGasLimit = 25_000_000
wasmConfig.MemoryCacheSize = 512
wasmConfig.MemoryCacheSize = 1024
wasmConfig.ContractDebugMode = false

customConfig := CustomAppConfig{
Expand Down
3 changes: 3 additions & 0 deletions cmd/starsd/cmd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"fmt"
"os"
"path/filepath"
"time"

"cosmossdk.io/math/unsafe"
cfg "github.com/cometbft/cometbft/config"
Expand Down Expand Up @@ -178,6 +179,8 @@ func InitCmd(mbm module.BasicManager, defaultNodeHome string) *cobra.Command {

toPrint := newPrintInfo(config.Moniker, chainID, nodeID, "", appState)

config.Consensus.TimeoutCommit = 2750 * time.Millisecond
config.Consensus.TimeoutPropose = 1750 * time.Millisecond
cfg.WriteConfigFile(filepath.Join(config.RootDir, "config", "config.toml"), config)
return displayInfo(toPrint)
},
Expand Down
2 changes: 1 addition & 1 deletion scripts/ci/upgrade/proposal.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ starsd q distribution community-pool --node http://stargaze:26657
HEIGHT=$(starsd status --node http://stargaze:26657 --home $STARGAZE_HOME | jq .SyncInfo.latest_block_height -r)

echo "current height $HEIGHT"
HEIGHT=$(expr $HEIGHT + 450)
HEIGHT=$(expr $HEIGHT + 700)
echo "submit with height $HEIGHT"
cat <<EOT >> proposal.json
{
Expand Down
2 changes: 1 addition & 1 deletion scripts/ci/upgrade/setup-preinstalled-stargaze.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ starsd genesis add-genesis-account stars103y4f6h80lc45nr8chuzr3fyzqywm9n0gnr394
starsd genesis add-genesis-account $(starsd keys --keyring-backend test show funder -a --home $STARGAZE_HOME) 21000000000000$DENOM --home $STARGAZE_HOME
starsd genesis gentx validator 900000000$DENOM --keyring-backend test --chain-id stargaze --home $STARGAZE_HOME
starsd genesis collect-gentxs --home $STARGAZE_HOME
/stargaze/bin/upgrade-watcher starsd start --pruning nothing --home $STARGAZE_HOME --grpc.address 0.0.0.0:9090 --rpc.laddr tcp://0.0.0.0:26657
/stargaze/bin/upgrade-watcher starsd start --pruning nothing --home $STARGAZE_HOME --grpc.address 0.0.0.0:9090 --rpc.laddr tcp://0.0.0.0:26657 --skip-preferred-settings

0 comments on commit 66b09b0

Please sign in to comment.