Skip to content

Commit

Permalink
fix runtime merge
Browse files Browse the repository at this point in the history
  • Loading branch information
orriin committed Jan 4, 2025
1 parent a82df4d commit ef98130
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 27 deletions.
3 changes: 0 additions & 3 deletions node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,6 @@ polkadot-rpc = { workspace = true }
pallet-drand = { workspace = true }
sp-crypto-ec-utils = { workspace = true }
sp-keystore = { workspace = true, default-features = false }
pallet-drand = { workspace = true }
sp-crypto-ec-utils = { workspace = true }
sp-keystore = { workspace = true, default-features = false }


# These dependencies are used for the subtensor's RPCs
Expand Down
24 changes: 0 additions & 24 deletions runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -784,19 +784,6 @@ impl pallet_grandpa::Config for Runtime {
pallet_grandpa::EquivocationReportSystem<Self, Offences, Historical, ReportLongevity>;
}

impl frame_system::offchain::SigningTypes for Runtime {
type Public = <Signature as Verify>::Signer;
type Signature = Signature;
}

impl<C> frame_system::offchain::SendTransactionTypes<C> for Runtime
where
RuntimeCall: From<C>,
{
type Extrinsic = UncheckedExtrinsic;
type OverarchingCall = RuntimeCall;
}

impl pallet_timestamp::Config for Runtime {
// A timestamp: milliseconds since the unix epoch.
type Moment = u64;
Expand Down Expand Up @@ -1557,17 +1544,6 @@ impl pallet_admin_utils::GrandpaInterface<Runtime> for GrandpaInterfaceImpl {
}
}

pub struct GrandpaInterfaceImpl;
impl pallet_admin_utils::GrandpaInterface<Runtime> for GrandpaInterfaceImpl {
fn schedule_change(
next_authorities: Vec<(pallet_grandpa::AuthorityId, u64)>,
in_blocks: BlockNumber,
forced: Option<BlockNumber>,
) -> sp_runtime::DispatchResult {
Grandpa::schedule_change(next_authorities, in_blocks, forced)
}
}

impl pallet_admin_utils::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type Grandpa = GrandpaInterfaceImpl;
Expand Down

0 comments on commit ef98130

Please sign in to comment.