Struct loki::block::BlockBuilder
source · pub struct BlockBuilder {
block_date: BlockDate,
consensus_protocol: ConsensusVersion,
contents: Option<Contents>,
signing_key: Option<SigningKey<Ed25519>>,
invalid_hash: bool,
invalid_signature: bool,
parent_block_header: Header,
stake_pool: Option<StakePool>,
}
Fields§
§block_date: BlockDate
§consensus_protocol: ConsensusVersion
§contents: Option<Contents>
§signing_key: Option<SigningKey<Ed25519>>
§invalid_hash: bool
§invalid_signature: bool
§parent_block_header: Header
§stake_pool: Option<StakePool>
Implementations§
source§impl BlockBuilder
impl BlockBuilder
pub fn bft(block_date: BlockDate, parent_block_header: Header) -> Self
pub fn genesis_praos(block_date: BlockDate, parent_block_header: Header) -> Self
pub fn contents(self, contents: Contents) -> Self
pub fn signing_key(self, signing_key: SigningKey<Ed25519>) -> Self
pub fn invalid_hash(self) -> Self
pub fn invalid_signature(self) -> Self
pub fn stake_pool(self, stake_pool: StakePool) -> Self
pub fn build(self) -> Block
Auto Trait Implementations§
impl RefUnwindSafe for BlockBuilder
impl Send for BlockBuilder
impl Sync for BlockBuilder
impl Unpin for BlockBuilder
impl UnwindSafe for BlockBuilder
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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