Skip to main content

VersionedBlockPayload

Trait VersionedBlockPayload 

Source
pub trait VersionedBlockPayload {
    // Required methods
    fn height(&self) -> &BlockHeight;
    fn consensus_header(&self) -> &ConsensusHeader<Empty>;
    fn application_header(&self) -> &ApplicationHeader<Empty>;
    fn registrations(&self) -> &RegistrationsPerTable;
    fn transactions(&self) -> Vec<CompressedTransaction>;
    fn partial_block_header(&self) -> PartialBlockHeader;
}
Expand description

A compressed block payload MUST implement this trait It is used to provide a convenient interface for usage within compression

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§