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: add opcode versions #4836

Merged

Conversation

SWvheerden
Copy link
Collaborator

Description

This adds in an opcode versioning that is allowed.
Refactors the validation to ensure transaction versioning info is check by blocks as well.

Motivation and Context

We might need to add in new opcodes as hard forks. This adds the opcode version as part of the consensus code so we can track allowed opcodes.

How Has This Been Tested?

Unit tests

Fixes: #4821

Move tx validation version check
Remove pub from opcode constant
@SWvheerden SWvheerden force-pushed the sw_add_opcode_versions branch from 1fafc71 to a9ef0c5 Compare October 20, 2022 13:33
@CjS77 CjS77 added P-acks_required Process - Requires more ACKs or utACKs P-reviews_required Process - Requires a review from a lead maintainer to be merged labels Oct 25, 2022
SWvheerden and others added 2 commits October 25, 2022 10:10
Co-authored-by: stringhandler <stringhandler@gmail.com>
@CjS77 CjS77 removed the P-reviews_required Process - Requires a review from a lead maintainer to be merged label Oct 25, 2022
@stringhandler stringhandler merged commit c8abe99 into tari-project:development Oct 25, 2022
@CjS77
Copy link
Collaborator

CjS77 commented Oct 25, 2022

BTW - assuming this gets merged, you should add covering of this in the TariScript RFC

stringhandler pushed a commit that referenced this pull request Oct 27, 2022
Description
---
adds txo/kernel version checks to async validator

Motivation and Context
---
Version checks were missing from async validator

Ref #4836 

How Has This Been Tested?
---
Manually: Rewind a few blocks and resync
sdbondi added a commit to sdbondi/tari that referenced this pull request Nov 7, 2022
* development: (52 commits)
  chore: better help for seed-words command (tari-project#4885)
  fix(ci): resolve windows binary builds (tari-project#4883)
  fix(ci): correct ARM64 builds (tari-project#4876)
  fix(comms/peer_manager): fix possible panic in offline calc (tari-project#4877)
  feat!: impl final tari pow algorithm (tari-project#4862)
  fix(ci): selectively revert resolver for arm64 builds (tari-project#4871)
  chore(deps): bump actions/checkout from 2 to 3 (tari-project#4873)
  fix: delete orphans if they exist (tari-project#4868)
  chore: replace manual implementation of char methods (tari-project#4864)
  chore: fix potentially buggy split of string into lines (tari-project#4863)
  fix(ci): update GHA set-output plus dependabot schedule for GHA (tari-project#4857)
  fix(base-node): use less harsh emoji for unreachable node (tari-project#4855)
  fix(core): add txo version checks to async validator (tari-project#4852)
  feat: add static lifetime to emission amounts calculation (tari-project#4851)
  v0.38.8
  feat: add opcode versions (tari-project#4836)
  fix: remove clear_on_drop dependency (tari-project#4848)
  fix(base-node): use Network::from_str to parse network in cli (tari-project#4838)
  ci: remove circleci
  test: add cucumber critical (tari-project#4823)
  ...
@SWvheerden SWvheerden deleted the sw_add_opcode_versions branch November 10, 2022 05:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P-acks_required Process - Requires more ACKs or utACKs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add allowed list of opcodes on consensus
3 participants