move find_author() call to babe & grandpa directly

This commit is contained in:
akildemir
2024-06-26 13:00:39 +03:00
parent 3e99d68cfe
commit dc4259411d
4 changed files with 4 additions and 24 deletions

View File

@@ -52,7 +52,6 @@ serai-primitives = { path = "../primitives", default-features = false }
serai-abi = { path = "../abi", default-features = false, features = ["serde"] }
pallet-timestamp = { git = "https://github.com/serai-dex/substrate", default-features = false }
pallet-authorship = { git = "https://github.com/serai-dex/substrate", default-features = false }
pallet-transaction-payment = { git = "https://github.com/serai-dex/substrate", default-features = false }
@@ -107,7 +106,6 @@ std = [
"serai-abi/serde",
"pallet-timestamp/std",
"pallet-authorship/std",
"pallet-transaction-payment/std",

View File

@@ -273,15 +273,6 @@ where
type OverarchingCall = RuntimeCall;
}
// for validating equivocation evidences.
// The following runtime construction doesn't actually implement the pallet as doing so is
// unnecessary
// TODO: Replace the requirement on Config for a requirement on FindAuthor directly
impl pallet_authorship::Config for Runtime {
type FindAuthor = ValidatorSets;
type EventHandler = ();
}
// Maximum number of authorities per session.
pub type MaxAuthorities = ConstU32<{ validator_sets::primitives::MAX_KEY_SHARES_PER_SET }>;
@@ -317,6 +308,8 @@ impl grandpa::Config for Runtime {
type KeyOwnerProof = MembershipProof<Self>;
type EquivocationReportSystem =
grandpa::EquivocationReportSystem<Self, ValidatorSets, ValidatorSets, ReportLongevity>;
type FindAuthor = Babe;
}
pub type Executive = frame_executive::Executive<