Companion for substrate #13121 - BEEFY Equivocations support (#6593)

* runtimes: implement new BeefyApi

Signed-off-by: acatangiu <adrian@parity.io>

* rococo-runtime: add ValidateUnsigned to pallet_beefy

* update lockfile for {"substrate"}

---------

Signed-off-by: acatangiu <adrian@parity.io>
Co-authored-by: parity-processbot <>
This commit is contained in:
Adrian Catangiu
2023-02-17 12:28:48 +02:00
committed by GitHub
parent 5ca430b649
commit d009d13523
6 changed files with 303 additions and 187 deletions
+19 -1
View File
@@ -34,7 +34,7 @@ use polkadot_runtime_parachains::{
};
use authority_discovery_primitives::AuthorityId as AuthorityDiscoveryId;
use beefy_primitives::crypto::AuthorityId as BeefyId;
use beefy_primitives::crypto::{AuthorityId as BeefyId, Signature as BeefySignature};
use frame_election_provider_support::{onchain, SequentialPhragmen};
use frame_support::{
construct_runtime, parameter_types,
@@ -904,6 +904,24 @@ sp_api::impl_runtime_apis! {
// dummy implementation due to lack of BEEFY pallet.
None
}
fn submit_report_equivocation_unsigned_extrinsic(
_equivocation_proof: beefy_primitives::EquivocationProof<
BlockNumber,
BeefyId,
BeefySignature,
>,
_key_owner_proof: beefy_primitives::OpaqueKeyOwnershipProof,
) -> Option<()> {
None
}
fn generate_key_ownership_proof(
_set_id: beefy_primitives::ValidatorSetId,
_authority_id: BeefyId,
) -> Option<beefy_primitives::OpaqueKeyOwnershipProof> {
None
}
}
impl mmr::MmrApi<Block, Hash, BlockNumber> for Runtime {