mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-29 07:57:24 +00:00
b7c6bc1ed5
* Use session::validators instead of staking::current_elected * Basic test framework. * Initialize validators, attempt to heartbeat. * Use dummy crypto for im-online testing. * Remove printlns. * Finish test, make it invalid. * Add reporting test. * Finalize the test. * Remove dumbness. * Updates. * Update AuRa * Update srml/im-online/src/tests.rs Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com> * Derive Ord * Add some more tests. * Remove stray todo. * Bump runtime version. * Bump impl-trait-for-tuples. * Enforce new version of trait-for-tuples.
24 lines
901 B
Rust
24 lines
901 B
Rust
|
|
// Copyright 2019 Parity Technologies (UK) Ltd.
|
|
// This file is part of Substrate.
|
|
|
|
// Substrate is free software: you can redistribute it and/or modify
|
|
// it under the terms of the GNU General Public License as published by
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
// (at your option) any later version.
|
|
|
|
// Substrate is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
// GNU General Public License for more details.
|
|
|
|
#![cfg_attr(not(feature = "std"), no_std)]
|
|
|
|
//! A crate which contains primitives that are useful for implementation that uses staking
|
|
//! approaches in general. Definitions related to sessions, slashing, etc go here.
|
|
|
|
pub mod offence;
|
|
|
|
/// Simple index type with which we can count sessions.
|
|
pub type SessionIndex = u32;
|