diff --git a/core/src/.contact_info.rs.swo b/core/src/.contact_info.rs.swo new file mode 100644 index 0000000000..19e59a7dad Binary files /dev/null and b/core/src/.contact_info.rs.swo differ diff --git a/core/src/contact_info.rs b/core/src/contact_info.rs index c83677fbad..6d62451b1b 100644 --- a/core/src/contact_info.rs +++ b/core/src/contact_info.rs @@ -139,7 +139,7 @@ impl ContactInfo { nxt_addr.set_port(addr.port() + nxt); nxt_addr } - pub fn new_with_pubkey_socketaddr(pubkey: Pubkey, bind_addr: &SocketAddr) -> Self { + fn new_with_pubkey_socketaddr(pubkey: Pubkey, bind_addr: &SocketAddr) -> Self { let tpu_addr = *bind_addr; let gossip_addr = Self::next_port(&bind_addr, 1); let tvu_addr = Self::next_port(&bind_addr, 2); diff --git a/core/src/erasure.rs b/core/src/erasure.rs index 7e1e3cc0e9..cf049d7c96 100644 --- a/core/src/erasure.rs +++ b/core/src/erasure.rs @@ -67,12 +67,12 @@ fn get_matrix(m: i32, k: i32, w: i32) -> Vec { matrix } -pub const ERASURE_W: i32 = 32; +const ERASURE_W: i32 = 32; // Generate coding blocks into coding // There are some alignment restrictions, blocks should be aligned by 16 bytes // which means their size should be >= 16 bytes -pub fn generate_coding_blocks(coding: &mut [&mut [u8]], data: &[&[u8]]) -> Result<()> { +fn generate_coding_blocks(coding: &mut [&mut [u8]], data: &[&[u8]]) -> Result<()> { if data.is_empty() { return Ok(()); } @@ -123,11 +123,7 @@ pub fn generate_coding_blocks(coding: &mut [&mut [u8]], data: &[&[u8]]) -> Resul // data: array of blocks to recover into // coding: arry of coding blocks // erasures: list of indices in data where blocks should be recovered -pub fn decode_blocks( - data: &mut [&mut [u8]], - coding: &mut [&mut [u8]], - erasures: &[i32], -) -> Result<()> { +fn decode_blocks(data: &mut [&mut [u8]], coding: &mut [&mut [u8]], erasures: &[i32]) -> Result<()> { if data.is_empty() { return Ok(()); }