Struct hersir::config::BlockchainBuilder
source · pub struct BlockchainBuilder {
blockchain: BlockchainConfiguration,
}
Fields§
§blockchain: BlockchainConfiguration
Implementations§
source§impl BlockchainBuilder
impl BlockchainBuilder
pub fn block0_date(self, block0_date: SecondsSinceUnixEpoch) -> Self
pub fn block_content_max_size( self, block_content_max_size: BlockContentMaxSize ) -> Self
pub fn committee(self, committee_id: CommitteeIdDef) -> Self
pub fn consensus(self, consensus: ConsensusVersion) -> Self
pub fn consensus_genesis_praos_active_slot_coeff( self, coeff: ActiveSlotCoefficient ) -> Self
pub fn discrimination(self, discrimination: Discrimination) -> Self
pub fn committees(self, committees: Vec<CommitteeIdDef>) -> Self
pub fn external_consensus_leader_ids( self, external_consensus_leader_ids: Vec<ConsensusLeaderId> ) -> Self
pub fn leader<S: Into<NodeAlias>>(self, alias: S) -> Self
pub fn leaders<S: Into<NodeAlias>>(self, aliases: Vec<S>) -> Self
pub fn linear_fee(self, linear_fee: LinearFee) -> Self
pub fn slot_duration(self, slot_duration: u8) -> Self
pub fn slots_per_epoch(self, slots_per_epoch: u32) -> Self
pub fn tx_max_expiry_epochs(self, tx_max_expiry_epochs: Option<u8>) -> Self
pub fn build(self) -> BlockchainConfiguration
Trait Implementations§
source§impl Default for BlockchainBuilder
impl Default for BlockchainBuilder
source§fn default() -> BlockchainBuilder
fn default() -> BlockchainBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for BlockchainBuilder
impl Send for BlockchainBuilder
impl Sync for BlockchainBuilder
impl Unpin for BlockchainBuilder
impl UnwindSafe for BlockchainBuilder
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