Skip to content

Commit

Permalink
Update zebra-rpc/src/methods.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Arya <aryasolhi@gmail.com>
  • Loading branch information
conradoplg and arya2 authored Nov 22, 2024
1 parent 1013611 commit 58d3135
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions zebra-rpc/src/methods.rs
Original file line number Diff line number Diff line change
Expand Up @@ -852,12 +852,12 @@ where
let orchard_tree =
orchard_tree.ok_or_server_error("missing orchard tree for block")?;

let final_orchard_root =
if nu5_activation.is_some() && height >= nu5_activation.unwrap() {
let final_orchard_root = match nu5_activation {
Some(activation_height) if height >= activation_height => {
Some(orchard_tree.root().into())
} else {
None
};
}
_other => None,
};

let sapling = SaplingTrees {
size: sapling_tree_size,
Expand Down

0 comments on commit 58d3135

Please sign in to comment.