mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 19:21:13 +00:00
Make Documentation Examples Compile (#2310)
* opening and closing links * sudo example compiles * add Aura after it was merged to master * Timestamp doc testing passes * Timestamp doc testing works, extraneous lines commented out * balances * remove extern crate line * Removed unneeded code snippet from aura * make consensus compiles * executive compiles * cleanup unnecessary lines * staking (removed examples that are just copies of tests) * Apply suggestions from code review * unindent example
This commit is contained in:
committed by
Bastian Köcher
parent
e31cd26a9e
commit
61e63a04fb
@@ -29,26 +29,6 @@
|
||||
//!
|
||||
//! - `slot_duration` - Determine the Aura slot-duration based on the Timestamp module configuration.
|
||||
//!
|
||||
//! ## Usage
|
||||
//!
|
||||
//! ### Prerequisites
|
||||
//!
|
||||
//! Use of this module implies selection of the Aura algorithm.
|
||||
//!
|
||||
//! ### Simple Code Snippet
|
||||
//!
|
||||
//! Instantiate a report of skipped authorities:
|
||||
//!
|
||||
//! ```rust,ignore
|
||||
//! let mut report = AuraReport {
|
||||
//! start_slot: 6, // The first skipped slot
|
||||
//! skipped: 3, // The number of authorities skipped
|
||||
//! }
|
||||
//! ```
|
||||
//!
|
||||
//! See the `tests.rs` file in this module's directory for other simple code snippets that may make this module's
|
||||
//! functionalities clearer.
|
||||
//!
|
||||
//! ## Related Modules
|
||||
//!
|
||||
//! - [Staking](../srml_staking/index.html): The Staking module is called in Aura to enforce slashing
|
||||
|
||||
Reference in New Issue
Block a user