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

Tx builder max output size fixes #204

Merged
merged 10 commits into from
Sep 19, 2021
Merged

Conversation

vsubhuman
Copy link
Contributor

Merging of this PR: #187

Closes #159

rooooooooob and others added 4 commits August 11, 2021 00:15
Users with many NFTs could run into problems creating certain txs that
returned many of them as a change output as it would surpass the maximum
output size limit in the ledger. The TxBuilder now takes this limit into
account and errors if it is passed, and during the change output
creation will attempt to spread out the NFTs over multiple outputs to
not surpass the ledger limit.

This is done as a greedy selection for now as the limit is currently 4kb
or so and each asset is at most 64 bytes each so this should suffice.
TxBuilder: max output size + multiple change address support
@vsubhuman vsubhuman self-assigned this Sep 18, 2021
@vsubhuman vsubhuman marked this pull request as ready for review September 18, 2021 20:10
@vsubhuman vsubhuman added this to the 9.0.0 milestone Sep 18, 2021
Copy link
Contributor Author

@vsubhuman vsubhuman left a comment

Choose a reason for hiding this comment

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

/check

@vsubhuman vsubhuman merged commit 886de98 into master Sep 19, 2021
@vsubhuman vsubhuman deleted the tx-builder-max-output-size-fixes branch September 19, 2021 12:15
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.

Support for max ts size and max output size
2 participants