Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
91 commits
Select commit Hold shift + click to select a range
8c3ec67
try dissolve_network benchmark
open-junius Feb 10, 2026
9030e64
remove collect
open-junius Feb 10, 2026
f6293d7
add on idle
open-junius Feb 11, 2026
fb3dc04
add weight meter
open-junius Feb 12, 2026
e7d60f1
on_idle hook
open-junius Feb 13, 2026
860d84d
add macro
open-junius Feb 13, 2026
5161299
need handle remove all lp
open-junius Feb 13, 2026
890f685
fix typo
open-junius Feb 13, 2026
07da3b5
update interface
open-junius Feb 13, 2026
7b0cca7
merge devnet-ready
open-junius Feb 13, 2026
4b9a6a0
cargo clippy
open-junius Feb 13, 2026
e9a67b8
add weigth for all db ops
open-junius Feb 16, 2026
8f17e84
commit Cargo.lock
open-junius Feb 16, 2026
f932ae6
commit Cargo.lock
open-junius Feb 16, 2026
71668de
commit Cargo.lock
open-junius Feb 16, 2026
85d33d6
commit Cargo.lock
open-junius Feb 16, 2026
dc8b744
commit Cargo.lock
open-junius Feb 16, 2026
08d2d34
optimize some db ops
open-junius Feb 16, 2026
50cd88c
add unit test for macro
open-junius Feb 16, 2026
2dc8630
cargo clippy
open-junius Feb 16, 2026
f3eb5bd
commit Cargo.lock
open-junius Feb 16, 2026
cc033e6
exclude the dissolved network id when registration
open-junius Feb 16, 2026
8f2add8
fix unit test
open-junius Feb 16, 2026
c9c66d8
Merge branch 'devnet-ready' into benchmark-dissolve-network
open-junius Feb 24, 2026
cbc441b
fix unit test
open-junius Feb 25, 2026
21d8e4f
fix clippy
open-junius Feb 25, 2026
f2ed907
reduce benchmark for dissolve_network
open-junius Feb 25, 2026
d489382
fix unit test
open-junius Feb 25, 2026
aabec8c
update purge netuid in mock
open-junius Feb 25, 2026
06f5cdc
fix bug, missed bonds removal
open-junius Feb 25, 2026
203628c
correct weights for dissolve network
open-junius Feb 25, 2026
984f14c
fix benchmark
open-junius Feb 26, 2026
39205fd
merge with devnet ready
open-junius Feb 26, 2026
9361813
commit Cargo.lock
open-junius Feb 26, 2026
694b833
commit Cargo.lock
open-junius Feb 26, 2026
ed7b2e3
commit Cargo.lock
open-junius Feb 26, 2026
951d04a
commit Cargo.lock
open-junius Feb 26, 2026
453db3f
fix unit test
open-junius Feb 26, 2026
7639d7e
Merge branch 'devnet-ready' into benchmark-dissolve-network
open-junius Feb 27, 2026
a861672
add subnet exist check in admin util
open-junius Feb 27, 2026
b8eac0c
add netuid exist check
open-junius Mar 2, 2026
f407896
check all clean up function
open-junius Mar 2, 2026
0ec605f
cargo clippy
open-junius Mar 2, 2026
f30093e
fix unit test
open-junius Mar 2, 2026
9cca3c6
increase balance diff
open-junius Mar 3, 2026
3c524f8
update yarn lock file
open-junius Mar 3, 2026
9eb810c
not lock yarn dep
open-junius Mar 3, 2026
ebee8a9
upgrade polkadot-api
open-junius Mar 3, 2026
7fbca9a
fix low tx fee
open-junius Mar 3, 2026
f9191d6
correct weigth in on_idle
open-junius Mar 3, 2026
3adb0b8
add batch size parameter
open-junius Mar 6, 2026
7fa4030
merge devnet ready
open-junius Mar 6, 2026
ff91f52
fix benchmark
open-junius Mar 6, 2026
807ce96
auto-update benchmark weights
github-actions[bot] Mar 6, 2026
124db65
Merge branch 'devnet-ready' into benchmark-dissolve-network
open-junius Mar 9, 2026
4c025b0
fix meter compute
open-junius Mar 9, 2026
6e59f7a
optimize a data remove
open-junius Mar 9, 2026
6c4162a
fix conflict
open-junius Mar 24, 2026
4f69abd
fix conflict
open-junius Mar 24, 2026
558d86a
cargo clippy
open-junius Mar 24, 2026
8160517
revert unneeded change
open-junius Mar 26, 2026
a86299a
Merge branch 'devnet-ready' into benchmark-dissolve-network
open-junius Mar 26, 2026
fe85492
fix purge netuid
open-junius Mar 26, 2026
78e50d1
update interface
open-junius Apr 1, 2026
4b30216
merge devnet-ready
open-junius Apr 1, 2026
45f85b6
fix conflict
open-junius Apr 2, 2026
8a0e381
get limit by remaining weight
open-junius Apr 22, 2026
82da786
merge devnet ready
open-junius Apr 22, 2026
56ea26f
commit Cargo.lock
open-junius Apr 22, 2026
0be4961
commit Cargo.lock
open-junius Apr 22, 2026
841410a
commit Cargo.lock
open-junius Apr 22, 2026
01db61b
commit Cargo.lock
open-junius Apr 22, 2026
13e1805
cargo fmt
open-junius Apr 22, 2026
94237f0
commit Cargo.lock
open-junius Apr 22, 2026
4973a8a
cargo fix
open-junius Apr 22, 2026
c763b41
save all
open-junius Apr 24, 2026
7745c71
optimize last function
open-junius Apr 27, 2026
5e7fe20
zepter run default
open-junius Apr 27, 2026
64a74fd
commit Cargo.lock
open-junius Apr 27, 2026
d31a046
complete all process
open-junius Apr 29, 2026
d43f293
commit Cargo.lock
open-junius Apr 29, 2026
712ec2e
commit Cargo.lock
open-junius Apr 29, 2026
c385a11
merge with target ready
open-junius Apr 29, 2026
8ab6734
commit Cargo.lock
open-junius Apr 29, 2026
8e85b42
commit Cargo.lock
open-junius Apr 29, 2026
12c706d
commit Cargo.lock
open-junius Apr 29, 2026
3d16cd7
cargo clippy
open-junius Apr 29, 2026
25cd3d6
cargo fix
open-junius Apr 29, 2026
e56d60f
fix eco test
open-junius Apr 29, 2026
351995e
fix unit test
open-junius Apr 29, 2026
843e62e
use checked div for testing
open-junius Apr 29, 2026
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
2 changes: 1 addition & 1 deletion .github/workflows/check-devnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
pull_request:
branches: [devnet, devnet-ready]
types: [labeled, unlabeled, synchronize, opened]

concurrency:
group: check-devnet-${{ github.ref }}
cancel-in-progress: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Build Docker Image

on:
pull_request:

concurrency:
group: check-docker-${{ github.ref }}
cancel-in-progress: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-finney.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
pull_request:
branches: [finney, main]
types: [labeled, unlabeled, synchronize, opened]

concurrency:
group: check-finney-${{ github.ref }}
cancel-in-progress: true
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/check-node-compat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
run: |
sudo DEBIAN_FRONTEND=noninteractive NEEDRESTART_MODE=a apt-get update
sudo DEBIAN_FRONTEND=noninteractive NEEDRESTART_MODE=a apt-get install -y --no-install-recommends -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" build-essential clang curl git make libssl-dev llvm libudev-dev protobuf-compiler pkg-config unzip

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
Expand All @@ -40,7 +40,7 @@ jobs:
uses: Swatinem/rust-cache@v2
with:
key: "check-node-compat-${{ matrix.version.name }}"

- name: Checkout ${{ matrix.version.name }}
uses: actions/checkout@v4
with:
Expand All @@ -50,14 +50,14 @@ jobs:
- name: Build ${{ matrix.version.name }}
working-directory: ${{ matrix.version.name }}
run: cargo build --release --locked

- name: Upload ${{ matrix.version.name }} node binary
uses: actions/upload-artifact@v4
with:
name: node-subtensor-${{ matrix.version.name }}
path: ${{ matrix.version.name }}/target/release/node-subtensor
retention-days: 1

test:
needs: [build]
runs-on: [self-hosted, type-ccx33]
Expand All @@ -67,13 +67,13 @@ jobs:
with:
name: node-subtensor-old
path: /tmp/node-subtensor-old

- name: Download new node binary
uses: actions/download-artifact@v4
with:
name: node-subtensor-new
path: /tmp/node-subtensor-new

- name: Set up Node.js
uses: actions/setup-node@v4
with:
Expand All @@ -82,7 +82,7 @@ jobs:
- name: Install npm dependencies
working-directory: ${{ github.workspace }}/.github/workflows/check-node-compat
run: npm install

- name: Run test
working-directory: ${{ github.workspace }}/.github/workflows/check-node-compat
run: npm run test
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
- devnet-ready
- devnet
- testnet

concurrency:
group: docker-${{ github.ref }}
cancel-in-progress: true
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/require-clean-merges.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
else
echo "MERGE_BRANCHES=devnet-ready devnet testnet main" >> $GITHUB_ENV
fi

- name: Add Fork Remote and Fetch PR Branch
if: github.event.pull_request.head.repo.fork == true
run: |
Expand Down Expand Up @@ -68,7 +68,7 @@ jobs:

for branch in $MERGE_BRANCHES; do
echo "Checking merge from $branch into $PR_BRANCH_REF..."

# Ensure PR branch is up to date
git reset --hard $PR_BRANCH_REF

Expand All @@ -79,7 +79,7 @@ jobs:
echo "❌ Merge conflict detected when merging $branch into $PR_BRANCH_REF"
exit 1
fi

# Abort merge if one was started, suppressing errors if no merge happened
git merge --abort 2>/dev/null || true
done
4 changes: 2 additions & 2 deletions .github/workflows/typescript-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
strategy:
matrix:
include:
- variant: release
- variant: release
flags: ""
- variant: fast
flags: "--features fast-runtime"
Expand Down Expand Up @@ -138,6 +138,6 @@ jobs:
run: pnpm install --frozen-lockfile

- name: Run tests
run: |
run: |
cd ts-tests
pnpm moonwall test ${{ matrix.test }}
37 changes: 23 additions & 14 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ FROM ${BASE_IMAGE} AS subtensor
# ---- security hardening: create least-privilege user ----
RUN addgroup --system --gid 10001 subtensor && \
adduser --system --uid 10001 --gid 10001 --home /home/subtensor --disabled-password subtensor

# Install gosu for privilege dropping
RUN apt-get update && apt-get install -y gosu && \
rm -rf /var/lib/apt/lists/*
Expand All @@ -71,7 +71,7 @@ RUN chmod +x /entrypoint.sh

EXPOSE 30333 9933 9944

# Run entrypoint as root to handle permissions, then drop to subtensor user
# Run entrypoint as root to handle permissions, then drop to subtensor user
# in the script
USER root
ENTRYPOINT ["/entrypoint.sh"]
Expand Down
4 changes: 3 additions & 1 deletion chain-extensions/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,9 @@ impl PrivilegeCmp<OriginCaller> for OriginPrivilegeCmp {

pub struct CommitmentsI;
impl CommitmentsInterface for CommitmentsI {
fn purge_netuid(_netuid: NetUid) {}
fn purge_netuid(_netuid: NetUid, remaining_weight: Weight) -> (Weight, bool) {
(remaining_weight, true)
}
}

parameter_types! {
Expand Down
4 changes: 4 additions & 0 deletions common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@ scale-info.workspace = true
serde.workspace = true
sp-arithmetic.workspace = true
sp-core.workspace = true
sp-io.workspace = true
sp-runtime.workspace = true
sp-rpc = { workspace = true, optional = true }
substrate-fixed.workspace = true
subtensor-macros.workspace = true
runtime-common.workspace = true
approx = { workspace = true, optional = true }
log.workspace = true

[lints]
workspace = true
Expand All @@ -47,8 +49,10 @@ std = [
"serde/std",
"sp-arithmetic/std",
"sp-core/std",
"sp-io/std",
"sp-runtime/std",
"sp-rpc",
"substrate-fixed/std",
"runtime-common/std",
"log/std"
]
Loading
Loading