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

fix: correctly check transaction status #886

Closed
wants to merge 1 commit into from
Closed

fix: correctly check transaction status #886

wants to merge 1 commit into from

Conversation

johnletey
Copy link
Contributor

Starting in the v0.47.x release line, the block broadcast mode has been deprecated. I've updated the ExecTx logic to match what the SDK team recommends.

@johnletey johnletey requested a review from a team as a code owner November 27, 2023 13:19
@johnletey johnletey requested a review from agouin November 27, 2023 13:19
@Reecepbcups
Copy link
Member

Reecepbcups commented Nov 28, 2023

@johnletey I am a bit confused, where is there --broadcast-mode=block logic per the description? interchaintest already supports sync broadcast & polling (tested on SDK v47 and main branch v50 chains).

Only reason I suspect this to break is if your test uses appd config broadcast-mode block in a SDK v47+ chain

I see you are re-decoding the Tx from the original Txhash to get all the data, but only the TxHash is returned so you don't get to use this extra processing

if output.Code != 0 {
return output.TxHash, fmt.Errorf("transaction failed with code %d: %s", output.Code, output.RawLog)

if err := testutil.WaitForBlocks(ctx, 1, tn); err != nil {
Copy link
Member

@Reecepbcups Reecepbcups Nov 28, 2023

Choose a reason for hiding this comment

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

Suggested change
if err := testutil.WaitForBlocks(ctx, 1, tn); err != nil {
if err := testutil.WaitForBlocks(ctx, 2, tn); err != nil {

@Reecepbcups
Copy link
Member

Closing as the v7 branch matches v8 - SDK v47 and SDK v50 chains work as expected and use the sync mode during broadcast. Make sure any custom commands or config settings do not use the legacy block as mentioned in my above comment.

if the issue persist please re-tag me and I will look into it more. The proposed changes here would not resolve that even if broadcast-mode=block was used.

@Reecepbcups Reecepbcups closed this Jan 4, 2024
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