File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -35,15 +35,15 @@ use node_subtensor_runtime::{
3535/// imported and generated.
3636const GRANDPA_JUSTIFICATION_PERIOD : u32 = 512 ;
3737
38- /// Only enable the benchmarking host functions when we actually want to benchmark.
39- #[ cfg( feature = "runtime-benchmarks" ) ]
38+ /// Always enable runtime benchmark host functions, the genesis state
39+ /// was built with them so we're stuck with them forever.
40+ ///
41+ /// They're just a noop, never actually get used if the runtime was not compiled with
42+ /// `runtime-benchmarks`.
4043pub type HostFunctions = (
4144 sp_io:: SubstrateHostFunctions ,
4245 frame_benchmarking:: benchmarking:: HostFunctions ,
4346) ;
44- /// Otherwise we use empty host functions for ext host functions.
45- #[ cfg( not( feature = "runtime-benchmarks" ) ) ]
46- pub type HostFunctions = sp_io:: SubstrateHostFunctions ;
4747
4848pub type Backend = FullBackend < Block > ;
4949pub type Client = FullClient < Block , RuntimeApi , HostFunctions > ;
You can’t perform that action at this time.
0 commit comments