mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 11:07:56 +00:00
grandpa: missing equivocation reporting nits (#5953)
* primitives: move reporting key type to common key types * session: remove useless methods on MembershipProof * grandpa: remove std special-casing when checking signatures * grandpa: add some more docs * grandpa: use proper error types rather than strings
This commit is contained in:
@@ -69,11 +69,11 @@ pub type BlockId = generic::BlockId<Block>;
|
||||
pub mod report {
|
||||
use super::{Signature, Verify};
|
||||
use frame_system::offchain::AppCrypto;
|
||||
use sp_core::crypto::KeyTypeId;
|
||||
use sp_core::crypto::{key_types, KeyTypeId};
|
||||
|
||||
/// Key type for the reporting module. Used for reporting BABE and GRANDPA
|
||||
/// equivocations.
|
||||
pub const KEY_TYPE: KeyTypeId = KeyTypeId(*b"fish");
|
||||
pub const KEY_TYPE: KeyTypeId = key_types::REPORTING;
|
||||
|
||||
mod app {
|
||||
use sp_application_crypto::{app_crypto, sr25519};
|
||||
|
||||
Reference in New Issue
Block a user