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::{
35
35
/// imported and generated.
36
36
const GRANDPA_JUSTIFICATION_PERIOD : u32 = 512 ;
37
37
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`.
40
43
pub type HostFunctions = (
41
44
sp_io:: SubstrateHostFunctions ,
42
45
frame_benchmarking:: benchmarking:: HostFunctions ,
43
46
) ;
44
- /// Otherwise we use empty host functions for ext host functions.
45
- #[ cfg( not( feature = "runtime-benchmarks" ) ) ]
46
- pub type HostFunctions = sp_io:: SubstrateHostFunctions ;
47
47
48
48
pub type Backend = FullBackend < Block > ;
49
49
pub type Client = FullClient < Block , RuntimeApi , HostFunctions > ;
You can’t perform that action at this time.
0 commit comments