Skip to content

Create a state containing valid Sapling and Orchard blocks #8535

Open
@upbqdn

Description

In #8533, we needed a state which contains:

  1. Blocks containing Sapling note commitments.
  2. Blocks for which we could activate NU5, see Create a state containing post-NU5 blocks #8534.
  3. Blocks containing Orchard note commitments.

There's currently no way to create such a state in Zebra. Having it is beneficial for tests, as mentioned below

/// TODO:
/// 1. Check a non-empty Sapling treestate.
/// 2. Check an empty Orchard treestate at NU5 activation height.
/// 3. Check a non-empty Orchard treestate.
///
/// To implement the todos above, we need to:
///
/// 1. Have a block containing Sapling note commitmnets in the state.
/// 2. Activate NU5 at a height for which we have a block in the state.
/// 3. Have a block containing Orchard note commitments in the state.

Depends on #8534.

Metadata

Assignees

No one assigned

    Labels

    A-stateArea: State / database changesC-testingCategory: These are testsrustPull requests that update Rust code

    Type

    Projects

    • Status

      New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions