diff --git a/.github/workflows/docker-localnet.yml b/.github/workflows/docker-localnet.yml index 37e82460ff..3f24cd169d 100644 --- a/.github/workflows/docker-localnet.yml +++ b/.github/workflows/docker-localnet.yml @@ -59,7 +59,8 @@ jobs: - name: Patch non-fast-block node run: | - sed -i 's|7 \* 24 \* 60 \* 60 / 12 // 7 days|5 // Only 5 blocks for tests|' runtime/src/lib.rs + perl -0777 -i -pe 's|7 \* 24 \* 60 \* 60 / 12 // 7 days|5 // Only 5 blocks for tests|' runtime/src/lib.rs + perl -0777 -i -pe 's|pub fn DefaultPendingCooldown\(\) -> u64 \{\s*if cfg!\(feature = "fast-blocks"\) \{\s*return 15;\s*\}\s*7_200\s*\}|pub fn DefaultPendingCooldown() -> u64 {\n 15\n }|g' pallets/subtensor/src/lib.rs - name: Build and push Docker image uses: docker/build-push-action@v6 diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 2c1a11d94b..a70315d324 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -207,7 +207,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { // `spec_version`, and `authoring_version` are the same between Wasm and native. // This value is set to 100 to notify Polkadot-JS App (https://polkadot.js.org/apps) to use // the compatible custom types. - spec_version: 266, + spec_version: 267, impl_version: 1, apis: RUNTIME_API_VERSIONS, transaction_version: 1,