-
Notifications
You must be signed in to change notification settings - Fork 12
Build a connection #232
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
Merged
majecty
merged 13 commits into
CodeChain-io:ics-poc
from
majecty:f/ics-building-connection
Mar 10, 2020
Merged
Build a connection #232
majecty
merged 13 commits into
CodeChain-io:ics-poc
from
majecty:f/ics-building-connection
Mar 10, 2020
Conversation
This file contains hidden or 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
25 tasks
e4a2994 to
29dfe8b
Compare
Before:
``
{
result: {
raw: ["a", "b"]
}
}
```
After:
```
{
result: ["a", "b"]
}
```
Change the response of ConnectionIdentifiers
When add_connection_to_client is called, the connection should exist.
The relayer and scenario script sends transactions concurrently. To make sequence management easier, I prepared a new account for the scenario script.
`instance_id` is used in the Foundry log. It helps debugging.
Before: Always wait 3 seconds. Sometimes it takes more than 3 seconds. After: Send ping every second for 10 seconds. If a chain is initlaized, we can check it in a second.
* connOpenInit * connOpenTry * connOpenAck * connOpenConfirm
29dfe8b to
c4c709c
Compare
junha1
reviewed
Mar 10, 2020
ibc.ts/src/relayer/index.ts
Outdated
| } | ||
| let currentBlockNumber = clientState!.data!.number; | ||
| while (currentBlockNumber < counterpartyChainHeight) { | ||
| // We can't get the best block's IBC header |
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.
I think FIXME is needed here, because there is FIXME in compose_header() for the same problem.
junha1
reviewed
Mar 10, 2020
| ); | ||
|
|
||
| // We can't update light client upto the best block. | ||
| height = height - 1; |
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.
ditto
Since querying the current best block's seal is difficult, our PoC implementation does not implement it. Make the relayer use the information.
c4c709c to
e927201
Compare
|
@junha1 I fixed them. |
junha1
approved these changes
Mar 10, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR depends on #231