Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testnet deploy 11-19-2024 update chainspecs #1004

Merged
merged 18 commits into from
Nov 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/hotfixes.yml
Original file line number Diff line number Diff line change
@@ -41,12 +41,12 @@ jobs:
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`.

If you _are_ trying to merge a hotfix PR, please complete the following essential steps:
1. [ ] go ahead and get this PR into `main` merged, so we can get the change in as quickly as possible!
2. [ ] merge `main` into `testnet`, bumping `spec_version`
3. [ ] deploy `testnet`
4. [ ] merge `testnet` into `devnet`, bumping `spec_version`
5. [ ] deploy `devnet`
6. [ ] merge `devnet` into `devnet-ready`
1. [ ] go ahead and get this PR into \`main\` merged, so we can get the change in as quickly as possible!
2. [ ] merge \`main\` into \`testnet\`, bumping \`spec_version\`
3. [ ] deploy \`testnet\`
4. [ ] merge \`testnet\` into \`devnet\`, bumping \`spec_version\`
5. [ ] deploy \`devnet\`
6. [ ] merge \`devnet\` into \`devnet-ready\`


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.
25 changes: 8 additions & 17 deletions .github/workflows/update-chainspec.yml
Original file line number Diff line number Diff line change
@@ -5,8 +5,7 @@ concurrency:
cancel-in-progress: true

on:
push:
branches: [main, testnet, staging, staging-ready]
pull_request:

workflow_dispatch:
inputs:
@@ -24,43 +23,35 @@ jobs:
runs-on: SubtensorCI
permissions:
contents: write
if: >
github.event.pull_request.head.ref != 'devnet-ready' &&
github.event.pull_request.head.ref != 'devnet' &&
github.event.pull_request.head.ref != 'testnet' &&
github.event.pull_request.head.ref != 'main'

strategy:
matrix:
rust-branch:
- nightly-2024-03-05
rust-target:
- x86_64-unknown-linux-gnu
os:
- ubuntu-latest
include:
- os: ubuntu-latest
env:
RELEASE_NAME: development
RUSTV: ${{ matrix.rust-branch }}
RUST_BACKTRACE: full
RUST_BIN_DIR: target/${{ matrix.rust-target }}
TARGET: ${{ matrix.rust-target }}
steps:
- name: Check-out repository under $GITHUB_WORKSPACE
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Install dependencies
run: |
sudo apt-get update &&
sudo apt-get install -y clang curl libssl-dev llvm libudev-dev protobuf-compiler

- name: Install Rust ${{ matrix.rust-branch }}
uses: actions-rs/toolchain@v1.0.6
with:
toolchain: ${{ matrix.rust-branch }}
components: rustfmt, clippy
profile: minimal

- name: Utilize Shared Rust Cache
uses: Swatinem/rust-cache@v2.2.1
with:
key: ${{ matrix.os }}-${{ env.RUST_BIN_DIR }}
key: ubuntu-latest-target/x86_64-unknown-linux-gnu

- name: Build chainspecs
run: ./scripts/build_all_chainspecs.sh
19 changes: 5 additions & 14 deletions node/Cargo.toml
Original file line number Diff line number Diff line change
@@ -106,25 +106,16 @@ subtensor-custom-rpc-runtime-api = { path = "../pallets/subtensor/runtime-api" }
substrate-build-script-utils = { workspace = true }

[features]
default = [
"rocksdb",
"sql",
"txpool",
]
sql = [
"fc-db/sql",
"fc-mapping-sync/sql",
]
default = ["rocksdb", "sql", "txpool"]
fast-blocks = ["node-subtensor-runtime/fast-blocks"]
sql = ["fc-db/sql", "fc-mapping-sync/sql"]
rocksdb = [
"sc-service/rocksdb",
"fc-db/rocksdb",
"fc-mapping-sync/rocksdb",
"fc-rpc/rocksdb"
]
txpool = [
"fc-rpc/txpool",
"fc-rpc-core/txpool"
"fc-rpc/rocksdb",
]
txpool = ["fc-rpc/txpool", "fc-rpc-core/txpool"]

# Dependencies that are only required if runtime benchmarking should be build.
runtime-benchmarks = [
101,794 changes: 50,897 additions & 50,897 deletions plain_spec_finney.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions plain_spec_testfinney.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion raw_spec_testfinney.json
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@
"properties": {
"ss58Format": 42,
"tokenDecimals": 9,
"tokenSymbol": "TAO"
"tokenSymbol": "testTAO"
},
"forkBlocks": null,
"badBlocks": [],
2 changes: 1 addition & 1 deletion runtime/src/lib.rs
Original file line number Diff line number Diff line change
@@ -160,7 +160,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: 209,
spec_version: 210,
impl_version: 1,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -1 +1 @@

//! This crate exists for linting in CI. Look inside build.rs for reference.