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

[ZIP idea] Blocks should balance exactly #864

Open
daira opened this issue Jul 2, 2024 · 1 comment
Open

[ZIP idea] Blocks should balance exactly #864

daira opened this issue Jul 2, 2024 · 1 comment
Labels
consensus Consensus changes, and errors or omissions in consensus specification has PR ZIP idea
Milestone

Comments

@daira
Copy link
Collaborator

daira commented Jul 2, 2024

Abstract

In the current Zcash protocol, the miner of a coinbase transaction is permitted to claim up to and including the total amount of fees from other transactions in the block, but is not required to claim the full amount.

This proposal would require the full amount of fees to be collected in coinbase transactions.

Motivation

The current semantics of coinbase transactions creates a potential for miners to miscalculate the total amount of fees in a block. If they claim a higher amount than the actual total fees, the block will be invalid, but if they claim a lower amount, the excess is effectively burnt. As a consequence, the effective Zcash issuance can fall short of the amount calculated from the intended issuance curve.

This unnecessarily complicates the question of how much ZEC has been issued: if it is defined as not including the amounts that were left unclaimed by miners, then it is difficult to calculate, and cannot be predicted exactly in advance for any given block height. Alternatively if it is defined to include those amounts, then that introduces potentially confusing discrepancies between different definitions of issuance or total supply.

@daira daira added ZIP idea consensus Consensus changes, and errors or omissions in consensus specification labels Jul 2, 2024
@daira daira added this to the NU6 milestone Jul 2, 2024
daira added a commit to daira/zips that referenced this issue Jul 2, 2024
Signed-off-by: Daira-Emma Hopwood <daira@jacaranda.org>
@daira daira added the has PR label Jul 2, 2024
@daira
Copy link
Collaborator Author

daira commented Aug 13, 2024

In the ZIP Editors' meeting today, we identified that ZIP 236 is changing only section 3.4, when it should be changing section 7.1.2, as ZIP 2001 does.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
consensus Consensus changes, and errors or omissions in consensus specification has PR ZIP idea
Projects
None yet
Development

No branches or pull requests

1 participant