Skip to content

Commit

Permalink
export WeightInfo to allow different node template benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
nbaztec committed Aug 18, 2023
1 parent 23b162a commit ce763aa
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
3 changes: 1 addition & 2 deletions pallets/author-inherent/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ use sp_inherents::{InherentIdentifier, IsFatalError};
use sp_runtime::{ConsensusEngineId, RuntimeString};

mod exec;
pub use crate::weights::WeightInfo;
pub use exec::BlockExecutor;

pub use pallet::*;

#[cfg(any(test, feature = "runtime-benchmarks"))]
Expand All @@ -46,7 +46,6 @@ mod tests;
#[frame_support::pallet]
pub mod pallet {
use super::*;
use crate::weights::WeightInfo;
use frame_support::pallet_prelude::*;
use frame_system::pallet_prelude::*;

Expand Down
2 changes: 1 addition & 1 deletion pallets/author-mapping/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ use frame_support::pallet;
pub use pallet::*;

pub mod weights;
use weights::WeightInfo;
pub use weights::WeightInfo;
#[cfg(any(test, feature = "runtime-benchmarks"))]
mod benchmarks;
#[cfg(test)]
Expand Down
3 changes: 2 additions & 1 deletion pallets/author-slot-filter/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

use frame_support::pallet;

pub use crate::weights::WeightInfo;
pub use pallet::*;

#[cfg(any(test, feature = "runtime-benchmarks"))]
Expand All @@ -44,7 +45,7 @@ mod tests;
#[allow(deprecated)]
#[pallet]
pub mod pallet {

use super::*;
use crate::num::NonZeroU32;
use crate::weights::WeightInfo;
use frame_support::{pallet_prelude::*, traits::Randomness};
Expand Down
2 changes: 1 addition & 1 deletion pallets/randomness/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@

#![cfg_attr(not(feature = "std"), no_std)]

pub use crate::weights::WeightInfo;
use frame_support::pallet;
pub use pallet::*;
use sp_std::vec::Vec;
Expand All @@ -77,7 +78,6 @@ pub trait GetBabeData<EpochIndex, Randomness> {
#[pallet]
pub mod pallet {
use super::*;
use crate::weights::WeightInfo;
use frame_support::traits::{Currency, ExistenceRequirement::KeepAlive};
use frame_support::{pallet_prelude::*, PalletId};
use frame_system::pallet_prelude::*;
Expand Down

0 comments on commit ce763aa

Please sign in to comment.