pub struct MetaBlockV3 {Show 21 fields
pub nonce: u64,
pub epoch: u32,
pub round: u64,
pub timestamp_ms: u64,
pub shard_info: Vec<ShardData>,
pub peer_info: Vec<PeerData>,
pub leader_signature: Bytes,
pub prev_hash: Bytes,
pub prev_rand_seed: Bytes,
pub rand_seed: Bytes,
pub mini_block_headers: Vec<MiniBlockHeader>,
pub epoch_change_proposed: bool,
pub epoch_start: Option<EpochStart>,
pub chain_id: Bytes,
pub software_version: Bytes,
pub reserved: Bytes,
pub gas_limit: u64,
pub tx_count: u32,
pub last_execution_result: Option<MetaExecutionResultInfo>,
pub execution_results: Vec<MetaExecutionResult>,
pub shard_info_proposal: Vec<ShardDataProposal>,
}Expand description
MetaBlockV3 holds all the fields needed for a meta block v3. This is the part that is being hashed and run through consensus.
Fields§
§nonce: u64§epoch: u32§round: u64§timestamp_ms: u64§shard_info: Vec<ShardData>§peer_info: Vec<PeerData>§leader_signature: Bytes§prev_hash: Bytes§prev_rand_seed: Bytes§rand_seed: Bytes§mini_block_headers: Vec<MiniBlockHeader>§epoch_change_proposed: bool§epoch_start: Option<EpochStart>§chain_id: Bytes§software_version: Bytes§reserved: Bytes§gas_limit: u64§tx_count: u32§last_execution_result: Option<MetaExecutionResultInfo>§execution_results: Vec<MetaExecutionResult>§shard_info_proposal: Vec<ShardDataProposal>Trait Implementations§
Source§impl Clone for MetaBlockV3
impl Clone for MetaBlockV3
Source§fn clone(&self) -> MetaBlockV3
fn clone(&self) -> MetaBlockV3
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MetaBlockV3
impl Debug for MetaBlockV3
Source§impl Default for MetaBlockV3
impl Default for MetaBlockV3
Source§impl Message for MetaBlockV3
impl Message for MetaBlockV3
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for MetaBlockV3
impl PartialEq for MetaBlockV3
impl StructuralPartialEq for MetaBlockV3
Auto Trait Implementations§
impl !Freeze for MetaBlockV3
impl RefUnwindSafe for MetaBlockV3
impl Send for MetaBlockV3
impl Sync for MetaBlockV3
impl Unpin for MetaBlockV3
impl UnsafeUnpin for MetaBlockV3
impl UnwindSafe for MetaBlockV3
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request