Skip to content

Commit

Permalink
Merge branch 'main' into overhaul-bundles/receipts-extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
liuchengxu authored May 15, 2023
2 parents ceab1f8 + c2fcc60 commit 84c42cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/subspace-core-primitives/src/crypto/kzg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ impl Polynomial {
.count();
self.0
.coeffs
.truncate(self.0.coeffs.len() - trailing_zeroes);
.truncate((self.0.coeffs.len() - trailing_zeroes).max(1));
}
}

Expand Down
4 changes: 2 additions & 2 deletions crates/subspace-runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,11 @@ pub const MILLISECS_PER_BLOCK: u64 = 6000;

// NOTE: Currently it is not possible to change the slot duration after the chain has started.
// Attempting to do so will brick block production.
const SLOT_DURATION: u64 = 3000;
const SLOT_DURATION: u64 = 1000;

/// 1 in 6 slots (on average, not counting collisions) will have a block.
/// Must match ratio between block and slot duration in constants above.
const SLOT_PROBABILITY: (u64, u64) = (3, 6);
const SLOT_PROBABILITY: (u64, u64) = (1, 6);

/// The amount of time, in blocks, between updates of global randomness.
const GLOBAL_RANDOMNESS_UPDATE_INTERVAL: BlockNumber = 256;
Expand Down

0 comments on commit 84c42cd

Please sign in to comment.