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

SpTxCoinbaseV1: remove block_reward field #38

Merged
merged 3 commits into from
Mar 22, 2024

Conversation

jeffro256
Copy link

Not storing/serializing block_reward saves us a few bytes on coinbase transactions, and makes it so that you can't initialize a coinbase transaction that has a block reward not matching its output sum.

Not storing/serializing `block_reward` saves us a few bytes on coinbase transactions, and makes it so that you can't
initialize a coinbase transaction that has a block reward not matching its output sum.
src/seraphis_main/tx_validators.cpp Show resolved Hide resolved
src/seraphis_mocks/make_mock_tx.cpp Outdated Show resolved Hide resolved
Copy link
Owner

@UkoeHB UkoeHB left a comment

Choose a reason for hiding this comment

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

I'll take it lol, thanks

@UkoeHB UkoeHB merged commit d0b049b into UkoeHB:seraphis_lib Mar 22, 2024
17 checks passed
UkoeHB pushed a commit that referenced this pull request Aug 2, 2024
* SpTxCoinbaseV1: remove block_reward field

Not storing/serializing `block_reward` saves us a few bytes on coinbase transactions, and makes it so that you can't
initialize a coinbase transaction that has a block reward not matching its output sum.
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.

2 participants