From a1540bda67773f1bf94e6af49772d1a3073ee298 Mon Sep 17 00:00:00 2001 From: Prathamesh Musale Date: Mon, 19 Aug 2024 11:21:21 +0530 Subject: [PATCH] Update slashing module params --- .../stacks/fixturenet-laconicd/scripts/genesis.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/stack-orchestrator/stacks/fixturenet-laconicd/scripts/genesis.sh b/stack-orchestrator/stacks/fixturenet-laconicd/scripts/genesis.sh index 7666592..3b65855 100755 --- a/stack-orchestrator/stacks/fixturenet-laconicd/scripts/genesis.sh +++ b/stack-orchestrator/stacks/fixturenet-laconicd/scripts/genesis.sh @@ -23,6 +23,13 @@ jq --argjson p "$participants" '.app_state.onboarding.participants = $p' "$stage # Disable bank module transfers # jq '.app_state["bank"]["params"]["default_send_enabled"]=false' "$stage1_genesis_file" > tmp.$$.json && mv tmp.$$.json "$stage1_genesis_file" +# Update staking module params +jq '.app_state["staking"]["params"]["max_validators"]=100' "$stage1_genesis_file" > tmp.$$.json && mv tmp.$$.json "$stage1_genesis_file" + +# Update slashing module params +jq '.app_state["slashing"]["params"]["signed_blocks_window"]="2400"' "$stage1_genesis_file" > tmp.$$.json && mv tmp.$$.json "$stage1_genesis_file" +jq '.app_state["slashing"]["params"]["min_signed_per_window"]="0.5"' "$stage1_genesis_file" > tmp.$$.json && mv tmp.$$.json "$stage1_genesis_file" + # Read and assign allocations jq -c '.[]' "$stage1_allocations_file" | while IFS= read -r line; do cosmos_address=$(jq -r '.cosmos_address' <<< "$line")