mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 08:47:57 +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>;
|
||||
/// Block ID.
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user