Skip to content

Commit

Permalink
update feature flag "parallel" in pos
Browse files Browse the repository at this point in the history
  • Loading branch information
vedhavyas committed Aug 22, 2023
1 parent 171dffc commit f7d0445
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions crates/subspace-proof-of-space/src/chia.rs
Original file line number Diff line number Diff line change
@@ -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};
Expand Down Expand Up @@ -48,6 +46,7 @@ impl TableGenerator<ChiaTable> for ChiaTableGenerator {
}
}

#[cfg(any(feature = "parallel", test))]
fn generate_parallel(&mut self, seed: &PosSeed) -> ChiaTable {
ChiaTable {
tables: Tables::<K>::create_parallel((*seed).into(), &mut self.tables_cache),
Expand Down

0 comments on commit f7d0445

Please sign in to comment.