Skip to content

Commit

Permalink
Merge pull request #1862 from subspace/fix/compile_rutime
Browse files Browse the repository at this point in the history
  • Loading branch information
vedhavyas authored Aug 22, 2023
2 parents 171dffc + f7d0445 commit 990bef8
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 990bef8

Please sign in to comment.