-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #100 from confio/stable-block-headers-in-ci
Stable block headers in ci
- Loading branch information
Showing
22 changed files
with
90 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
scripts/simapp/template/.simapp/366f3df3597b75f4e8dcee258fa0b071022cc022.address
This file was deleted.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
scripts/simapp/template/.simapp/b3f8b0f41eb336f4a070d1992ab11752005632e2.address
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMS0wMy0xMCAxNTozNTozOS45NDU5NjcwMDkgKzAwMDAgVVRDIG09KzAuMDk0MzUwNjQzIiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiOE1ENkJqLS15Qk9FSEJuXyJ9.WuJqyfG5VB98XESmeAAd7Qe4frsztVuuSoH5DW8Ui6dOdx2G2rrACw.kRzQVEC3Ob5chLSR.aDu11cwxY86tdg_AygsylzqYp6iRNxnovBtcITdzMU0D3z0SaOkjgfzxFceplC_vn21VsqFQ-vriW8Z8RQ4xT3Vueegef-DpfhwMkIGd0JsaqlGaC3wd8robkKjOirSY0u7AhjqRFtKNhoOy9wmJaxWIbjduMN9OH48NqzxM8IqjdXllojurwwjJet-mv5BUulxd-MenX9_1UXfJD_chInVrE1ylMLFGR5xrsRJ6pt8MjoqI2fNeH_2z.eG5pKBrkHy8OO91Aj793Bw |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
.../simapp/template/.simapp/config/gentx/gentx-55709ce4b190d810f266c2ab07ce99a8883b846f.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"body":{"messages":[{"@type":"/cosmos.staking.v1beta1.MsgCreateValidator","description":{"moniker":"simd-moniker","identity":"","website":"","security_contact":"","details":""},"commission":{"rate":"0.100000000000000000","max_rate":"0.200000000000000000","max_change_rate":"0.010000000000000000"},"min_self_delegation":"1","delegator_address":"cosmos1k0utpaq7kvm0fgrs6xvj4vgh2gq9vvhzl4rg7p","validator_address":"cosmosvaloper1k0utpaq7kvm0fgrs6xvj4vgh2gq9vvhz6phajj","pubkey":{"@type":"/cosmos.crypto.ed25519.PubKey","key":"TP4DgQaFWjKKxp+DFkvoA89VXdk9E/CBO9g16Pc+fsA="},"value":{"denom":"ustake","amount":"3000000"}}],"memo":"55709ce4b190d810f266c2ab07ce99a8883b846f@172.17.0.2:26656","timeout_height":"0","extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[{"public_key":{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"A8zRRptdU4iURW4V9ZT4NdlHmrAjBGCInbBE/v4C03Cu"},"mode_info":{"single":{"mode":"SIGN_MODE_DIRECT"}},"sequence":"0"}],"fee":{"amount":[],"gas_limit":"200000","payer":"","granter":""}},"signatures":["w4uHdKCyWX0v9kT5+4aLp6X91X3lhNe47IxcwZGC0CURg3Gr10YNjpC6uddXvkpP3RmWhdvM7mvsuoo3G525NA=="]} |
1 change: 0 additions & 1 deletion
1
.../simapp/template/.simapp/config/gentx/gentx-d39b635fce85d35c65813a6899c375e2efdd8212.json
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"TRFjcA/FLd+DfnB+cyS5cB+cgP37AnDVjIQc6H7KX1L8AofJlXA4H5GIcNaMd43cAxYwZOR8TjYRM3RFi1X5/Q=="}} | ||
{"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"SlaMxwrURsTgt1npmAVf89+2cX2+OmgaaTMJmA4YbMzg5jn12CvQ1CcvoQRjcUsW/ma/xVSZbOd7OrRCjOMy0Q=="}} |
6 changes: 3 additions & 3 deletions
6
scripts/simapp/template/.simapp/config/priv_validator_key.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
{ | ||
"address": "0662C4AFEC30214207EB9E8198902C8164476440", | ||
"address": "DA9FE299B5ED6AB145DB1DE192C4D4A920E03C1D", | ||
"pub_key": { | ||
"type": "tendermint/PubKeyEd25519", | ||
"value": "QNZE8wAsI9mHP3QEBga9AZ4wuehdjIgzdnDEDv5gmR0=" | ||
"value": "TP4DgQaFWjKKxp+DFkvoA89VXdk9E/CBO9g16Pc+fsA=" | ||
}, | ||
"priv_key": { | ||
"type": "tendermint/PrivKeyEd25519", | ||
"value": "CN1o3NQb42cbxL1ofNPyQ8Op9qnbeFX+3CBFWxbswAlA1kTzACwj2Yc/dAQGBr0BnjC56F2MiDN2cMQO/mCZHQ==" | ||
"value": "V5p6K3kYrM+ZJ1Qwu9lyn5Bvx5fuYAfXCpr+uDMcQVFM/gOBBoVaMorGn4MWS+gDz1Vd2T0T8IE72DXo9z5+wA==" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
$2a$10$Yj6qu35kxkIeNO0p1lcG5Obj..fe9mvp5VgD2Q3galiX/PvOkzHW. | ||
$2a$10$F4jP.tpLb2nc0FWuO8KX1e6kL2.iZrZV4lwgilCl/rUOSpPk7ZyyS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMS0wMy0wOCAxNDozNDozNC4yMDY3OTgzMzcgKzAwMDAgVVRDIG09KzAuMTAyNjgzODgwIiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiaTJiYm44aHRseVN0ck9xVyJ9.0UpcXTMfvSxjtcVv3I11o2D7jdo3oMlhXeSv4mZEXvpRWOs62PV6_g.FkDgJ_PIUCHy_LYt.-wColJPADEsjQ9mFnhG0Sln_5ULSMK0W9CBilhfYl1BCEHf3G0hLsV4bXIs6AHMn9C84OLhclUdp_UVf9v5Qgs8K8Hea8mSjyYIrbwkJAJ03V3ZXPmY7Ce8aWs1RtsmLUOEJXGPtfa96gvGtjuMU6dLyLanu_B6ygUzjnc0-smv9DSw-aHr3wWnZLe8KGNLbx7oJOPTbR-FWwip2teowMDLNfz5iXI16qQg1crmgNLLr2Mu674odletqNCeYOFY5C4vXSCR-PuuAZB4rttrp75llc6MIn9FA_MTnvrjWiv5zxuxqcKHWFh-ccCbT-py832Wfn5dPkr32lzRV2iehE49EQanDFH-EAeitJzOpcP4Au4hF.4ES5oMCnxte0ElojzjYDxg | ||
eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMS0wMy0xMCAxNTozNTozOS45NDE4ODg0MzEgKzAwMDAgVVRDIG09KzAuMDkwMjcyMDg1IiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiT3d3Rm5hbU9xMnB4RVhEUiJ9.0o_Je_yulaEEdml1n1TlnzcEwu52A7DJ3FvQPZ5_FhYWmgIP41CzQw.yL9ugvLKh4jUxR22.dEM-c_XPFpCoZQ0yEi_W4q7maewYdX_r4DSm_MgfkALvIPkTA4Krtkrdu8WG6POKjL2x4sfVMeMbOqmXbaP3QETlkC7z8Ld4o_PyAgd9-WA-W53QJEp4HYr8pFkJp3ENuxQRr5QzpnxloK6CQ5F2Tyd71Zv9xkER0XKksydVoTvd-4bp3KSf2xaXQdLrJqMtpwS0vHZ-FfBW3VCTEa7rPaFdzMQI6KNiS2uNNyRaWxZLHkLxWk_mEGjNf-6MFoTAf2iwb5E2TiRvC1FhUSY47Cx_mzrrOgj5KOjeLATht7Cc6UNGP5jjpLgwtzX6iz86pSX7GQbMmH-07yOUm4Y-2Wrjf4jo28fQTG0e3aVdbfunXP5d.mQqpr04f2hGJEXaGR6pZVg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/sh | ||
#set -o errexit -o nounset -o pipefail | ||
|
||
PASSWORD=${PASSWORD:-1234567890} | ||
STAKE=${STAKE_TOKEN:-ustake} | ||
FEE=${FEE_TOKEN:-ucosm} | ||
CHAIN_ID=${CHAIN_ID:-testing} | ||
MONIKER=${MONIKER:-node001} | ||
|
||
wasmd init --chain-id "$CHAIN_ID" "$MONIKER" | ||
# staking/governance token is hardcoded in config, change this | ||
sed -i "s/\"stake\"/\"$STAKE\"/" "$HOME"/.wasmd/config/genesis.json | ||
# this is essential for sub-1s block times (or header times go crazy) | ||
sed -i 's/"time_iota_ms": "1000"/"time_iota_ms": "10"/' "$HOME"/.wasmd/config/genesis.json | ||
|
||
if ! wasmd keys show validator; then | ||
(echo "$PASSWORD"; echo "$PASSWORD") | wasmd keys add validator | ||
fi | ||
# hardcode the validator account for this instance | ||
echo "$PASSWORD" | wasmd add-genesis-account validator "1000000000$STAKE,1000000000$FEE" | ||
|
||
# (optionally) add a few more genesis accounts | ||
for addr in "$@"; do | ||
echo $addr | ||
wasmd add-genesis-account "$addr" "1000000000$STAKE,1000000000$FEE" | ||
done | ||
|
||
# submit a genesis validator tx | ||
## Workraround for https://github.com/cosmos/cosmos-sdk/issues/8251 | ||
(echo "$PASSWORD"; echo "$PASSWORD"; echo "$PASSWORD") | wasmd gentx validator "250000000$STAKE" --chain-id="$CHAIN_ID" --amount="250000000$STAKE" | ||
## should be: | ||
# (echo "$PASSWORD"; echo "$PASSWORD"; echo "$PASSWORD") | wasmd gentx validator "250000000$STAKE" --chain-id="$CHAIN_ID" | ||
wasmd collect-gentxs |
1 change: 1 addition & 0 deletions
1
scripts/wasmd/template/.wasmd/48f8006f4b3facd12af4b186331861119efc97c5.address
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMS0wMy0xMCAxNTo1NDo1My45NDQ5OTQyMTEgKzAwMDAgVVRDIG09KzAuMDk0ODY5MTU1IiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiRGd5cUxsMXlUbnIxVTE0QSJ9.HrC0vdXsaG09MLmPanGGh4OjwWeN_Z8LYdD13_gIlgtHAErkq-BNmQ.SLcgh1o1JYlC4Wox.6MD_HwIH5ber5XVdsdbKXyOhwR8g47PKbA4BhZ8F2kAQ73rdcadHf8tMrw9E2q_Fx_sDIn58Fxx3VrRAhrDZ7dyWBMk3Hi828Fn495Z6jzQkOrpE7c0hV8tZPZ9ocVEO_raynE0hAE8Y2tEVpqQr6MpRC-sNNf8pN2fBFp8R8fS3dJNC-Be9LFts0fB5eV-dJ40p5r7VfMArZLeum6EDfLY27eXuCvKDmgmJgyHYq48fkCcxiybtD84e.mLBRNAGl1HHcnVJ-PRaFUA |
1 change: 0 additions & 1 deletion
1
scripts/wasmd/template/.wasmd/8a0ef791ebea0b46d9042d7f9e866a55bcefe061.address
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.