From f7d0445dffc90155124496494b55bcddb09b1a9c Mon Sep 17 00:00:00 2001 From: vedhavyas Date: Tue, 22 Aug 2023 08:51:58 +0200 Subject: [PATCH] update feature flag "parallel" in pos --- crates/subspace-proof-of-space/src/chia.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/crates/subspace-proof-of-space/src/chia.rs b/crates/subspace-proof-of-space/src/chia.rs index a3c8b946f3..2fd658f389 100644 --- a/crates/subspace-proof-of-space/src/chia.rs +++ b/crates/subspace-proof-of-space/src/chia.rs @@ -1,7 +1,5 @@ //! Chia proof of space implementation -use crate::chiapos::Tables; -#[cfg(any(feature = "parallel", test))] -use crate::chiapos::TablesCache; +use crate::chiapos::{Tables, TablesCache}; use crate::{PosTableType, Quality, Table, TableGenerator}; use core::mem; use subspace_core_primitives::{PosProof, PosQualityBytes, PosSeed}; @@ -48,6 +46,7 @@ impl TableGenerator for ChiaTableGenerator { } } + #[cfg(any(feature = "parallel", test))] fn generate_parallel(&mut self, seed: &PosSeed) -> ChiaTable { ChiaTable { tables: Tables::::create_parallel((*seed).into(), &mut self.tables_cache),