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§
sourcefn nodes(&self) -> Vec<&NetworkNode>
fn nodes(&self) -> Vec<&NetworkNode>
Get a vec of NetworkNode
Provided Methods§
sourcefn 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,
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’