File tree 5 files changed +14
-15
lines changed
5 files changed +14
-15
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ COPY . /build
28
28
WORKDIR /build
29
29
30
30
# Build the project
31
- RUN cargo build -p node-subtensor --profile production --features="runtime-benchmarks metadata-hash" --locked
31
+ RUN cargo build -p node-subtensor --profile production --features="metadata-hash" --locked
32
32
33
33
# Verify the binary was produced
34
34
RUN test -e /build/target/production/node-subtensor
Original file line number Diff line number Diff line change 51
51
52
52
production :
53
53
@ echo " Running cargo build with metadata-hash generation..."
54
- cargo + {{ RUSTV}} build --profile production --features=" runtime-benchmarks metadata-hash"
54
+ cargo + {{ RUSTV}} build --profile production --features=" metadata-hash"
Original file line number Diff line number Diff line change @@ -36,12 +36,12 @@ impl HostFunctions for ExecutorDispatch {
36
36
}
37
37
38
38
impl sc_executor:: NativeExecutionDispatch for ExecutorDispatch {
39
- // Only enable the benchmarking host functions when we actually want to benchmark.
40
- #[ cfg( feature = "runtime-benchmarks" ) ]
39
+ // Always enable runtime benchmark host functions, the genesis state
40
+ // was built with them so we're stuck with them forever.
41
+ //
42
+ // They're just a noop, never actually get used if the runtime was not compiled with
43
+ // `runtime-benchmarks`.
41
44
type ExtendHostFunctions = frame_benchmarking:: benchmarking:: HostFunctions ;
42
- // Otherwise we only use the default Substrate host functions.
43
- #[ cfg( not( feature = "runtime-benchmarks" ) ) ]
44
- type ExtendHostFunctions = ( ) ;
45
45
46
46
fn dispatch ( method : & str , data : & [ u8 ] ) -> Option < Vec < u8 > > {
47
47
node_subtensor_runtime:: api:: dispatch ( method, data)
Original file line number Diff line number Diff line change 1
- cargo build --profile production --features " runtime-benchmarks metadata-hash"
2
-
1
+ cargo build --profile production --features " metadata-hash"
Original file line number Diff line number Diff line change 3
3
# Check if `--no-purge` passed as a parameter
4
4
NO_PURGE=0
5
5
for arg in " $@ " ; do
6
- if [ " $arg " = " --no-purge" ]; then
7
- NO_PURGE=1
8
- break
9
- fi
6
+ if [ " $arg " = " --no-purge" ]; then
7
+ NO_PURGE=1
8
+ break
9
+ fi
10
10
done
11
11
12
12
# Determine the directory this script resides in. This allows invoking it from any location.
@@ -25,13 +25,13 @@ if [ "$fast_blocks" == "False" ]; then
25
25
echo " fast_blocks is Off"
26
26
: " ${CHAIN:= local} "
27
27
: " ${BUILD_BINARY:= 1} "
28
- : " ${FEATURES:= " pow-faucet runtime-benchmarks " } "
28
+ : " ${FEATURES:= " pow-faucet" } "
29
29
else
30
30
# Block of code to execute if fast_blocks is not False
31
31
echo " fast_blocks is On"
32
32
: " ${CHAIN:= local} "
33
33
: " ${BUILD_BINARY:= 1} "
34
- : " ${FEATURES:= " pow-faucet runtime-benchmarks fast-blocks" } "
34
+ : " ${FEATURES:= " pow-faucet fast-blocks" } "
35
35
fi
36
36
37
37
SPEC_PATH=" ${SCRIPT_DIR} /specs/"
You can’t perform that action at this time.
0 commit comments