Skip to content

Commit

Permalink
Merge pull request #2721 from subspace/fix-wasm-instance-warnings
Browse files Browse the repository at this point in the history
Fix WASM instance warnings
  • Loading branch information
nazar-pc authored Apr 26, 2024
2 parents 4c5660d + e8193e4 commit 254a6c0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/sc-consensus-subspace/src/archiver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,9 @@ use subspace_core_primitives::objects::BlockObjectMapping;
use subspace_core_primitives::{BlockNumber, RecordedHistorySegment, SegmentHeader, SegmentIndex};
use tracing::{debug, info, warn};

/// This corresponds to default value of `--max-runtime-instances` in Substrate
const BLOCKS_TO_ARCHIVE_CONCURRENCY: usize = 8;
/// Number of WASM instances is 8, this is a bit lower to avoid warnings exceeding number of
/// instances
const BLOCKS_TO_ARCHIVE_CONCURRENCY: usize = 6;

/// How deep (in segments) should block be in order to be finalized.
///
Expand Down

0 comments on commit 254a6c0

Please sign in to comment.