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

feat(core/consensus)!: restrict output types to only those permitted by consensus #4467

Conversation

sdbondi
Copy link
Member

@sdbondi sdbondi commented Aug 15, 2022

Description

Adds a new transaction and block validation that enforces allow-listed OutputTypes

Motivation and Context

As more OutputTypes are added, they should only be permitted by consensus from a known height to allow for gradual network upgrades.

How Has This Been Tested?

New unit test for orphan validator.
All output types are permitted for localnet/cucumber tests

@sdbondi sdbondi changed the title feat(core/consensus)restrict output types to only those permitted by consensus feat(core/consensus)!: restrict output types to only those permitted by consensus Aug 15, 2022
@sdbondi sdbondi force-pushed the core-consensus-allowlist-output-types branch from ccfd342 to 8fa2b41 Compare August 15, 2022 10:18
stringhandler
stringhandler previously approved these changes Aug 16, 2022
@stringhandler stringhandler added the P-conflicts Process - The PR has merge conflicts that need to be resolved label Aug 16, 2022
@sdbondi sdbondi force-pushed the core-consensus-allowlist-output-types branch from 8fa2b41 to 15c1460 Compare August 16, 2022 11:03
@sdbondi sdbondi force-pushed the core-consensus-allowlist-output-types branch from 15c1460 to c445624 Compare August 16, 2022 11:06
@sdbondi sdbondi added P-conflicts Process - The PR has merge conflicts that need to be resolved and removed P-conflicts Process - The PR has merge conflicts that need to be resolved labels Aug 16, 2022
@stringhandler stringhandler merged commit a481a06 into tari-project:development Aug 18, 2022
@sdbondi sdbondi deleted the core-consensus-allowlist-output-types branch August 18, 2022 09:47
sdbondi added a commit to sdbondi/tari that referenced this pull request Aug 22, 2022
* development:
  feat!: add hashing API use to base layer (see issue tari-project#4394) (tari-project#4447)
  feat(wallet): adds --stealth-one-sided flag to make-it-rain (tari-project#4508)
  fix!: change monero consensus encoding an update for hardfork v15 (tari-project#4492)
  fix(core/covenants)!: update covenants to support OutputType enum (tari-project#4472)
  feat(core)!: restrict output types to only those permitted by consensus (tari-project#4467)
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