-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add automatic mana allotment (#1961)
* Add automatic mana allotment * rework * better loop * set mana allotment to 1 not 0 * better error when there is insufficient mana provided * make auto mana allotment optional * revert some accidental changes * missed * rework transaction options * improvements * sort * privatize * fix mana addition on newly selected inputs * Allow ISA to add mana to existing outputs * better calculation * little cleanup * fix slot usage and detect mana remainder more accurately * add some debug logging * rename to required * more renames * make context inputs optional * remove hard coded reward index * another * Allow using account mana for allotments, fix semantic validation * Add test * carry over previous required allotment value * add more tests * simplify * more simpler * just build the transaction in ISA * cleanup * increase mana bits to fix tests * review * Set automatically transitioned account mana to zero and order mana remainder output choices * fix python * unused import * rename tests * don't stack allotments * track allotment debt for future selected accounts * more unused imports * Rework allotment * skip allotment step if there are no inputs selected * Loop over remainder calculations too * fix last test * one more creation slot usage * only add mana to added outputs with no weird unlock conditions * merge mana and allotments * include provided * fix amount sums * remove automatically_transitioned * unused import * rework allotment again * fix skipping allotment --------- Co-authored-by: Thoralf Müller <[email protected]>
- Loading branch information
Showing
66 changed files
with
2,430 additions
and
1,461 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.