-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chain: retry on db failure #478
Merged
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
40c2c92
init commit
alexanderbez d0c404d
make: add two-chains target
alexanderbez cf4b1c1
chain: patch MustGetLatestLightHeight
alexanderbez ce1b477
lint++
alexanderbez 966f7ae
lint++
alexanderbez b4f3ec8
update scripts
alexanderbez 8cab14f
lint++
alexanderbez 381e45f
lint++
alexanderbez 70b1d37
update script
alexanderbez b5e8a88
github actions++
alexanderbez 792b4c9
github actions++
alexanderbez 3cb72ba
github actions++
alexanderbez f4d675d
github actions++
alexanderbez 641a1a0
github actions++
alexanderbez 619f7d1
github actions++
alexanderbez 718a882
github actions++
alexanderbez d909257
github actions++
alexanderbez 814caff
github actions++
alexanderbez 23082d8
github actions++
alexanderbez 705eec2
github actions++
alexanderbez 3958277
github actions++
alexanderbez 9e33567
github actions++
alexanderbez 06432a0
github actions++
alexanderbez File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,7 @@ release.tar.gz | |
nchainz/ | ||
.idea/ | ||
.csv | ||
chain-code/ | ||
chain-code/ | ||
two-chains/ibc-* | ||
two-chains/.relayer | ||
two-chains/*.log |
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
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 was deleted.
Oops, something went wrong.
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,18 +1,3 @@ | ||
/* | ||
Copyright © 2020 Jack Zampolin [email protected] | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
package main | ||
|
||
import "github.com/cosmos/relayer/cmd" | ||
|
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,9 @@ | ||
{ | ||
"key": "ibc-0-relayer-key", | ||
"chain-id": "ibc-0", | ||
"rpc-addr": "http://localhost:26657", | ||
"account-prefix": "cosmos", | ||
"gas-adjustment": 1.5, | ||
"gas-prices": "0.025uatom", | ||
"trusting-period": "336h" | ||
} |
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,9 @@ | ||
{ | ||
"key": "ibc-1-relayer-key", | ||
"chain-id": "ibc-1", | ||
"rpc-addr": "http://localhost:26667", | ||
"account-prefix": "cosmos", | ||
"gas-adjustment": 1.5, | ||
"gas-prices": "0.025uatom", | ||
"trusting-period": "336h" | ||
} |
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,38 @@ | ||
version: "3.9" | ||
services: | ||
ibc-0: | ||
image: "tendermint/gaia:v4.2.0" | ||
ports: | ||
- "26656-26657:26656-26657" | ||
- "1317:1317" | ||
- "9090:9090" | ||
volumes: | ||
- ./ibc-0:/gaia/.gaia:Z | ||
command: > | ||
sh -c "gaiad --chain-id=ibc-0 init ibc-0 | ||
&& gaiad keys add validator --keyring-backend='test' --output json > $$HOME/.gaia/validator_seed.json 2> /dev/null | ||
&& gaiad keys add user --keyring-backend='test' --output json > $$HOME/.gaia/key_seed.json 2> /dev/null | ||
&& gaiad add-genesis-account $$(gaiad keys --keyring-backend='test' show user -a) 100000000000stake,100000000000uatom | ||
&& gaiad add-genesis-account $$(gaiad keys --keyring-backend='test' show validator -a) 100000000000stake,100000000000uatom | ||
&& gaiad gentx validator 100000000000stake --keyring-backend='test' --chain-id ibc-0 | ||
&& gaiad collect-gentxs | ||
&& sed -i'.bak' -e 's#tcp://127.0.0.1:26657#tcp://0.0.0.0:26657#g' $$HOME/.gaia/config/config.toml | ||
&& gaiad start --pruning=nothing" | ||
ibc-1: | ||
image: "tendermint/gaia:v4.2.0" | ||
ports: | ||
- "26666-26667:26656-26657" | ||
- "1318:1317" | ||
- "9091:9090" | ||
volumes: | ||
- ./ibc-1:/gaia/.gaia:Z | ||
command: > | ||
sh -c "gaiad --chain-id=ibc-1 init ibc-1 | ||
&& gaiad keys add validator --keyring-backend='test' --output json > $$HOME/.gaia/validator_seed.json 2> /dev/null | ||
&& gaiad keys add user --keyring-backend='test' --output json > $$HOME/.gaia/key_seed.json 2> /dev/null | ||
&& gaiad add-genesis-account $$(gaiad keys --keyring-backend='test' show user -a) 100000000000stake,100000000000uatom | ||
&& gaiad add-genesis-account $$(gaiad keys --keyring-backend='test' show validator -a) 100000000000stake,100000000000uatom | ||
&& gaiad gentx validator 100000000000stake --keyring-backend='test' --chain-id ibc-1 | ||
&& gaiad collect-gentxs | ||
&& sed -i'.bak' -e 's#tcp://127.0.0.1:26657#tcp://0.0.0.0:26657#g' $$HOME/.gaia/config/config.toml | ||
&& gaiad start --pruning=nothing" |
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,15 @@ | ||
{ | ||
"src": { | ||
"chain-id": "ibc-0", | ||
"port-id": "transfer", | ||
"order": "unordered", | ||
"version": "ics20-1" | ||
}, | ||
"dst": { | ||
"chain-id": "ibc-1", | ||
"port-id": "transfer", | ||
"order": "unordered", | ||
"version": "ics20-1" | ||
}, | ||
"strategy": { "type": "naive" } | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note: we rely on a gaia image directly, instead of a contributor-specific image