Skip to content

Commit

Permalink
refactor: adjusting the size of segments and fragments
Browse files Browse the repository at this point in the history
  • Loading branch information
ytqaljn committed Oct 11, 2023
1 parent 3a1c914 commit 81ab89b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions primitives/common/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ pub const M_BYTE: u128 = 1_048_576;
pub const G_BYTE: u128 = 1_048_576 * 1024;
pub const T_BYTE: u128 = 1_048_576 * 1024 * 1024;
pub const IDLE_SEG_SIZE: u128 = M_BYTE * 64;
pub const SEGMENT_SIZE: u128 = M_BYTE * 16;
pub const FRAGMENT_SIZE: u128 = M_BYTE * 8;
pub const SEGMENT_SIZE: u128 = M_BYTE * 64;
pub const FRAGMENT_SIZE: u128 = M_BYTE * 16;
// The number of fragments contained in a segment
pub const FRAGMENT_COUNT: u32 = (SEGMENT_SIZE * 15 / 10 / FRAGMENT_SIZE) as u32;
pub const ASSIGN_MINER_IDEAL_QUANTITY: u32 = FRAGMENT_COUNT;
Expand Down

0 comments on commit 81ab89b

Please sign in to comment.