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 property test strategies for V5 transactions #2347

Merged
merged 1 commit into from
Jun 18, 2021

Conversation

teor2345
Copy link
Contributor

@teor2345 teor2345 commented Jun 18, 2021

Motivation

To test #2308 and other NU5 work, we need to be able to generate blocks with specific transaction versions.

Solution

Add proptest strategies that:

  • set the initial block height
  • set the transaction version
  • make all V5 transaction network upgrade fields valid

Review

@oxarbitrage will need this code to test #2308 and #2343.

Reviewer Checklist

  • Code implements Specs and Designs
  • Tests for Expected Behaviour
  • Tests for Errors

Add proptest strategies that:
- set the initial block height
- set the transaction version
- make all V5 transaction network upgrade fields valid
@teor2345 teor2345 added A-rust Area: Updates to Rust code C-enhancement Category: This is an improvement NU-5 Network Upgrade: NU5 specific tasks P-Medium labels Jun 18, 2021
@teor2345 teor2345 added this to the 2021 Sprint 12 milestone Jun 18, 2021
@teor2345 teor2345 requested review from oxarbitrage and a team June 18, 2021 11:10
@teor2345 teor2345 self-assigned this Jun 18, 2021
@mpguerra mpguerra removed this from the 2021 Sprint 12 milestone Jun 18, 2021
@oxarbitrage oxarbitrage merged commit 2396950 into main Jun 18, 2021
@oxarbitrage oxarbitrage deleted the proptest-block-height-strategy branch June 18, 2021 17:40
@teor2345 teor2345 mentioned this pull request Jun 23, 2021
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-rust Area: Updates to Rust code C-enhancement Category: This is an improvement NU-5 Network Upgrade: NU5 specific tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants