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

awaitTxAssured #43

Open
euonymos opened this issue May 2, 2024 · 0 comments
Open

awaitTxAssured #43

euonymos opened this issue May 2, 2024 · 0 comments

Comments

@euonymos
Copy link
Member

euonymos commented May 2, 2024

User's actions that produce transaction might be presented to user based on the transaction status:

  • signed (submitted)
  • verified (included in the block)
  • assured (there are enough blocks on top on the tx's block so we can be sure is won't be rolled back)

CTL provides awaitTxConfirmed* functions to handle verified status but currently has no means for the "assured", which might be added to hydra-auction-offchain.

To save up the amount of queries to the back-end, the block height might be included in awaitTxConfirmed Promise, and similar function awaitTxAssured might accept it to avoid figuring out tx's block.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants