pub trait ChainUpgrade {
    // Required method
    fn nodes(&self) -> Vec<&NetworkNode>;

    // Provided method
    fn runtime_upgrade<'life0, 'async_trait>(
        &'life0 self,
        options: RuntimeUpgradeOptions,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
}

Required Methods§

source

fn nodes(&self) -> Vec<&NetworkNode>

Get a vec of NetworkNode

Provided Methods§

source

fn runtime_upgrade<'life0, 'async_trait>( &'life0 self, options: RuntimeUpgradeOptions, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Perform a runtime upgrade (with sudo)

This call ‘System.set_code_without_checks’ wrapped in ‘Sudo.sudo_unchecked_weight’

Implementors§