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

Handle zero transaction expirations #2782

Merged
merged 3 commits into from
Sep 22, 2021

Conversation

oxarbitrage
Copy link
Contributor

Motivation

We want to return None from transaction method expiry_height() when the height is zero.

This is part of #2387 but i am unsure if it totally close it.

This is required for #2774

Specifications

https://zips.z.cash/zip-0203#specification

Solution

Just add some code to handle the 0 in the method.

Review

Anyone can review, this is a pretty simple code change.

Reviewer Checklist

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

Follow Up Work

Copy link
Contributor

@teor2345 teor2345 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, we just need to document the consensus rule we're implementing

zebra-chain/src/transaction.rs Show resolved Hide resolved
Copy link
Contributor

@teor2345 teor2345 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@teor2345 teor2345 merged commit 825da44 into ZcashFoundation:main Sep 22, 2021
Copy link
Contributor

@dconnolly dconnolly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

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.

3 participants