Skip to content

Conversation

@liamzebedee
Copy link
Collaborator

@liamzebedee liamzebedee commented Jan 1, 2025

This PR implements the block reward:

  • tokenomic curve which mirrors bitcoin, documented in tokenomics_test.go and the python notebook.
  • coinbase tx is mandatory now - every block must have at least 1 tx, the 1st tx is always coinbase, and the tx's amount must equal the output of GetBlockReward(block.height)
  • state machine handles the coinbase mint now

This differs from testnet 1 in which:

  • the block reward was static and unchanging
  • the network didn't have decimals

Implements: #15

@liamzebedee liamzebedee merged commit 7867543 into main Jan 4, 2025
8 checks passed
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