Skip to content

Conversation

@majecty
Copy link
Contributor

@majecty majecty commented Mar 4, 2020

This PR depends on #231

  • Send ConnOpenInit
  • Send ConnOpenTry
  • Send ConnOpenAck
  • Send ConnOpenConfirm

@majecty majecty added ics Interchain standard experiment Experimental features labels Mar 4, 2020
@majecty majecty force-pushed the f/ics-building-connection branch from e4a2994 to 29dfe8b Compare March 5, 2020 10:27
@kseo kseo added the do-not-merge Do not merge this PR label Mar 9, 2020
majecty added 11 commits March 9, 2020 18:51
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
@majecty majecty force-pushed the f/ics-building-connection branch from 29dfe8b to c4c709c Compare March 9, 2020 10:00
@majecty majecty changed the title [WIP] Build a connection Build a connection Mar 9, 2020
@majecty majecty requested a review from junha1 March 9, 2020 10:01
@majecty majecty removed the do-not-merge Do not merge this PR label Mar 9, 2020
}
let currentBlockNumber = clientState!.data!.number;
while (currentBlockNumber < counterpartyChainHeight) {
// We can't get the best block's IBC header
Copy link
Contributor

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.

);

// We can't update light client upto the best block.
height = height - 1;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

majecty added 2 commits March 10, 2020 11:45
Since querying the current best block's seal is difficult, our PoC
implementation does not implement it. Make the relayer use the
information.
@majecty majecty force-pushed the f/ics-building-connection branch from c4c709c to e927201 Compare March 10, 2020 02:45
@majecty
Copy link
Contributor Author

majecty commented Mar 10, 2020

@junha1 I fixed them.

@majecty majecty merged commit 0a2050a into CodeChain-io:ics-poc Mar 10, 2020
@majecty majecty deleted the f/ics-building-connection branch March 10, 2020 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

experiment Experimental features ics Interchain standard

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants