Skip to content

Commit 4a8bae2

Browse files
committed
Make genesis modifications same across scripts
1 parent e47dd2e commit 4a8bae2

File tree

6 files changed

+16
-24
lines changed

6 files changed

+16
-24
lines changed

deployment/docker/localsecret/bootstrap_init_no_stop.sh

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,24 +26,15 @@ if [ ! -e "$file" ]; then
2626
secretd init banana --chain-id "$chain_id"
2727

2828
cp ~/node_key.json ~/.secretd/config/node_key.json
29-
# jq '
30-
# .consensus_params.block.time_iota_ms = "10" |
31-
# .app_state.staking.params.unbonding_time = "90s" |
32-
# .app_state.gov.voting_params.voting_period = "90s" |
33-
# .app_state.gov.voting_params.expedited_voting_period = "15s" |
34-
# .app_state.crisis.constant_fee.denom = "uscrt" |
35-
# .app_state.gov.deposit_params.min_deposit[0].denom = "uscrt" |
36-
# .app_state.gov.deposit_params.min_expedited_deposit[0].denom = "uscrt" |
37-
# .app_state.mint.params.mint_denom = "uscrt" |
38-
# .app_state.staking.params.bond_denom = "uscrt"
39-
# ' ~/.secretd/config/genesis.json > ~/.secretd/config/genesis.json.tmp && mv ~/.secretd/config/genesis.json{.tmp,}
4029

4130
jq '
42-
.consensus_params.block.time_iota_ms = "10" |
4331
.app_state.staking.params.unbonding_time = "90s" |
44-
.app_state.gov.voting_params.voting_period = "90s" |
32+
.app_state.gov.params.voting_period = "90s" |
33+
.app_state.gov.params.expedited_voting_period = "15s" |
4534
.app_state.crisis.constant_fee.denom = "uscrt" |
4635
.app_state.gov.deposit_params.min_deposit[0].denom = "uscrt" |
36+
.app_state.gov.params.min_deposit[0].denom = "uscrt" |
37+
.app_state.gov.params.expedited_min_deposit[0].denom = "uscrt" |
4738
.app_state.mint.params.mint_denom = "uscrt" |
4839
.app_state.staking.params.bond_denom = "uscrt"
4940
' ~/.secretd/config/genesis.json >~/.secretd/config/genesis.json.tmp && mv ~/.secretd/config/genesis.json{.tmp,}

deployment/docker/localsecret/node_init.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,13 @@ if [ ! -e $GENESIS_file ]; then
4747
cp ~/node_key.json ${SCRT_HOME}/config/node_key.json
4848

4949
jq '
50-
.consensus_params.block.time_iota_ms = "10" |
5150
.app_state.staking.params.unbonding_time = "90s" |
52-
.app_state.gov.voting_params.voting_period = "90s" |
51+
.app_state.gov.params.voting_period = "90s" |
52+
.app_state.gov.params.expedited_voting_period = "15s" |
5353
.app_state.crisis.constant_fee.denom = "uscrt" |
5454
.app_state.gov.deposit_params.min_deposit[0].denom = "uscrt" |
55+
.app_state.gov.params.min_deposit[0].denom = "uscrt" |
56+
.app_state.gov.params.expedited_min_deposit[0].denom = "uscrt" |
5557
.app_state.mint.params.mint_denom = "uscrt" |
5658
.app_state.staking.params.bond_denom = "uscrt"
5759
' ${SCRT_HOME}/config/genesis.json > ${SCRT_HOME}/config/genesis.json.tmp

scripts/start-node.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ if [ $retVal -ne 0 ]; then
5050
fi
5151

5252
cat ${SECRETD_HOME}/config/genesis.json | jq '
53-
.consensus_params.block.time_iota_ms = "10" |
5453
.app_state.staking.params.unbonding_time = "90s" |
55-
.app_state.gov.voting_params.voting_period = "90s" |
54+
.app_state.gov.params.voting_period = "90s" |
55+
.app_state.gov.params.expedited_voting_period = "15s" |
5656
.app_state.crisis.constant_fee.denom = "uscrt" |
5757
.app_state.gov.deposit_params.min_deposit[0].denom = "uscrt" |
5858
.app_state.gov.params.min_deposit[0].denom = "uscrt" |

scripts/start_bootstrap_node.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ if [ ! -e $GENESIS_file ]; then
4545
cat ${SCRT_HOME}/config/genesis.json | sha256sum
4646

4747
cat ${SCRT_HOME}/config/genesis.json | jq '
48-
.consensus_params.block.time_iota_ms = "10" |
4948
.app_state.staking.params.unbonding_time = "90s" |
50-
.app_state.gov.voting_params.voting_period = "90s" |
49+
.app_state.gov.params.voting_period = "90s" |
50+
.app_state.gov.params.expedited_voting_period = "15s" |
5151
.app_state.crisis.constant_fee.denom = "uscrt" |
5252
.app_state.gov.deposit_params.min_deposit[0].denom = "uscrt" |
5353
.app_state.gov.params.min_deposit[0].denom = "uscrt" |

scripts/start_full_node.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ echo "^^^^^^^^^^^ GENESIS ^^^^^^^^^^"
9494
sleep 5s
9595

9696
cat ${SCRT_HOME}/config/genesis.json | jq '
97-
.consensus_params.block.time_iota_ms = "10" |
9897
.app_state.staking.params.unbonding_time = "90s" |
99-
.app_state.gov.voting_params.voting_period = "90s" |
98+
.app_state.gov.params.voting_period = "90s" |
99+
.app_state.gov.params.expedited_voting_period = "15s" |
100100
.app_state.crisis.constant_fee.denom = "uscrt" |
101101
.app_state.gov.deposit_params.min_deposit[0].denom = "uscrt" |
102102
.app_state.gov.params.min_deposit[0].denom = "uscrt" |

x/compute/internal/keeper/testdata/genesis.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
"consensus_params": {
55
"block": {
66
"max_bytes": "22020096",
7-
"max_gas": "-1",
8-
"time_iota_ms": "1000"
7+
"max_gas": "-1"
98
},
109
"evidence": {
1110
"max_age_num_blocks": "100000",
@@ -216,4 +215,4 @@
216215
"exported": false
217216
}
218217
}
219-
}
218+
}

0 commit comments

Comments
 (0)