Skip to content
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

cosmos-sdk-rs: make Tx::find_by_hash use the /tx endpoint #116

Merged
merged 2 commits into from
Sep 27, 2021

Conversation

tony-iqlusion
Copy link
Member

Notably this endpoint provides read-your-writes consistency with regard to transactions, whereas /tx_search does not.

See also: tendermint/tendermint#6359

Notably this endpoint provides read-your-writes consistency with regard
to transactions, whereas `/tx_search` does not.

See also: tendermint/tendermint#6359
@tony-iqlusion
Copy link
Member Author

This is now working locally for me now that informalsystems/tendermint-rs#948 was fixed upstream in tendermint-rs v0.22

The `/tx` endpoint is still sporadically returning a not found error:

https://github.com/cosmos/cosmos-rust/pull/116/checks?check_run_id=3724891908

This adds back the polling behavior to try repeatedly if this occurs
@tony-iqlusion
Copy link
Member Author

@jkilpatr can I get a stamp for this?

Unfortunately I wasn't able to eliminate the need to poll for the transaction in the tests. Perhaps there's a lingering issue with tendermint/tendermint#6359

However, the /tx endpoint still seems more appropriate here than /tx_search

@tony-iqlusion tony-iqlusion merged commit 56ec369 into main Sep 27, 2021
@tony-iqlusion tony-iqlusion deleted the cosmos-sdk-rs/simplify-tx-find-by-hash branch September 27, 2021 21:31
@tony-iqlusion tony-iqlusion mentioned this pull request Sep 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants