Add continuous stake reporting throughout subnet dissolution lifecycle - #3101
Add continuous stake reporting throughout subnet dissolution lifecycle#3101UnArbosFour wants to merge 5 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🛡️ AI Review — Skeptic (security review)VERDICT: VULNERABLE VERY HIGH account-metadata scrutiny (50-day-old account, one public repository), moderated by repository write access and substantive merged work; no Gittensor association found. Branch: feat/subnet-state → release-449. Static analysis covered lifecycle migration and transitions, dissolution-cursor reporting, runtime APIs, weight accounting, generated SDK artifacts, dependencies, and review trust-boundary files. No additional security findings or trust-boundary changes were identified. Findings
Prior-comment reconciliation
ConclusionThe PR changes runtime storage and behavior while retaining 📜 Previous run (superseded)
# 🔍 AI Review — Auditor (domain review) has not yet run on this PR. |
|
🔄 AI review updated — Skeptic: VULNERABLE |
|
|
||
| fn current_alpha_price_all() -> Vec<SubnetPrice> { | ||
| pallet_subtensor::Pallet::<Runtime>::get_all_subnet_netuids() | ||
| pallet_subtensor::Pallet::<Runtime>::get_all_reportable_subnet_netuids() |
There was a problem hiding this comment.
[HIGH] Runtime changes ship without a spec-version bump
This PR adds runtime storage, migration logic, lifecycle transitions, and changes runtime API behavior, but VERSION.spec_version remains 449, unchanged from the base. Nodes may therefore treat native runtime code for release 449 as compatible with this different on-chain Wasm runtime. Increment the runtime spec_version for this upgrade; the PR body's claim that it was bumped does not match the diff.
|
🔄 AI review updated — Skeptic: VULNERABLE |
|
|
||
| fn current_alpha_price_all() -> Vec<SubnetPrice> { | ||
| pallet_subtensor::Pallet::<Runtime>::get_all_subnet_netuids() | ||
| pallet_subtensor::Pallet::<Runtime>::get_all_reportable_subnet_netuids() |
There was a problem hiding this comment.
[HIGH] Runtime changes ship without a spec-version bump
This PR changes runtime storage, migration logic, dissolution behavior, and runtime API results, but RuntimeVersion::spec_version remains 449. Runtime-affecting upgrades require a new spec version so nodes and clients can distinguish the new state transition and metadata. Increment spec_version and regenerate the version-coupled SDK metadata artifacts from that runtime.
|
🔄 AI review updated — Skeptic: VULNERABLE |
|
|
||
| fn current_alpha_price_all() -> Vec<SubnetPrice> { | ||
| pallet_subtensor::Pallet::<Runtime>::get_all_subnet_netuids() | ||
| pallet_subtensor::Pallet::<Runtime>::get_all_reportable_subnet_netuids() |
There was a problem hiding this comment.
[HIGH] Runtime changes ship without a spec-version bump
This PR adds runtime storage, an upgrade migration, and changes runtime API behavior, but RuntimeVersion::spec_version remains 449. Nodes can therefore treat materially different runtime code as the same specification, undermining upgrade/version detection. Increment spec_version for this runtime release.
|
🔄 AI review updated — Skeptic: VULNERABLE |
Summary
Adds continuous user-visible stake reporting throughout subnet dissolution without changing dissolution, settlement, or cleanup behavior.
Changes
SubnetStatelifecycle storage withRegistered,Started,PendingDissolution, andDissolvingstates.Operational subnet behavior remains governed by
NetworksAdded, and existing runtime API signatures remain unchanged.Testing
Follow-ups