The V493 Upgrade

Hotkey gamma spends, Yuma commit limits and release announcements

Gamma spent by the deposit's hotkey

A gamma deposit is now spent by its own hotkey. The hotkey signs spend_gamma(service, netuid, amount) at a service listed on the subnet and pays no fee. The amount is burned and added to GammaSpent(netuid, service, hotkey). A service credits the hotkey with what that total has grown by, read at a finalized block, so it sends no transaction and holds no spending authority over its customers' deposits. The deposit's coldkey keeps control of the balance, the daily spend cap, and closing the deposit.

A spend takes at least 0.1 gamma unless it empties the deposit, and stays within the balance and what the daily spend cap allows. A daily spend cap is 0, which pauses the deposit, or at least 0.1 gamma; the upgrade pauses existing caps below that. A move takes the whole balance, or at least 0.1 gamma leaving at least as much. A hotkey swap moves the coldkey's deposit at the old hotkey to the new hotkey, so the old hotkey can no longer spend it. Gamma emission opens the subnet owner hotkey's deposit with a cap of 0, so the owner coldkey sets a cap before that hotkey can spend it.

This breaks existing gamma integrations:

  1. spend_gamma is signed by the deposit's hotkey and takes a service, a netuid, and an amount. The batched spender call is gone.
  2. mint_gamma, mint_gamma_with_stake, and set_service no longer take a spender and move to call indices 166, 167, and 169; spend_gamma is 168. Indices 158, 159, 162, 164, and 165 are retired, and set_gamma_deposit_spender is removed.
  3. GammaDeposit, ServiceInfo, and the GammaMinted, GammaEmissionMinted, and ServiceSet events no longer carry a spender. The GammaSpent event is { netuid, hotkey, service, amount }.
  4. The GammaSpend proxy type is deprecated and denies all calls. Only an Any proxy can spend for a hotkey.
  5. GammaRuntimeApi is version 2. GammaDepositInfo drops the spender, and spendable is what a spend can burn now under the 0.1 gamma minimum.
  6. In the Python SDK, SpendGamma takes a netuid, a service hotkey, and an amount and is signed by the deposit's hotkey, as in btcli gamma spend --service-hotkey SERVICE_HOTKEY -H API_KEY. The new gamma_spent read returns a hotkey's total at a service. SetGammaDepositSpender, btcli gamma set-spender, and the mint --spender and --service-hotkey options are removed. These changes ship in bittensor 11.3.5 and bittensor-core 0.1.12; earlier SDKs cannot mint, spend, or read gamma deposits once 493 is live.

Services that spent their customers' deposits as spenders now credit customers from GammaSpent instead. See Gamma, Subnet services, and PR #3343.

Configurable Yuma commit limits

Sudo can set MaxTimelockedCommitsPerHotkey for each subnet through sudo_set_max_timelocked_commits_per_hotkey. The limit applies to each hotkey, mechanism, and commit epoch on Yuma subnets. The default remains 10. Setting the limit to zero pauses new timelocked commits; commitments already queued remain eligible to reveal. Legacy hash commits retain their fixed limit of 10, and Null consensus keeps its existing queue limits.

Existing subnets use the default without a storage migration. See commit and reveal timing and PR #3340.

Release announcements and Python publication

Release workflows announce proposed and live mainnet upgrades and stable Python releases on Discord. Successful posts are recorded as commit statuses so retries can skip them. A separate workflow publishes stable Python packages without a runtime upgrade. Future runtime and Python version bumps require structured notes linked to a release page. See PR #3342.

Build the release

Once the release train creates the v493 tag, run these commands from an existing Subtensor checkout to build that revision. The GitHub release identifies whether the upgrade is proposed or final.

git fetch https://github.com/RaoFoundation/subtensor.git tag v493
git checkout --detach v493
cargo build --release --locked -p node-subtensor