Struct basic_authority::BasicAuthority [−][src]
Engine using BasicAuthority
, trivial proof-of-authority consensus.
Implementations
impl BasicAuthority
[src]
pub fn new(our_params: BasicAuthorityParams, mashina: Machine) -> Self
[src]
Create a new instance of BasicAuthority engine
Trait Implementations
impl Engine for BasicAuthority
[src]
fn name(&self) -> &str
[src]
fn mashina(&self) -> &Machine
[src]
fn seal_fields(&self, _header: &Header) -> usize
[src]
fn sealing_state(&self) -> SealingState
[src]
fn generate_seal(&self, block: &ExecutedBlock, _parent: &Header) -> Seal
[src]
Attempt to seal the block internally.
fn verify_local_seal(&self, _header: &Header) -> Result<(), Error>
[src]
fn verify_block_external(&self, header: &Header) -> Result<(), Error>
[src]
fn genesis_epoch_data(
&self,
header: &Header,
call: &Call<'_>
) -> Result<Vec<u8>, String>
[src]
&self,
header: &Header,
call: &Call<'_>
) -> Result<Vec<u8>, String>
fn signals_epoch_end(
&self,
_header: &Header,
_auxiliary: AuxiliaryData<'_>
) -> EpochChange
[src]
&self,
_header: &Header,
_auxiliary: AuxiliaryData<'_>
) -> EpochChange
fn is_epoch_end(
&self,
chain_head: &Header,
_finalized: &[H256],
_chain: &Headers<'_, Header>,
_transition_store: &PendingTransitionStore<'_>
) -> Option<Vec<u8>>
[src]
&self,
chain_head: &Header,
_finalized: &[H256],
_chain: &Headers<'_, Header>,
_transition_store: &PendingTransitionStore<'_>
) -> Option<Vec<u8>>
fn is_epoch_end_light(
&self,
chain_head: &Header,
chain: &Headers<'_, Header>,
transition_store: &PendingTransitionStore<'_>
) -> Option<Vec<u8>>
[src]
&self,
chain_head: &Header,
chain: &Headers<'_, Header>,
transition_store: &PendingTransitionStore<'_>
) -> Option<Vec<u8>>
fn epoch_verifier<'a>(
&self,
header: &Header,
proof: &'a [u8]
) -> ConstructedVerifier<'a>
[src]
&self,
header: &Header,
proof: &'a [u8]
) -> ConstructedVerifier<'a>
fn set_signer(&self, signer: Option<Box<dyn EngineSigner>>)
[src]
fn sign(&self, hash: H256) -> Result<Signature, Error>
[src]
fn register_client(&self, client: Weak<dyn EngineClient>)
[src]
fn params(&self) -> &CommonParams
[src]
pub fn extra_info(&self, _header: &Header) -> BTreeMap<String, String>
[src]
pub fn maximum_uncle_count(&self, _block: u64) -> usize
[src]
pub fn maximum_gas_limit(&self) -> Option<U256>
[src]
pub fn on_new_block(
&self,
_block: &mut ExecutedBlock,
_epoch_begin: bool
) -> Result<(), VapcoreError>
[src]
&self,
_block: &mut ExecutedBlock,
_epoch_begin: bool
) -> Result<(), VapcoreError>
pub fn on_close_block(
&self,
_block: &mut ExecutedBlock,
_parent_header: &Header
) -> Result<(), VapcoreError>
[src]
&self,
_block: &mut ExecutedBlock,
_parent_header: &Header
) -> Result<(), VapcoreError>
pub fn on_seal_block(
&self,
_block: &mut ExecutedBlock
) -> Result<(), VapcoreError>
[src]
&self,
_block: &mut ExecutedBlock
) -> Result<(), VapcoreError>
pub fn generate_engine_transactions(
&self,
_block: &ExecutedBlock
) -> Result<Vec<SignedTransaction, Global>, VapcoreError>
[src]
&self,
_block: &ExecutedBlock
) -> Result<Vec<SignedTransaction, Global>, VapcoreError>
pub fn should_reseal_on_update(&self) -> bool
[src]
pub fn verify_block_basic(&self, _header: &Header) -> Result<(), VapcoreError>
[src]
pub fn verify_block_unordered(
&self,
_header: &Header
) -> Result<(), VapcoreError>
[src]
&self,
_header: &Header
) -> Result<(), VapcoreError>
pub fn verify_block_family(
&self,
_header: &Header,
_parent: &Header
) -> Result<(), VapcoreError>
[src]
&self,
_header: &Header,
_parent: &Header
) -> Result<(), VapcoreError>
pub fn populate_from_parent(&self, _header: &mut Header, _parent: &Header)
[src]
pub fn handle_message(&self, _message: &[u8]) -> Result<(), EngineError>
[src]
pub fn step(&self)
[src]
pub fn snapshot_mode(&self) -> Snapshotting
[src]
pub fn open_block_header_timestamp(&self, parent_timestamp: u64) -> u64
[src]
pub fn is_timestamp_valid(
&self,
header_timestamp: u64,
parent_timestamp: u64
) -> bool
[src]
&self,
header_timestamp: u64,
parent_timestamp: u64
) -> bool
pub fn ancestry_actions(
&self,
_header: &Header,
_ancestry: &mut dyn Iterator<Item = ExtendedHeader>
) -> Vec<AncestryAction, Global>
[src]
&self,
_header: &Header,
_ancestry: &mut dyn Iterator<Item = ExtendedHeader>
) -> Vec<AncestryAction, Global>
pub fn executive_author(&self, header: &Header) -> Result<H160, VapcoreError>
[src]
pub fn gas_limit_override(&self, _header: &Header) -> Option<U256>
[src]
pub fn schedule(&self, block_number: u64) -> Schedule
[src]
pub fn builtins(&self) -> &BTreeMap<H160, Builtin>
[src]
pub fn builtin(&self, a: &H160, block_number: u64) -> Option<&Builtin>
[src]
pub fn maximum_extra_data_size(&self) -> usize
[src]
pub fn account_start_nonce(&self, block: u64) -> U256
[src]
pub fn signing_chain_id(&self, env_info: &EnvInfo) -> Option<u64>
[src]
pub fn verify_transaction_basic(
&self,
t: &UnverifiedTransaction,
header: &Header
) -> Result<(), Error>
[src]
&self,
t: &UnverifiedTransaction,
header: &Header
) -> Result<(), Error>
pub fn decode_transaction(
&self,
transaction: &[u8]
) -> Result<UnverifiedTransaction, Error>
[src]
&self,
transaction: &[u8]
) -> Result<UnverifiedTransaction, Error>
pub fn min_gas_limit(&self) -> U256
[src]
Auto Trait Implementations
impl !RefUnwindSafe for BasicAuthority
impl Send for BasicAuthority
impl Sync for BasicAuthority
impl Unpin for BasicAuthority
impl !UnwindSafe for BasicAuthority
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,