#[repr(C)]pub struct ProposalHeader {
pub ext: ExtensionPoint,
pub network_hash: NetworkHash,
pub config_hash: ConfigHash,
pub proposer: ValidatorID,
pub block_timepoint: TimePoint,
pub block_height: BlockHeight,
pub txs_hash: TxsHash,
pub storage_hash: StorageShortHash,
pub events_hash: EventsHash,
}Expand description
Header of a proposed block.
The consensus-facing summary of block execution: the fixed inputs of the
proposal together with the deterministic outputs of executing its
transactions. ConsensusValue embeds this header directly, so every field
is part of the block identity.
Travels on network.
Fields§
§ext: ExtensionPoint§network_hash: NetworkHashThe hash of the network name, separating this network’s blocks from those of other networks.
config_hash: ConfigHashThe hash of the post-block ConfigHashPreimage: the storage cost
model, network configuration and default wallet.
proposer: ValidatorIDBlock proposer. Nodes missing block data fetch it from the proposer.
block_timepoint: TimePointThe block’s timepoint, fixed by the coordinator before execution begins.
block_height: BlockHeightThe height of this block.
txs_hash: TxsHashThe Merkle root hash of the set of the block’s TransactionHashes.
Body hashes, not the SignedTransactionHashes ProposalTxs names
the transactions by, so one body appears in the set once.
storage_hash: StorageShortHashThe hash of the storage contents after this block is applied.
events_hash: EventsHashThe Merkle root hash of the events.
Trait Implementations§
Source§impl Clone for ProposalHeader
impl Clone for ProposalHeader
Source§fn clone(&self) -> ProposalHeader
fn clone(&self) -> ProposalHeader
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl ConstMaxSize for ProposalHeader
impl ConstMaxSize for ProposalHeader
Source§impl ConstMaxSize for ProposalHeader
impl ConstMaxSize for ProposalHeader
Source§impl Debug for ProposalHeader
impl Debug for ProposalHeader
Source§impl<'de> Deserialize<'de> for ProposalHeader
impl<'de> Deserialize<'de> for ProposalHeader
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ProposalHeader, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ProposalHeader, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl EncodesAs<ProposalHeader> for ProposalHeader
impl Eq for ProposalHeader
Source§impl Hash for ProposalHeader
impl Hash for ProposalHeader
Source§impl JsonSchema for ProposalHeader
impl JsonSchema for ProposalHeader
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl Ord for ProposalHeader
impl Ord for ProposalHeader
Source§fn cmp(&self, other: &ProposalHeader) -> Ordering
fn cmp(&self, other: &ProposalHeader) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for ProposalHeader
impl PartialEq for ProposalHeader
Source§impl PartialOrd for ProposalHeader
impl PartialOrd for ProposalHeader
Source§impl<'_r> ReadXDR<'_r> for ProposalHeader
impl<'_r> ReadXDR<'_r> for ProposalHeader
Source§fn read_xdr<R>(r: &mut R) -> Result<ProposalHeader, ReadError>where
R: Reader<'_r>,
fn read_xdr<R>(r: &mut R) -> Result<ProposalHeader, ReadError>where
R: Reader<'_r>,
Source§fn read_xdr_in_place<R, '__xdrs_s>(
r: &mut R,
__xdrs_slot: Slot<'__xdrs_s, ProposalHeader>,
) -> Result<Init<'__xdrs_s, ProposalHeader>, ReadError>where
R: Reader<'_r>,
fn read_xdr_in_place<R, '__xdrs_s>(
r: &mut R,
__xdrs_slot: Slot<'__xdrs_s, ProposalHeader>,
) -> Result<Init<'__xdrs_s, ProposalHeader>, ReadError>where
R: Reader<'_r>,
slot, without first building it
on the stack. Read more