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

Change mint tx format and coinbase rules to mitigate dust accumulation #511

Merged
merged 4 commits into from
Aug 28, 2023

Conversation

Voxelot
Copy link
Member

@Voxelot Voxelot commented Aug 15, 2023

The mint transaction is no longer allowed to create coin outputs, and instead performs an intrinsic contract balance increase.

This is lighterweight compared to using a script transaction as a coinbase, as no VM execution needs to occur. This prevents dust accumulation of low-value coinbase coin outputs compared to the previous design.

@Voxelot Voxelot requested a review from xgreenx August 15, 2023 06:11
src/protocol/tx-validity.md Outdated Show resolved Hide resolved
src/tx-format/transaction.md Outdated Show resolved Hide resolved
src/tx-format/transaction.md Outdated Show resolved Hide resolved
src/tx-format/transaction.md Outdated Show resolved Hide resolved
@Voxelot Voxelot marked this pull request as ready for review August 18, 2023 19:19
@xgreenx
Copy link
Contributor

xgreenx commented Aug 23, 2023

We also need to develop a Sway contract that can be used by the block producer

@xgreenx xgreenx merged commit 762b35d into master Aug 28, 2023
4 checks passed
@xgreenx xgreenx deleted the Voxelot/mint-extensions branch August 28, 2023 17:48
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.

3 participants