Function sc_consensus_babe::revert

source ·
pub fn revert<Block, Client, Backend>(
    client: Arc<Client>,
    backend: Arc<Backend>,
    blocks: NumberFor<Block>
) -> ClientResult<()>where
    Block: BlockT,
    Client: AuxStore + HeaderMetadata<Block, Error = Error> + HeaderBackend<Block> + ProvideRuntimeApi<Block> + UsageProvider<Block>,
    Client::Api: BabeApi<Block>,
    Backend: BackendT<Block>,
Expand description

Reverts protocol aux data to at most the last finalized block. In particular, epoch-changes and block weights announced after the revert point are removed.