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

Add missing rules #29

Merged
merged 7 commits into from
Apr 12, 2023
Merged

Add missing rules #29

merged 7 commits into from
Apr 12, 2023

Conversation

Davidson-Souza
Copy link
Owner

After this PR we check:

  • If a transaction output values sum is lesser or equal the input sum.
  • If coinbase claims a valid amount
  • We can (partially) handle reorgs
  • Handle cap on difficulty adjustment

This is the logic needed to invalidate a tip if we find an invalid block
or the user decides to.
Miners can only spend a coinbase transaction after a certain number of
confirmations. This commit verifies that, using the utreexo commitment
to this utxo height.
Until now, we validate with VERIFY_ALL, meaning we assume all soft-forks
are always enabled, but for mainnet and testnet, this isn't true.
This commit adds the activation height for buried soft-forks and only
enforces them after this block.
@Davidson-Souza Davidson-Souza merged commit e1e8598 into master Apr 12, 2023
1 check passed
@Davidson-Souza Davidson-Souza deleted the add_missing_rules branch January 8, 2024 15:53
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.

None yet

1 participant