Rename Level -> Altitude

This commit is contained in:
Kris Nuttycombe 2021-06-19 11:34:01 -06:00
parent e3abbf9a42
commit 4888f0d16c
1 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ use crate::{
note::commitment::ExtractedNoteCommitment,
primitives::sinsemilla::{i2lebsp_k, HashDomain},
};
use incrementalmerkletree::{Hashable, Level};
use incrementalmerkletree::{Hashable, Altitude};
use pasta_curves::{arithmetic::FieldExt, pallas};
use serde::{Serialize, Deserialize};
@ -186,7 +186,7 @@ impl Hashable for OrchardIncrementalTreeDigest {
OrchardIncrementalTreeDigest(CtOption::new(pallas::Base::from_u64(2), 1.into()))
}
fn combine(level: Level, left_opt: &Self, right_opt: &Self) -> Self {
fn combine(level: Altitude, left_opt: &Self, right_opt: &Self) -> Self {
let level: usize = level.into();
let l_star: usize = MERKLE_DEPTH_ORCHARD - 1 - level;
OrchardIncrementalTreeDigest(left_opt.0.and_then(|left| {