-
Notifications
You must be signed in to change notification settings - Fork 329
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
Update to latest tendermint-rs and adapt relayer to new light client #255
Conversation
b57a246
to
23c3b3f
Compare
Hi @romac, I've checked out your branch
On this machine I don't have tendermint-rs in the location it's trying to find it. I believe this is because in Cargo.toml the path is specified like this Should we just have the version ? |
My bad, sorry about that! Will update it to use the tendermint-rs version from the branch in informalsystems/tendermint-rs#583. |
Just to clarify, the git dependency is needed because this PR depends on these unreleased changes in tendermint-rs: informalsystems/tendermint-rs#583 |
Hi @romac, it's building fine now. Thanks ! |
Codecov Report
@@ Coverage Diff @@
## master #255 +/- ##
=========================================
+ Coverage 13.6% 37.2% +23.5%
=========================================
Files 69 120 +51
Lines 3752 7632 +3880
Branches 1374 2706 +1332
=========================================
+ Hits 513 2843 +2330
- Misses 2618 4370 +1752
+ Partials 621 419 -202
Continue to review full report at Codecov.
|
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.
Looks good to merge for now. The listen mode does not work but we should look into this 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.
I've run the tests again and I could configure both light clients for chain_A and chain_B, but when starting the relayer I'm getting a parse error. Not sure if it's related to the config TOML (the line it complains doesn't match with something in the config I think so maybe somewhere else). Here's the message:
(base) andy@ubuntu:~/dev/github.com/informalsystems/ibc-rs$ cargo run --bin relayer -- -c ./relayer/tests/config/fixtures/relayer_conf_example.toml start --reset
Finished dev [unoptimized + debuginfo] target(s) in 0.20s
Running `target/debug/relayer -c ./relayer/tests/config/fixtures/relayer_conf_example.toml start --reset`
Sep 30 10:58:40.686 INFO relayer_cli::commands::start: spawning light client chain.id=chain_A
Relayer spawning light client for chain chain_A
Sep 30 10:58:40.828 INFO relayer_cli::commands::start: resetting client to trust options state chain.id=chain_A
error: relayer-cli fatal error: I/O error: Parse error. Invalid JSON: invalid type: string "1", expected u64 at line 17 column 24 (code: -32700)
The |
We still need to wait for informalsystems/tendermint-rs#583 to be merged first. |
So I've updated the chains (chain_A and chain_B) to run with the latest stargate-3 version. Now there's another error.
Not sure which JSON it's referring too, maybe it's a genesis.json for chain_A and somewhere there's a validation for that. Maybe this error is coming from other dependencies. But
|
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 this is OK to merge, it's not failing on tests and it builds fine. I think the tests we have with chain are not in particular having issues related to this implementation. So I believe this is good to go.
…nformalsystems#255) * Update to tendermint-rs v0.16, disable client module. * Update to latest tendermint-rpc with WebSocketClient * WIP: Define new tendermint light client * Add minimal interface for light client * Fix collect_events * Cleanup config * Change light init command to store light client config into a TOML file * More cleanup in event monitor * Remove light client from Chain object * Rename hash to header_hash * Remove store module * Proper error handling in light init command * Adapt relayer start command to use the new light client * Specify git dependencies on tendermint-rs instead of local * Fix signed_header test fixtures for tendermint-rs 0.16 * Formatting * Show latest trusted state height in relayer task * Formatting
Close: #243
Close: #90
Depends on informalsystems/tendermint-rs#583
Description
For contributor use:
docs/
) and code commentsFiles changed
in the Github PR explorer