Module pallet_session::historical::offchain [−][src]
Expand description
Off-chain logic for creating a proof based data provided by on-chain logic.
Validator-set extracting an iterator from an off-chain worker stored list containing
historical validator-sets.
Based on the logic of historical slashing, but the validation is done off-chain.
Use fn store_current_session_validator_set_to_offchain()
to store the
required data to the offchain validator set.
This is used in conjunction with ProvingTrie
and
the off-chain indexing API.
Functions
Keep the newest n
items, and prune all items older than that.
Create a proof based on the data available in the off-chain database.
Attempt to prune anything that is older than first_to_keep
session index.