Custom dust collection type in subtensor#2707
Conversation
🛡️ AI Review — Skeptic (security review)VERDICT: SAFE LOW scrutiny: established repo writer with write permission, substantial contribution history, no Gittensor allowlist hit; one non-author merge-from-base commit noted but no PR-diff security impact; branch feat/account-dust-collection -> devnet-ready. Static review used only the trusted instructions and pre-fetched local context. The PR diff is limited to runtime/accounting changes: Balances dust removal now adjusts Subtensor FindingsNo findings. ConclusionNo malicious pattern or exploitable security vulnerability found in the static diff. 🔍 AI Review — Auditor (domain review)VERDICT: 👍 Gittensor UNKNOWN: no allowlist hit; author has write permission and substantial recent subtensor contribution history, so review focused on correctness and migration behavior. The Auditor proposed a replacement PR description, but the current body is non-trivial; not overwriting. Maintainers: ask the Auditor to regenerate if you want it. No blocking domain findings. The PR centralizes Subtensor Duplicate-work check: #2754 is the only topical overlap from the prefetched open-PR list ( Verification: FindingsNo findings. ConclusionApprove. The runtime-affecting accounting change is scoped, uses saturating arithmetic for Subtensor issuance adjustment, and includes focused coverage for the dust path and migration idempotence. |
|
🔄 AI review updated — Skeptic: VULNERABLE |
|
🔄 AI review updated — Skeptic: VULNERABLE |
|
🔄 AI review updated — Skeptic: VULNERABLE |
|
🔄 AI review updated — Skeptic: SAFE Auditor: 👍 |
|
🔄 AI review updated — Skeptic: SAFE Auditor: 👍 |
|
🔄 AI review updated — Skeptic: SAFE Auditor: 👍 |
Description
This PR adds a subtensor pallet type implementation for dust collection that reflects dust collection in subtensor TotalIssuance. Also, it adds a migration that syncs total issuance of subtensor pallet to the source of truth in balances pallet.
Type of Change
Checklist
./scripts/fix_rust.shto ensure my code is formatted and linted correctly