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:
André Silva
2020-05-12 12:17:33 +01:00
committed by GitHub
parent 871761694e
commit ab208837fa
6 changed files with 32 additions and 41 deletions
+2 -2
View File
@@ -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};