Struct solana_ledger::shred::Shredder [−][src]
pub struct Shredder {
pub slot: Slot,
pub parent_slot: Slot,
pub signing_coding_time: u128,
// some fields omitted
}
Fields
slot: Slot
parent_slot: Slot
signing_coding_time: u128
Implementations
pub fn new(
slot: Slot,
parent_slot: Slot,
keypair: Arc<Keypair>,
reference_tick: u8,
version: u16
) -> Result<Self>
pub fn entries_to_shreds(
&self,
entries: &[Entry],
is_last_in_slot: bool,
next_shred_index: u32
) -> (Vec<Shred>, Vec<Shred>, u32)
pub fn entries_to_data_shreds(
&self,
entries: &[Entry],
is_last_in_slot: bool,
next_shred_index: u32,
fec_set_offset: u32,
process_stats: &mut ProcessShredsStats
) -> (Vec<Shred>, u32)
pub fn data_shreds_to_coding_shreds(
keypair: &Keypair,
data_shreds: &[Shred],
is_last_in_slot: bool,
process_stats: &mut ProcessShredsStats
) -> Result<Vec<Shred>>
pub fn new_coding_shred_header(
slot: Slot,
index: u32,
fec_set_index: u32,
num_data: usize,
num_code: usize,
version: u16
) -> (ShredCommonHeader, CodingShredHeader)
Generates coding shreds for the data shreds in the current FEC set
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Shredder
impl UnwindSafe for Shredder
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more