Skip to content
This repository has been archived by the owner on Feb 21, 2024. It is now read-only.

Commit

Permalink
Increase confirmation depth requirement to 100 blocks, which should h…
Browse files Browse the repository at this point in the history
…elp with avoiding archiver and sync issues caused by block reorganizing in case of forks
  • Loading branch information
nazar-pc committed Oct 29, 2021
1 parent 3a4e0be commit 5999c28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/subspace-runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ pub fn native_version() -> NativeVersion {
const NORMAL_DISPATCH_RATIO: Perbill = Perbill::from_percent(75);

// TODO: Proper value here
const CONFIRMATION_DEPTH_K: u32 = 10;
const CONFIRMATION_DEPTH_K: u32 = 100;
// This is a nice power of 2 for Merkle Tree
const MERKLE_NUM_LEAVES: u32 = 256;
const WITNESS_SIZE: u32 = SHA256_HASH_SIZE as u32 * MERKLE_NUM_LEAVES.log2();
Expand Down

0 comments on commit 5999c28

Please sign in to comment.