* Change account store key in x/bank * Fix pagination test * Fix merge master * Fix staking keys.go * Use bech32 in val state change map * Fix sortNoLongerBonded * Use length-prefix function * Use length prefix function * Fix test accountStore * Fix ExamplePaginate * Fix staking keys * Use shorter balances prefix * Do slashing keys * Fix gov keys * Fix x/gov tests * Fix x/distrib * Address reviews * add change log entry * Add changelog * Fix failing tests * Fix sim tests * fix after-export sim * Fix lint * Address review * Fix x/authz * Fix global config in test * Update x/staking/keeper/val_state_change.go Co-authored-by: Robert Zaremba <robert@zaremba.ch> * Address comments * Fix comments * Address review * Fix authz test * Update comment * Rename to LengthPrefixedAddressStoreKey * Use variable * Rename function * Fix test build * chore: update rosetta CI (#8453) * Rename again * Rename yet again * Update feegrant keys * Add function to create prefix Co-authored-by: Robert Zaremba <robert@zaremba.ch> Co-authored-by: Frojdi Dymylja <33157909+fdymylja@users.noreply.github.com> Co-authored-by: Aaron Craelius <aaron@regen.network> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
60 lines
1.5 KiB
Bash
60 lines
1.5 KiB
Bash
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
wait_simd() {
|
|
timeout 30 sh -c 'until nc -z $0 $1; do sleep 1; done' localhost 9090
|
|
}
|
|
# this script is used to recreate the data dir
|
|
echo clearing /root/.simapp
|
|
rm -rf /root/.simapp
|
|
echo initting new chain
|
|
# init config files
|
|
simd init simd --chain-id testing
|
|
|
|
# create accounts
|
|
simd keys add fd --keyring-backend=test
|
|
|
|
addr=$(simd keys show fd -a --keyring-backend=test)
|
|
val_addr=$(simd keys show fd --keyring-backend=test --bech val -a)
|
|
|
|
# give the accounts some money
|
|
simd add-genesis-account "$addr" 1000000000000stake --keyring-backend=test
|
|
|
|
# save configs for the daemon
|
|
simd gentx fd 10000000stake --chain-id testing --keyring-backend=test
|
|
|
|
# input genTx to the genesis file
|
|
simd collect-gentxs
|
|
# verify genesis file is fine
|
|
simd validate-genesis
|
|
echo changing network settings
|
|
sed -i 's/127.0.0.1/0.0.0.0/g' /root/.simapp/config/config.toml
|
|
|
|
# start simd
|
|
echo starting simd...
|
|
simd start --pruning=nothing &
|
|
pid=$!
|
|
echo simd started with PID $pid
|
|
|
|
echo awaiting for simd to be ready
|
|
wait_simd
|
|
echo simd is ready
|
|
sleep 10
|
|
|
|
|
|
# send transaction to deterministic address
|
|
echo sending transaction with addr $addr
|
|
simd tx bank send "$addr" cosmos1wjmt63j4fv9nqda92nsrp2jp2vsukcke4va3pt 100stake --yes --keyring-backend=test --broadcast-mode=block --chain-id=testing
|
|
|
|
sleep 10
|
|
|
|
echo stopping simd...
|
|
kill -9 $pid
|
|
|
|
echo zipping data dir and saving to /tmp/data.tar.gz
|
|
|
|
tar -czvf /tmp/data.tar.gz /root/.simapp
|
|
|
|
echo new address for bootstrap.json "$addr" "$val_addr"
|