Skip to content

Commit

Permalink
Add a TODO for parallel tree updates in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
teor2345 committed Jul 21, 2022
1 parent 50f6031 commit cca452d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions zebra-chain/src/block/arbitrary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,9 @@ impl Block {
// would be awkward since the genesis block is handled separatedly there.
// This forces us to skip the genesis block here too in order to able to use
// this to test the finalized state.
//
// TODO: run note commitment tree updates in parallel rayon threads,
// using `NoteCommitmentTrees::update_trees_parallel()`
if generate_valid_commitments && *height != Height(0) {
for sapling_note_commitment in transaction.sapling_note_commitments() {
sapling_tree.append(*sapling_note_commitment).unwrap();
Expand Down

0 comments on commit cca452d

Please sign in to comment.