feat(server/v2): add config & start helper (#20505)

Co-authored-by: marbar3778 <marbar3778@yahoo.com>
Co-authored-by: Marko <marko@baricevic.me>
Co-authored-by: Matt Kocubinski <mkocubinski@gmail.com>
Co-authored-by: Likhita Polavarapu <78951027+likhita-809@users.noreply.github.com>
Co-authored-by: unknown unknown <unknown@unknown>
Co-authored-by: Julien Robert <julien@rbrt.fr>
This commit is contained in:
Hieu Vu
2024-06-19 17:19:57 +00:00
committed by GitHub
co-authored by marbar3778 Marko Matt Kocubinski Likhita Polavarapu unknown unknown Julien Robert
parent 3c13bc03cd
commit 8ab643dc10
25 changed files with 891 additions and 281 deletions
+2 -3
View File
@@ -13,13 +13,12 @@ CONFIG="${CONFIG:-$HOME/.simappv2/config}"
cd "$SIMAPP_DIR"
go build -o "$ROOT/build/simdv2" simdv2/main.go
if [ -d "$($SIMD config home)" ]; then rm -r $($SIMD config home); fi
$SIMD init simapp-v2-node --chain-id simapp-v2-chain
cd "$CONFIG"
# to enable the api server
$SIMD config set app api.enable true
# to change the voting_period
jq '.app_state.gov.voting_params.voting_period = "600s"' genesis.json > temp.json && mv temp.json genesis.json