mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-15 11:31:05 +00:00
the report mod and REPORTING keyType is no longer used (#10679)
This commit is contained in:
@@ -64,34 +64,3 @@ pub type Header = generic::Header<BlockNumber, BlakeTwo256>;
|
|||||||
pub type Block = generic::Block<Header, OpaqueExtrinsic>;
|
pub type Block = generic::Block<Header, OpaqueExtrinsic>;
|
||||||
/// Block ID.
|
/// Block ID.
|
||||||
pub type BlockId = generic::BlockId<Block>;
|
pub type BlockId = generic::BlockId<Block>;
|
||||||
|
|
||||||
/// App-specific crypto used for reporting equivocation/misbehavior in BABE and
|
|
||||||
/// GRANDPA. Any rewards for misbehavior reporting will be paid out to this
|
|
||||||
/// account.
|
|
||||||
pub mod report {
|
|
||||||
use super::{Signature, Verify};
|
|
||||||
use frame_system::offchain::AppCrypto;
|
|
||||||
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 = key_types::REPORTING;
|
|
||||||
|
|
||||||
mod app {
|
|
||||||
use sp_application_crypto::{app_crypto, sr25519};
|
|
||||||
app_crypto!(sr25519, super::KEY_TYPE);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Identity of the equivocation/misbehavior reporter.
|
|
||||||
pub type ReporterId = app::Public;
|
|
||||||
|
|
||||||
/// An `AppCrypto` type to allow submitting signed transactions using the reporting
|
|
||||||
/// application key as signer.
|
|
||||||
pub struct ReporterAppCrypto;
|
|
||||||
|
|
||||||
impl AppCrypto<<Signature as Verify>::Signer, Signature> for ReporterAppCrypto {
|
|
||||||
type RuntimeAppPublic = ReporterId;
|
|
||||||
type GenericSignature = sp_core::sr25519::Signature;
|
|
||||||
type GenericPublic = sp_core::sr25519::Public;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -1121,8 +1121,6 @@ pub mod key_types {
|
|||||||
pub const AUTHORITY_DISCOVERY: KeyTypeId = KeyTypeId(*b"audi");
|
pub const AUTHORITY_DISCOVERY: KeyTypeId = KeyTypeId(*b"audi");
|
||||||
/// Key type for staking, built-in. Identified as `stak`.
|
/// Key type for staking, built-in. Identified as `stak`.
|
||||||
pub const STAKING: KeyTypeId = KeyTypeId(*b"stak");
|
pub const STAKING: KeyTypeId = KeyTypeId(*b"stak");
|
||||||
/// Key type for equivocation reporting, built-in. Identified as `fish`.
|
|
||||||
pub const REPORTING: KeyTypeId = KeyTypeId(*b"fish");
|
|
||||||
/// A key type ID useful for tests.
|
/// A key type ID useful for tests.
|
||||||
pub const DUMMY: KeyTypeId = KeyTypeId(*b"dumy");
|
pub const DUMMY: KeyTypeId = KeyTypeId(*b"dumy");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user