Skip to content

Remove PoW registration, refactor register() to use register_limit#3325

Merged
basfroman merged 7 commits into
stagingfrom
feat/roman/get-rid-pow
Apr 23, 2026
Merged

Remove PoW registration, refactor register() to use register_limit#3325
basfroman merged 7 commits into
stagingfrom
feat/roman/get-rid-pow

Conversation

@basfroman
Copy link
Copy Markdown
Collaborator

@basfroman basfroman commented Apr 23, 2026

Includes:

  • Remove PoW registration extrinsic (sync and async) and pallet method
  • Remove async_pow.py, register_cuda.py, pow.py from bittensor/utils/registration/
  • Extract torch compatibility utilities into torch_utils.py
  • Refactor Subtensor.register() and AsyncSubtensor.register() to use register_limit_extrinsic under the hood
  • Auto-calculate limit_price as recycle * 1005 // 1000 (0.5% tolerance) when not provided
  • Dispatch to root_register_extrinsic when netuid == 0
  • Accept limit_price: Optional[Balance] parameter with check_balance_amount validation
  • Remove PoW unit tests (sync and async), add tests for new register() logic
  • Add E2E tests for register() with auto-calculated limit_price
  • Update import paths from pow to torch_utils in tests

Base Subtensor PR

@basfroman basfroman self-assigned this Apr 23, 2026
@basfroman basfroman changed the base branch from master to staging April 23, 2026 23:01
@basfroman basfroman merged commit 88ee2cb into staging Apr 23, 2026
710 checks passed
@basfroman basfroman deleted the feat/roman/get-rid-pow branch April 23, 2026 23:13
@thewhaleking thewhaleking mentioned this pull request Apr 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants