You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In cuprate-main/storage/blockchain/src/ops/block.rs, the comment indicates that the code will panic if fragment_size <= 2 * HEADER_SIZE.
While the code panics if fragment_size * 2 < HEADER_SIZE
/// `fragment_size` must be more than 2 * [`HEADER_SIZE`] otherwise this will panic.pubfn make_fragmented_messages<T:LevinBody>(protocol:&Protocol,fragment_size:usize,message:T,) -> Result<Vec<Bucket<T::Command>>,BucketError>{assert!(
fragment_size *2 >= HEADER_SIZE,"Fragment size: {fragment_size}, is too small, must be at least {}",2*HEADER_SIZE);
The text was updated successfully, but these errors were encountered:
In cuprate-main/storage/blockchain/src/ops/block.rs, the comment indicates that the code will panic if fragment_size <= 2 * HEADER_SIZE.
While the code panics if fragment_size * 2 < HEADER_SIZE
The text was updated successfully, but these errors were encountered: