Skip to content

Commit f643d8f

Browse files
authored
Merge pull request #1004 from opentensor/devnet
testnet deploy 11-19-2024 update chainspecs
2 parents 6fdf21e + 2bcdde0 commit f643d8f

File tree

8 files changed

+50921
-50939
lines changed

8 files changed

+50921
-50939
lines changed

.github/workflows/hotfixes.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ jobs:
4141
It looks like you are trying to merge a hotfix PR into `main`. If this isn't what you wanted to do, and you just wanted to make a regular PR, please close this PR, base your changes off the `devnet-ready` branch and open a new PR into `devnet ready`.
4242
4343
If you _are_ trying to merge a hotfix PR, please complete the following essential steps:
44-
1. [ ] go ahead and get this PR into `main` merged, so we can get the change in as quickly as possible!
45-
2. [ ] merge `main` into `testnet`, bumping `spec_version`
46-
3. [ ] deploy `testnet`
47-
4. [ ] merge `testnet` into `devnet`, bumping `spec_version`
48-
5. [ ] deploy `devnet`
49-
6. [ ] merge `devnet` into `devnet-ready`
44+
1. [ ] go ahead and get this PR into \`main\` merged, so we can get the change in as quickly as possible!
45+
2. [ ] merge \`main\` into \`testnet\`, bumping \`spec_version\`
46+
3. [ ] deploy \`testnet\`
47+
4. [ ] merge \`testnet\` into \`devnet\`, bumping \`spec_version\`
48+
5. [ ] deploy \`devnet\`
49+
6. [ ] merge \`devnet\` into \`devnet-ready\`
5050
5151
5252
If you do not complete these steps, your hotfix may be inadvertently removed in the future when branches are promoted to \`main\`, so it is essential that you do so.

.github/workflows/update-chainspec.yml

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ concurrency:
55
cancel-in-progress: true
66

77
on:
8-
push:
9-
branches: [main, testnet, staging, staging-ready]
8+
pull_request:
109

1110
workflow_dispatch:
1211
inputs:
@@ -24,43 +23,35 @@ jobs:
2423
runs-on: SubtensorCI
2524
permissions:
2625
contents: write
26+
if: >
27+
github.event.pull_request.head.ref != 'devnet-ready' &&
28+
github.event.pull_request.head.ref != 'devnet' &&
29+
github.event.pull_request.head.ref != 'testnet' &&
30+
github.event.pull_request.head.ref != 'main'
2731
2832
strategy:
2933
matrix:
30-
rust-branch:
31-
- nightly-2024-03-05
3234
rust-target:
3335
- x86_64-unknown-linux-gnu
3436
os:
3537
- ubuntu-latest
3638
include:
3739
- os: ubuntu-latest
3840
env:
39-
RELEASE_NAME: development
40-
RUSTV: ${{ matrix.rust-branch }}
4141
RUST_BACKTRACE: full
42-
RUST_BIN_DIR: target/${{ matrix.rust-target }}
43-
TARGET: ${{ matrix.rust-target }}
4442
steps:
4543
- name: Check-out repository under $GITHUB_WORKSPACE
46-
uses: actions/checkout@v2
44+
uses: actions/checkout@v4
4745

4846
- name: Install dependencies
4947
run: |
5048
sudo apt-get update &&
5149
sudo apt-get install -y clang curl libssl-dev llvm libudev-dev protobuf-compiler
5250
53-
- name: Install Rust ${{ matrix.rust-branch }}
54-
uses: actions-rs/[email protected]
55-
with:
56-
toolchain: ${{ matrix.rust-branch }}
57-
components: rustfmt, clippy
58-
profile: minimal
59-
6051
- name: Utilize Shared Rust Cache
6152
uses: Swatinem/[email protected]
6253
with:
63-
key: ${{ matrix.os }}-${{ env.RUST_BIN_DIR }}
54+
key: ubuntu-latest-target/x86_64-unknown-linux-gnu
6455

6556
- name: Build chainspecs
6657
run: ./scripts/build_all_chainspecs.sh

node/Cargo.toml

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -106,25 +106,16 @@ subtensor-custom-rpc-runtime-api = { path = "../pallets/subtensor/runtime-api" }
106106
substrate-build-script-utils = { workspace = true }
107107

108108
[features]
109-
default = [
110-
"rocksdb",
111-
"sql",
112-
"txpool",
113-
]
114-
sql = [
115-
"fc-db/sql",
116-
"fc-mapping-sync/sql",
117-
]
109+
default = ["rocksdb", "sql", "txpool"]
110+
fast-blocks = ["node-subtensor-runtime/fast-blocks"]
111+
sql = ["fc-db/sql", "fc-mapping-sync/sql"]
118112
rocksdb = [
119113
"sc-service/rocksdb",
120114
"fc-db/rocksdb",
121115
"fc-mapping-sync/rocksdb",
122-
"fc-rpc/rocksdb"
123-
]
124-
txpool = [
125-
"fc-rpc/txpool",
126-
"fc-rpc-core/txpool"
116+
"fc-rpc/rocksdb",
127117
]
118+
txpool = ["fc-rpc/txpool", "fc-rpc-core/txpool"]
128119

129120
# Dependencies that are only required if runtime benchmarking should be build.
130121
runtime-benchmarks = [

plain_spec_finney.json

Lines changed: 50897 additions & 50897 deletions
Large diffs are not rendered by default.

plain_spec_testfinney.json

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

raw_spec_testfinney.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"properties": {
1111
"ss58Format": 42,
1212
"tokenDecimals": 9,
13-
"tokenSymbol": "TAO"
13+
"tokenSymbol": "testTAO"
1414
},
1515
"forkBlocks": null,
1616
"badBlocks": [],

runtime/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
160160
// `spec_version`, and `authoring_version` are the same between Wasm and native.
161161
// This value is set to 100 to notify Polkadot-JS App (https://polkadot.js.org/apps) to use
162162
// the compatible custom types.
163-
spec_version: 209,
163+
spec_version: 210,
164164
impl_version: 1,
165165
apis: RUNTIME_API_VERSIONS,
166166
transaction_version: 1,

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1+
//! This crate exists for linting in CI. Look inside build.rs for reference.

0 commit comments

Comments
 (0)