pub trait AlephSudoApi {
    // Required methods
    fn set_emergency_finalizer<'life0, 'async_trait>(
        &'life0 self,
        finalizer: AccountId,
        status: TxStatus
    ) -> Pin<Box<dyn Future<Output = Result<TxInfo>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn schedule_finality_version_change<'life0, 'async_trait>(
        &'life0 self,
        version: u32,
        session: SessionIndex,
        status: TxStatus
    ) -> Pin<Box<dyn Future<Output = Result<TxInfo>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Pallet aleph API that requires sudo.

Required Methods§

source

fn set_emergency_finalizer<'life0, 'async_trait>( &'life0 self, finalizer: AccountId, status: TxStatus ) -> Pin<Box<dyn Future<Output = Result<TxInfo>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

Sets the emergency finalization key.

  • finalizer - a new finalizer key
  • status - a TxStatus of a tx to wait for
Returns

Block hash of block where transaction was put or error

source

fn schedule_finality_version_change<'life0, 'async_trait>( &'life0 self, version: u32, session: SessionIndex, status: TxStatus ) -> Pin<Box<dyn Future<Output = Result<TxInfo>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

Schedules a finality version change for a future session.

  • version - next version of the finalizer
  • session - from which session the next version applies
  • status - a TxStatus of a tx to wait for
Returns

Block hash of block where transaction was put or error

Implementors§