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

TransactionInput - A Transaction Bundling Input #522

Open
SilentCicero opened this issue Oct 10, 2023 · 3 comments
Open

TransactionInput - A Transaction Bundling Input #522

SilentCicero opened this issue Oct 10, 2023 · 3 comments

Comments

@SilentCicero
Copy link
Member

SilentCicero commented Oct 10, 2023

Abstract

This input allows you to specify a transaction ID as an input. This would be used for transaction bundling.
 The input is successfully spent when the transaction specified by the txID exists, is in the same block and has not reverted.

InputTransaction

name type description
txID byte[32] Hash of transaction.

Restrictions

  • The transaction ID must be a valid ID which specifies a transaction in the current block

Cons

  • This does not allow for the kind of bundling where transactions must all pass or fail, that should be covered in a bundle identifier of some kind.

Prior Art

Signed Bundles: https://github.com/FuelLabs/rfcs/pull/16/files

Note, this is merely a first pass at the idea, we will likely want to specify a bundle ID of some kind which would be used in our transactional design.

@SwayStar123
Copy link
Member

If the transaction ID specified does not revert, the current transaction will not revert, otherwise the current transaction reverts.

Wording makes it sound like the given tx will never revert given the prev tx didn't revert. Is this intentional?

@SilentCicero
Copy link
Member Author

@SwayStar123 fixed wording here.

@SwayStar123
Copy link
Member

Will there be any guarentees about ordering of transactions? Ie, input tx is before the current tx, and or, input tx will be the very last tx before the current tx @SilentCicero

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

No branches or pull requests

2 participants