Skip to content

fix(cli): ensure checkTx passes before waiting for inclusion#1636

Merged
quasystaty1 merged 1 commit intomainfrom
quasystaty1/ENG-911/cli/checktx-response
Oct 9, 2024
Merged

fix(cli): ensure checkTx passes before waiting for inclusion#1636
quasystaty1 merged 1 commit intomainfrom
quasystaty1/ENG-911/cli/checktx-response

Conversation

@quasystaty1
Copy link
Contributor

Summary

Ensuring checkTx passes before waiting for inclusion

Background

When using submit_transaction_sync method, cli should exit on checkTx error code. Currently, cli first waits for inclusion which will never happen as the transaction failed checkTx

Related Issues

Link any issues that are related, prefer full github links.

closes #1635

@quasystaty1 quasystaty1 requested a review from a team as a code owner October 4, 2024 16:38
@SuperFluffy SuperFluffy changed the title fix(cli): checkTx handling fix(cli): ensure checkTx passes before waiting for inclusion Oct 9, 2024
Copy link
Contributor

@SuperFluffy SuperFluffy left a comment

Choose a reason for hiding this comment

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

Change makes sense, thank you.

In the future we should provide flags to perform fire-and-forget submission or wait for inclusion.

@quasystaty1 quasystaty1 added this pull request to the merge queue Oct 9, 2024
Merged via the queue into main with commit 237d0c2 Oct 9, 2024
@quasystaty1 quasystaty1 deleted the quasystaty1/ENG-911/cli/checktx-response branch October 9, 2024 12:52
steezeburger added a commit that referenced this pull request Oct 11, 2024
* main:
  feat(sequencer)!: enforce block ordering by transaction group  (#1618)
  fix(cli): ensure checkTx passes before waiting for inclusion (#1636)
  chore(sequencer)!: update storage keys locations and values (ENG-898) (#1616)
  chore: cargo audit warning (#1644)
  chore(proto, core)!: remove action suffix from all action types (#1630)
  feat(sequencer)!: add limit to total amount of transactions in parked  (#1638)
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.

fix(cli): handle response on checkTx

3 participants