Add missing feature flag conditional

This commit is contained in:
Jack Grigg 2024-03-08 19:08:20 +00:00
parent f9bf5a173f
commit 054b374b5a
1 changed files with 1 additions and 0 deletions

View File

@ -339,6 +339,7 @@ pub(crate) fn ufvk_to_uivk<P: consensus::Parameters>(
divk[32..].copy_from_slice(&ivk[..]); divk[32..].copy_from_slice(&ivk[..]);
ivks.push(Ivk::Sapling(divk)); ivks.push(Ivk::Sapling(divk));
} }
#[cfg(feature = "transparent-inputs")]
if let Some(tfvk) = ufvk.transparent() { if let Some(tfvk) = ufvk.transparent() {
let tivk = tfvk.derive_external_ivk()?; let tivk = tfvk.derive_external_ivk()?;
ivks.push(Ivk::P2pkh(tivk.serialize().try_into().map_err(|_| { ivks.push(Ivk::P2pkh(tivk.serialize().try_into().map_err(|_| {