Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Support Mint for coinbase #650

Closed
Voxelot opened this issue Sep 28, 2022 · 0 comments · Fixed by #726
Closed

Support Mint for coinbase #650

Voxelot opened this issue Sep 28, 2022 · 0 comments · Fixed by #726
Assignees

Comments

@Voxelot
Copy link
Member

Voxelot commented Sep 28, 2022

related to: FuelLabs/fuel-specs#286, FuelLabs/fuel-tx#193, FuelLabs/fuel-vm#225

The block producer needs to include a single Mint transaction in each block to capture the fees of the block, with the owner set to a configured wallet address (does not need to match the PoA consensus key).

When executing a block in production mode, the executor will set the correct output amount of the mint transaction to match the coinbase award amount of the block.

When executing a block in validation mode, the executor will verify that:

  • No more than 1 mint transaction exists in the block
  • The mint only includes a single output
  • The single mint output is of AssetId::BASE
  • The amount of the mint output is equivalent to the expected coinbase amount from the gas fees

The coinbase mint transaction does not incur any gas fees itself.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants