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

Automatically set transaction capability flags in ISA #2075

Merged
merged 22 commits into from
Mar 1, 2024

Conversation

DaughterOfMars
Copy link

Description of change

This PR removes the ability to pass in transaction capability flags and instead sets them based on the Burn. To support TransactionCapabilityFlag::BurnMana, a boolean field was added to this struct. If there is excess mana in the "initial mana balance" then it will be burned. Nothing else will be burned, and remainders will still be created for mana from selected inputs. This way there are no surprise mana burns, everything that the user intends to burn must be specifically provided.

Links to any relevant issues

Closes #2005

@DaughterOfMars DaughterOfMars linked an issue Feb 26, 2024 that may be closed by this pull request
@Thoralf-M
Copy link
Member

This way there are no surprise mana burns, everything that the user intends to burn must be specifically provided.

Wouldn't it be better to let the user provide the exact Mana amount to be burned instead of excess mana in the "initial mana balance"?

Thoralf-M
Thoralf-M previously approved these changes Feb 28, 2024
Thoralf-M
Thoralf-M previously approved these changes Feb 28, 2024
Thoralf-M
Thoralf-M previously approved these changes Feb 28, 2024
@thibault-martinez thibault-martinez merged commit d2dc74d into 2.0 Mar 1, 2024
37 checks passed
@thibault-martinez thibault-martinez deleted the feat/auto-txn-capabilities branch March 1, 2024 17:59
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.

Don't ignore TransactionCapabilityFlag in InputSelection
3 participants