diff --git a/Cargo.lock b/Cargo.lock index 56d495e8..c93e7465 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -638,6 +638,7 @@ dependencies = [ "dirs", "futures", "libc", + "monero-serai", "rayon", "tokio", "windows", diff --git a/database/src/free.rs b/database/src/free.rs index ca44052c..8982984f 100644 --- a/database/src/free.rs +++ b/database/src/free.rs @@ -2,6 +2,7 @@ //---------------------------------------------------------------------------------------------------- Import +use cuprate_helper::map::u64_to_timelock; use cuprate_types::OutputOnChain; use curve25519_dalek::{constants::ED25519_BASEPOINT_POINT, edwards::CompressedEdwardsY, Scalar}; use monero_serai::{transaction::Timelock, H}; @@ -27,7 +28,7 @@ pub(crate) fn output_to_output_on_chain( .output_flags .contains(OutputFlags::NON_ZERO_UNLOCK_TIME) { - Timelock::Time(table_tx_unlock_time.get(&output.tx_idx)?) + u64_to_timelock(table_tx_unlock_time.get(&output.tx_idx)?) } else { Timelock::None };