Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update network.py #1568

Merged
merged 4 commits into from
Nov 1, 2023
Merged

Update network.py #1568

merged 4 commits into from
Nov 1, 2023

Conversation

wildcommunist
Copy link
Contributor

small spelling fix weights_rate_Limit -> weights_rate_limit in hyperparameters setting for subnets

ifrit98 and others added 2 commits October 30, 2023 18:53
* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* Improve development workflow documentation

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

* Merge releases 4.0.0 and 4.0.1 back to staging (#1306)

* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

* [Release] v4.0.0 (#1271)

* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* fix my delegates

* fix perms on changelog script

* update version

* fix changelog script

* Catch bad endpoint protocol (#1296)

* catch protocol not good

* add protocol 4

* catch assertion and return bool

* catch assertion errors

* changelog

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Update DEVELOPMENT_WORKFLOW.md

* final fixes

* staging updates and fixes (#1540)

* fix cli test

* fix double-counted hotkeys per subnet and non-iterable stake obj (#1539)

* fix double-counted hotkeys per subnet and non-iterable stake obj

* run black

* Add root get_weights command to btcli (#1536)

* Add root get_weights command to btcli

* Use a percentage for viewing weights instead of float values

* run black, fix cli test

---------

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Fix typo (#1543)

Co-authored-by: philanthrope <ifrit98@gmail.com>

* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)

Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* Merge master (#1552)

Release/6.1.0 (#1550)



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Streaming fix (#1551)

* yield chunks immediately in process_streaming_responss so clients can access

* break streaming into separate call funcs

* update docstrings, types

* black

* duplicate debug msg

* add warning for mismatched streaming arg + subclass

* Fix typos (#1553)

* Release/6.1.0 (#1550)

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Fix typo (#1543)

Co-authored-by: philanthrope <ifrit98@gmail.com>

* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)

Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* fix typos

---------

Co-authored-by: philanthrope <ifrit98@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Normalize weights in r get weights table (#1556)

* Normalize weights in r get weights table

* use numpy and make table look nicer

* apply black

* add max 1 to prevent div0

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.software>

* Dendrite & Synapse updates and fixes (#1555)

* remove tensor header objects to not overflow headers

* update tests to reflect removal of tensor headers

* ensure consistent method for calling  in synapse methods

* fix dendrite UnClosesedSession error

* fix docstring and add tests for close/aclose

* rm extra delete

* run black

* add default synapse dict() consistency test

* call del on session after close_session(), fix tests

* update dendrite dummy clsname

* add dendrite.query finally block

* fix test

* rm root flag in metagraph (#1558)

* rm root flag in metagraph

* run black

* typo

* Max Faucet Runs == 3 (#1560)

add exceptions

* replace unknown wallet params (chain mismatch) with key values (#1559)

* replace unknown wallet params (chain mismatch) with key values

* run black

* rm debug prints

* Remove PoW registration cli and associated extrinsic (#1557)

* Remove PoW registration cli and associated extrinsic

* run black

* no mo pow, no mo pow tests

* remove now deprecated PoW reregister routine

* remove deprecated tests

* more test fixes

* remove _do_pow call

* return PoW but still kill reregister (unused)

* run black

* return test to networks choices in btcli, fix chain_endpoint selection

* fix pow args

* Add btcli wallet balance (#1564)

* begin adding balance command

* skip validator that hasn't set weights yet on root

* finish balances command

* formatter

* issue warning for nonexistent coldkeypub.txt rather than break

* Dendrite fixes (#1561)

* make sure a session exists before trying to close it

* don't double iterate over async generator, simply return it

* black

* less DRY violations

* fix typehints

* add versioning

* update changelog

* remove unused registration utils

* fix typos

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: “quac88” <“mac2@thrasher.com”>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <shaabana@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>
Co-authored-by: omahs <73983677+omahs@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.dev>
Co-authored-by: Cameron Fairchild <cameron@fairchild.software>
small spelling fix `weights_rate_Limit` -> `weights_rate_limit`
@ifrit98
Copy link
Contributor

ifrit98 commented Oct 31, 2023

Please follow guidelines in contrib/ for branching off from staging rather than master

@ifrit98 ifrit98 self-requested a review October 31, 2023 19:25
@ifrit98 ifrit98 changed the base branch from master to staging October 31, 2023 19:25
Copy link
Contributor

@ifrit98 ifrit98 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

please run black formatting to pass CI checks

@ifrit98 ifrit98 merged commit aaf4366 into opentensor:staging Nov 1, 2023
9 checks passed
ifrit98 added a commit that referenced this pull request Nov 20, 2023
* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* Improve development workflow documentation

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

* Merge releases 4.0.0 and 4.0.1 back to staging (#1306)

* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

* [Release] v4.0.0 (#1271)

* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* fix my delegates

* fix perms on changelog script

* update version

* fix changelog script

* Catch bad endpoint protocol (#1296)

* catch protocol not good

* add protocol 4

* catch assertion and return bool

* catch assertion errors

* changelog

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Update DEVELOPMENT_WORKFLOW.md

* final fixes

* staging updates and fixes (#1540)

* fix cli test

* fix double-counted hotkeys per subnet and non-iterable stake obj (#1539)

* fix double-counted hotkeys per subnet and non-iterable stake obj

* run black

* Add root get_weights command to btcli (#1536)

* Add root get_weights command to btcli

* Use a percentage for viewing weights instead of float values

* run black, fix cli test

---------

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Fix typo (#1543)

Co-authored-by: philanthrope <ifrit98@gmail.com>

* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)

Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* Merge master (#1552)

Release/6.1.0 (#1550)



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Streaming fix (#1551)

* yield chunks immediately in process_streaming_responss so clients can access

* break streaming into separate call funcs

* update docstrings, types

* black

* duplicate debug msg

* add warning for mismatched streaming arg + subclass

* Fix typos (#1553)

* Release/6.1.0 (#1550)

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Fix typo (#1543)

Co-authored-by: philanthrope <ifrit98@gmail.com>

* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)

Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* fix typos

---------

Co-authored-by: philanthrope <ifrit98@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Normalize weights in r get weights table (#1556)

* Normalize weights in r get weights table

* use numpy and make table look nicer

* apply black

* add max 1 to prevent div0

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.software>

* Dendrite & Synapse updates and fixes (#1555)

* remove tensor header objects to not overflow headers

* update tests to reflect removal of tensor headers

* ensure consistent method for calling  in synapse methods

* fix dendrite UnClosesedSession error

* fix docstring and add tests for close/aclose

* rm extra delete

* run black

* add default synapse dict() consistency test

* call del on session after close_session(), fix tests

* update dendrite dummy clsname

* add dendrite.query finally block

* fix test

* rm root flag in metagraph (#1558)

* rm root flag in metagraph

* run black

* typo

* Max Faucet Runs == 3 (#1560)

add exceptions

* replace unknown wallet params (chain mismatch) with key values (#1559)

* replace unknown wallet params (chain mismatch) with key values

* run black

* rm debug prints

* Remove PoW registration cli and associated extrinsic (#1557)

* Remove PoW registration cli and associated extrinsic

* run black

* no mo pow, no mo pow tests

* remove now deprecated PoW reregister routine

* remove deprecated tests

* more test fixes

* remove _do_pow call

* return PoW but still kill reregister (unused)

* run black

* return test to networks choices in btcli, fix chain_endpoint selection

* fix pow args

* Add btcli wallet balance (#1564)

* begin adding balance command

* skip validator that hasn't set weights yet on root

* finish balances command

* formatter

* issue warning for nonexistent coldkeypub.txt rather than break

* Dendrite fixes (#1561)

* make sure a session exists before trying to close it

* don't double iterate over async generator, simply return it

* black

* less DRY violations

* fix typehints

* Master into staging (#1570)

Release/6.2.0 (#1567)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------



* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------



* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* Improve development workflow documentation

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

* Merge releases 4.0.0 and 4.0.1 back to staging (#1306)

* bump version

* Fix permissions for release github script (#1224)



* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------



* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------



* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------







* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

* [Release] v4.0.0 (#1271)

* bump version

* Fix permissions for release github script (#1224)



* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------



* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------



* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------







* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

---------








* fix my delegates

* fix perms on changelog script

* update version

* fix changelog script

* Catch bad endpoint protocol (#1296)

* catch protocol not good

* add protocol 4

* catch assertion and return bool

* catch assertion errors

* changelog

---------








* Update DEVELOPMENT_WORKFLOW.md

* final fixes

* staging updates and fixes (#1540)

* fix cli test

* fix double-counted hotkeys per subnet and non-iterable stake obj (#1539)

* fix double-counted hotkeys per subnet and non-iterable stake obj

* run black

* Add root get_weights command to btcli (#1536)

* Add root get_weights command to btcli

* Use a percentage for viewing weights instead of float values

* run black, fix cli test

---------



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* Merge master (#1552)

Release/6.1.0 (#1550)



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------











* Streaming fix (#1551)

* yield chunks immediately in process_streaming_responss so clients can access

* break streaming into separate call funcs

* update docstrings, types

* black

* duplicate debug msg

* add warning for mismatched streaming arg + subclass

* Fix typos (#1553)

* Release/6.1.0 (#1550)



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------











* fix typos

---------












* Normalize weights in r get weights table (#1556)

* Normalize weights in r get weights table

* use numpy and make table look nicer

* apply black

* add max 1 to prevent div0

---------



* Dendrite & Synapse updates and fixes (#1555)

* remove tensor header objects to not overflow headers

* update tests to reflect removal of tensor headers

* ensure consistent method for calling  in synapse methods

* fix dendrite UnClosesedSession error

* fix docstring and add tests for close/aclose

* rm extra delete

* run black

* add default synapse dict() consistency test

* call del on session after close_session(), fix tests

* update dendrite dummy clsname

* add dendrite.query finally block

* fix test

* rm root flag in metagraph (#1558)

* rm root flag in metagraph

* run black

* typo

* Max Faucet Runs == 3 (#1560)

add exceptions

* replace unknown wallet params (chain mismatch) with key values (#1559)

* replace unknown wallet params (chain mismatch) with key values

* run black

* rm debug prints

* Remove PoW registration cli and associated extrinsic (#1557)

* Remove PoW registration cli and associated extrinsic

* run black

* no mo pow, no mo pow tests

* remove now deprecated PoW reregister routine

* remove deprecated tests

* more test fixes

* remove _do_pow call

* return PoW but still kill reregister (unused)

* run black

* return test to networks choices in btcli, fix chain_endpoint selection

* fix pow args

* Add btcli wallet balance (#1564)

* begin adding balance command

* skip validator that hasn't set weights yet on root

* finish balances command

* formatter

* issue warning for nonexistent coldkeypub.txt rather than break

* Dendrite fixes (#1561)

* make sure a session exists before trying to close it

* don't double iterate over async generator, simply return it

* black

* less DRY violations

* fix typehints

* add versioning

* update changelog

* remove unused registration utils

* fix typos

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: “quac88” <“mac2@thrasher.com”>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <shaabana@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>
Co-authored-by: omahs <73983677+omahs@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.dev>
Co-authored-by: Cameron Fairchild <cameron@fairchild.software>

* adding logging.exception (#1569)

* adding logging.exception

* Update network.py (#1568)

* Release/6.2.0 (#1567)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* Improve development workflow documentation

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

* Merge releases 4.0.0 and 4.0.1 back to staging (#1306)

* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

* [Release] v4.0.0 (#1271)

* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* fix my delegates

* fix perms on changelog script

* update version

* fix changelog script

* Catch bad endpoint protocol (#1296)

* catch protocol not good

* add protocol 4

* catch assertion and return bool

* catch assertion errors

* changelog

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Update DEVELOPMENT_WORKFLOW.md

* final fixes

* staging updates and fixes (#1540)

* fix cli test

* fix double-counted hotkeys per subnet and non-iterable stake obj (#1539)

* fix double-counted hotkeys per subnet and non-iterable stake obj

* run black

* Add root get_weights command to btcli (#1536)

* Add root get_weights command to btcli

* Use a percentage for viewing weights instead of float values

* run black, fix cli test

---------

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Fix typo (#1543)

Co-authored-by: philanthrope <ifrit98@gmail.com>

* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)

Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* Merge master (#1552)

Release/6.1.0 (#1550)



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Streaming fix (#1551)

* yield chunks immediately in process_streaming_responss so clients can access

* break streaming into separate call funcs

* update docstrings, types

* black

* duplicate debug msg

* add warning for mismatched streaming arg + subclass

* Fix typos (#1553)

* Release/6.1.0 (#1550)

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Fix typo (#1543)

Co-authored-by: philanthrope <ifrit98@gmail.com>

* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)

Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* fix typos

---------

Co-authored-by: philanthrope <ifrit98@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Normalize weights in r get weights table (#1556)

* Normalize weights in r get weights table

* use numpy and make table look nicer

* apply black

* add max 1 to prevent div0

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.software>

* Dendrite & Synapse updates and fixes (#1555)

* remove tensor header objects to not overflow headers

* update tests to reflect removal of tensor headers

* ensure consistent method for calling  in synapse methods

* fix dendrite UnClosesedSession error

* fix docstring and add tests for close/aclose

* rm extra delete

* run black

* add default synapse dict() consistency test

* call del on session after close_session(), fix tests

* update dendrite dummy clsname

* add dendrite.query finally block

* fix test

* rm root flag in metagraph (#1558)

* rm root flag in metagraph

* run black

* typo

* Max Faucet Runs == 3 (#1560)

add exceptions

* replace unknown wallet params (chain mismatch) with key values (#1559)

* replace unknown wallet params (chain mismatch) with key values

* run black

* rm debug prints

* Remove PoW registration cli and associated extrinsic (#1557)

* Remove PoW registration cli and associated extrinsic

* run black

* no mo pow, no mo pow tests

* remove now deprecated PoW reregister routine

* remove deprecated tests

* more test fixes

* remove _do_pow call

* return PoW but still kill reregister (unused)

* run black

* return test to networks choices in btcli, fix chain_endpoint selection

* fix pow args

* Add btcli wallet balance (#1564)

* begin adding balance command

* skip validator that hasn't set weights yet on root

* finish balances command

* formatter

* issue warning for nonexistent coldkeypub.txt rather than break

* Dendrite fixes (#1561)

* make sure a session exists before trying to close it

* don't double iterate over async generator, simply return it

* black

* less DRY violations

* fix typehints

* add versioning

* update changelog

* remove unused registration utils

* fix typos

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: “quac88” <“mac2@thrasher.com”>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <shaabana@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>
Co-authored-by: omahs <73983677+omahs@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.dev>
Co-authored-by: Cameron Fairchild <cameron@fairchild.software>

* Update network.py

small spelling fix `weights_rate_Limit` -> `weights_rate_limit`

* Reformat

---------

Co-authored-by: philanthrope <ifrit98@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: “quac88” <“mac2@thrasher.com”>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <shaabana@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>
Co-authored-by: omahs <73983677+omahs@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.dev>
Co-authored-by: Cameron Fairchild <cameron@fairchild.software>

* Subtensor Registry  (#1562)

* subtensor identity query

* formatter

* adds identified field

* black and additional requirement

* black

---------

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* add instructions for upgrading bittensor with outdated version check (#1571)

* add instructions for upgrading bittensor with outdated version check

* run black

* Add identity commands to btcli (#1566)

* subtensor identity query

* formatter

* add get/set identity btcli command

* check for values > 64 bytes max on chain

* run black

* update identity funcs for hotkey option

* fix incorrect bytes limit for idendity

* run black

* add check for 1 tao cost

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Add set_delegate_take command to btcli (#1563)

* Add set_delegate_take command

* formatter

* string info update

---------

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Subtensor archive (#1575)

* add archive network option to subtensor

* add /

* fix archive resolution

* Bugfix/list delegates (#1577)

* make this legible/visible

* run black

* don't return result twice in query() (#1574)

* rename logging.py so doesn't circ import (#1572)

* add AxonInfo.<to|from>_string() (#1565)

* add AxonInfo.<to|from>_string()

* add error handling

* don't print __is_set for recursive objects (#1573)

* fix merge duplication in dendrite, config print error

* update version

* update changelog

* Adds docstrings for CLI for Sphynx documentation (#1579)

* Release/6.2.0 (#1567)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove dele…
ifrit98 added a commit that referenced this pull request Nov 27, 2023
* Release/6.2.0 (#1567)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* Improve development workflow documentation

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

* Merge releases 4.0.0 and 4.0.1 back to staging (#1306)

* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

* [Release] v4.0.0 (#1271)

* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* fix my delegates

* fix perms on changelog script

* update version

* fix changelog script

* Catch bad endpoint protocol (#1296)

* catch protocol not good

* add protocol 4

* catch assertion and return bool

* catch assertion errors

* changelog

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Update DEVELOPMENT_WORKFLOW.md

* final fixes

* staging updates and fixes (#1540)

* fix cli test

* fix double-counted hotkeys per subnet and non-iterable stake obj (#1539)

* fix double-counted hotkeys per subnet and non-iterable stake obj

* run black

* Add root get_weights command to btcli (#1536)

* Add root get_weights command to btcli

* Use a percentage for viewing weights instead of float values

* run black, fix cli test

---------

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Fix typo (#1543)

Co-authored-by: philanthrope <ifrit98@gmail.com>

* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)

Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* Merge master (#1552)

Release/6.1.0 (#1550)



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Streaming fix (#1551)

* yield chunks immediately in process_streaming_responss so clients can access

* break streaming into separate call funcs

* update docstrings, types

* black

* duplicate debug msg

* add warning for mismatched streaming arg + subclass

* Fix typos (#1553)

* Release/6.1.0 (#1550)

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Fix typo (#1543)

Co-authored-by: philanthrope <ifrit98@gmail.com>

* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)

Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* fix typos

---------

Co-authored-by: philanthrope <ifrit98@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Normalize weights in r get weights table (#1556)

* Normalize weights in r get weights table

* use numpy and make table look nicer

* apply black

* add max 1 to prevent div0

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.software>

* Dendrite & Synapse updates and fixes (#1555)

* remove tensor header objects to not overflow headers

* update tests to reflect removal of tensor headers

* ensure consistent method for calling  in synapse methods

* fix dendrite UnClosesedSession error

* fix docstring and add tests for close/aclose

* rm extra delete

* run black

* add default synapse dict() consistency test

* call del on session after close_session(), fix tests

* update dendrite dummy clsname

* add dendrite.query finally block

* fix test

* rm root flag in metagraph (#1558)

* rm root flag in metagraph

* run black

* typo

* Max Faucet Runs == 3 (#1560)

add exceptions

* replace unknown wallet params (chain mismatch) with key values (#1559)

* replace unknown wallet params (chain mismatch) with key values

* run black

* rm debug prints

* Remove PoW registration cli and associated extrinsic (#1557)

* Remove PoW registration cli and associated extrinsic

* run black

* no mo pow, no mo pow tests

* remove now deprecated PoW reregister routine

* remove deprecated tests

* more test fixes

* remove _do_pow call

* return PoW but still kill reregister (unused)

* run black

* return test to networks choices in btcli, fix chain_endpoint selection

* fix pow args

* Add btcli wallet balance (#1564)

* begin adding balance command

* skip validator that hasn't set weights yet on root

* finish balances command

* formatter

* issue warning for nonexistent coldkeypub.txt rather than break

* Dendrite fixes (#1561)

* make sure a session exists before trying to close it

* don't double iterate over async generator, simply return it

* black

* less DRY violations

* fix typehints

* add versioning

* update changelog

* remove unused registration utils

* fix typos

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: “quac88” <“mac2@thrasher.com”>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <shaabana@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>
Co-authored-by: omahs <73983677+omahs@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.dev>
Co-authored-by: Cameron Fairchild <cameron@fairchild.software>

* Release/6.3.0 (#1582)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* Improve development workflow documentation

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

* Merge releases 4.0.0 and 4.0.1 back to staging (#1306)

* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

* [Release] v4.0.0 (#1271)

* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* fix my delegates

* fix perms on changelog script

* update version

* fix changelog script

* Catch bad endpoint protocol (#1296)

* catch protocol not good

* add protocol 4

* catch assertion and return bool

* catch assertion errors

* changelog

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Update DEVELOPMENT_WORKFLOW.md

* final fixes

* staging updates and fixes (#1540)

* fix cli test

* fix double-counted hotkeys per subnet and non-iterable stake obj (#1539)

* fix double-counted hotkeys per subnet and non-iterable stake obj

* run black

* Add root get_weights command to btcli (#1536)

* Add root get_weights command to btcli

* Use a percentage for viewing weights instead of float values

* run black, fix cli test

---------

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Fix typo (#1543)

Co-authored-by: philanthrope <ifrit98@gmail.com>

* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)

Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* Merge master (#1552)

Release/6.1.0 (#1550)



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Streaming fix (#1551)

* yield chunks immediately in process_streaming_responss so clients can access

* break streaming into separate call funcs

* update docstrings, types

* black

* duplicate debug msg

* add warning for mismatched streaming arg + subclass

* Fix typos (#1553)

* Release/6.1.0 (#1550)

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Fix typo (#1543)

Co-authored-by: philanthrope <ifrit98@gmail.com>

* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)

Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* fix typos

---------

Co-authored-by: philanthrope <ifrit98@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Normalize weights in r get weights table (#1556)

* Normalize weights in r get weights table

* use numpy and make table look nicer

* apply black

* add max 1 to prevent div0

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.software>

* Dendrite & Synapse updates and fixes (#1555)

* remove tensor header objects to not overflow headers

* update tests to reflect removal of tensor headers

* ensure consistent method for calling  in synapse methods

* fix dendrite UnClosesedSession error

* fix docstring and add tests for close/aclose

* rm extra delete

* run black

* add default synapse dict() consistency test

* call del on session after close_session(), fix tests

* update dendrite dummy clsname

* add dendrite.query finally block

* fix test

* rm root flag in metagraph (#1558)

* rm root flag in metagraph

* run black

* typo

* Max Faucet Runs == 3 (#1560)

add exceptions

* replace unknown wallet params (chain mismatch) with key values (#1559)

* replace unknown wallet params (chain mismatch) with key values

* run black

* rm debug prints

* Remove PoW registration cli and associated extrinsic (#1557)

* Remove PoW registration cli and associated extrinsic

* run black

* no mo pow, no mo pow tests

* remove now deprecated PoW reregister routine

* remove deprecated tests

* more test fixes

* remove _do_pow call

* return PoW but still kill reregister (unused)

* run black

* return test to networks choices in btcli, fix chain_endpoint selection

* fix pow args

* Add btcli wallet balance (#1564)

* begin adding balance command

* skip validator that hasn't set weights yet on root

* finish balances command

* formatter

* issue warning for nonexistent coldkeypub.txt rather than break

* Dendrite fixes (#1561)

* make sure a session exists before trying to close it

* don't double iterate over async generator, simply return it

* black

* less DRY violations

* fix typehints

* Master into staging (#1570)

Release/6.2.0 (#1567)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------



* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------



* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* Improve development workflow documentation

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

* Merge releases 4.0.0 and 4.0.1 back to staging (#1306)

* bump version

* Fix permissions for release github script (#1224)



* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------



* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------



* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------







* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

* [Release] v4.0.0 (#1271)

* bump version

* Fix permissions for release github script (#1224)



* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------



* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------



* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------







* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

---------








* fix my delegates

* fix perms on changelog script

* update version

* fix changelog script

* Catch bad endpoint protocol (#1296)

* catch protocol not good

* add protocol 4

* catch assertion and return bool

* catch assertion errors

* changelog

---------








* Update DEVELOPMENT_WORKFLOW.md

* final fixes

* staging updates and fixes (#1540)

* fix cli test

* fix double-counted hotkeys per subnet and non-iterable stake obj (#1539)

* fix double-counted hotkeys per subnet and non-iterable stake obj

* run black

* Add root get_weights command to btcli (#1536)

* Add root get_weights command to btcli

* Use a percentage for viewing weights instead of float values

* run black, fix cli test

---------



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* Merge master (#1552)

Release/6.1.0 (#1550)



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------











* Streaming fix (#1551)

* yield chunks immediately in process_streaming_responss so clients can access

* break streaming into separate call funcs

* update docstrings, types

* black

* duplicate debug msg

* add warning for mismatched streaming arg + subclass

* Fix typos (#1553)

* Release/6.1.0 (#1550)



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------











* fix typos

---------












* Normalize weights in r get weights table (#1556)

* Normalize weights in r get weights table

* use numpy and make table look nicer

* apply black

* add max 1 to prevent div0

---------



* Dendrite & Synapse updates and fixes (#1555)

* remove tensor header objects to not overflow headers

* update tests to reflect removal of tensor headers

* ensure consistent method for calling  in synapse methods

* fix dendrite UnClosesedSession error

* fix docstring and add tests for close/aclose

* rm extra delete

* run black

* add default synapse dict() consistency test

* call del on session after close_session(), fix tests

* update dendrite dummy clsname

* add dendrite.query finally block

* fix test

* rm root flag in metagraph (#1558)

* rm root flag in metagraph

* run black

* typo

* Max Faucet Runs == 3 (#1560)

add exceptions

* replace unknown wallet params (chain mismatch) with key values (#1559)

* replace unknown wallet params (chain mismatch) with key values

* run black

* rm debug prints

* Remove PoW registration cli and associated extrinsic (#1557)

* Remove PoW registration cli and associated extrinsic

* run black

* no mo pow, no mo pow tests

* remove now deprecated PoW reregister routine

* remove deprecated tests

* more test fixes

* remove _do_pow call

* return PoW but still kill reregister (unused)

* run black

* return test to networks choices in btcli, fix chain_endpoint selection

* fix pow args

* Add btcli wallet balance (#1564)

* begin adding balance command

* skip validator that hasn't set weights yet on root

* finish balances command

* formatter

* issue warning for nonexistent coldkeypub.txt rather than break

* Dendrite fixes (#1561)

* make sure a session exists before trying to close it

* don't double iterate over async generator, simply return it

* black

* less DRY violations

* fix typehints

* add versioning

* update changelog

* remove unused registration utils

* fix typos

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: “quac88” <“mac2@thrasher.com”>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <shaabana@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>
Co-authored-by: omahs <73983677+omahs@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.dev>
Co-authored-by: Cameron Fairchild <cameron@fairchild.software>

* adding logging.exception (#1569)

* adding logging.exception

* Update network.py (#1568)

* Release/6.2.0 (#1567)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* Improve development workflow documentation

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test fo…
ifrit98 added a commit that referenced this pull request Nov 28, 2023
* Release/6.2.0 (#1567)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* Improve development workflow documentation

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

* Merge releases 4.0.0 and 4.0.1 back to staging (#1306)

* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

* [Release] v4.0.0 (#1271)

* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* fix my delegates

* fix perms on changelog script

* update version

* fix changelog script

* Catch bad endpoint protocol (#1296)

* catch protocol not good

* add protocol 4

* catch assertion and return bool

* catch assertion errors

* changelog

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Update DEVELOPMENT_WORKFLOW.md

* final fixes

* staging updates and fixes (#1540)

* fix cli test

* fix double-counted hotkeys per subnet and non-iterable stake obj (#1539)

* fix double-counted hotkeys per subnet and non-iterable stake obj

* run black

* Add root get_weights command to btcli (#1536)

* Add root get_weights command to btcli

* Use a percentage for viewing weights instead of float values

* run black, fix cli test

---------

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Fix typo (#1543)

Co-authored-by: philanthrope <ifrit98@gmail.com>

* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)

Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* Merge master (#1552)

Release/6.1.0 (#1550)



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Streaming fix (#1551)

* yield chunks immediately in process_streaming_responss so clients can access

* break streaming into separate call funcs

* update docstrings, types

* black

* duplicate debug msg

* add warning for mismatched streaming arg + subclass

* Fix typos (#1553)

* Release/6.1.0 (#1550)

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Fix typo (#1543)

Co-authored-by: philanthrope <ifrit98@gmail.com>

* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)

Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* fix typos

---------

Co-authored-by: philanthrope <ifrit98@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Normalize weights in r get weights table (#1556)

* Normalize weights in r get weights table

* use numpy and make table look nicer

* apply black

* add max 1 to prevent div0

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.software>

* Dendrite & Synapse updates and fixes (#1555)

* remove tensor header objects to not overflow headers

* update tests to reflect removal of tensor headers

* ensure consistent method for calling  in synapse methods

* fix dendrite UnClosesedSession error

* fix docstring and add tests for close/aclose

* rm extra delete

* run black

* add default synapse dict() consistency test

* call del on session after close_session(), fix tests

* update dendrite dummy clsname

* add dendrite.query finally block

* fix test

* rm root flag in metagraph (#1558)

* rm root flag in metagraph

* run black

* typo

* Max Faucet Runs == 3 (#1560)

add exceptions

* replace unknown wallet params (chain mismatch) with key values (#1559)

* replace unknown wallet params (chain mismatch) with key values

* run black

* rm debug prints

* Remove PoW registration cli and associated extrinsic (#1557)

* Remove PoW registration cli and associated extrinsic

* run black

* no mo pow, no mo pow tests

* remove now deprecated PoW reregister routine

* remove deprecated tests

* more test fixes

* remove _do_pow call

* return PoW but still kill reregister (unused)

* run black

* return test to networks choices in btcli, fix chain_endpoint selection

* fix pow args

* Add btcli wallet balance (#1564)

* begin adding balance command

* skip validator that hasn't set weights yet on root

* finish balances command

* formatter

* issue warning for nonexistent coldkeypub.txt rather than break

* Dendrite fixes (#1561)

* make sure a session exists before trying to close it

* don't double iterate over async generator, simply return it

* black

* less DRY violations

* fix typehints

* add versioning

* update changelog

* remove unused registration utils

* fix typos

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: “quac88” <“mac2@thrasher.com”>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <shaabana@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>
Co-authored-by: omahs <73983677+omahs@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.dev>
Co-authored-by: Cameron Fairchild <cameron@fairchild.software>

* Release/6.3.0 (#1582)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* Improve development workflow documentation

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

* Merge releases 4.0.0 and 4.0.1 back to staging (#1306)

* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

* [Release] v4.0.0 (#1271)

* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* fix my delegates

* fix perms on changelog script

* update version

* fix changelog script

* Catch bad endpoint protocol (#1296)

* catch protocol not good

* add protocol 4

* catch assertion and return bool

* catch assertion errors

* changelog

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Update DEVELOPMENT_WORKFLOW.md

* final fixes

* staging updates and fixes (#1540)

* fix cli test

* fix double-counted hotkeys per subnet and non-iterable stake obj (#1539)

* fix double-counted hotkeys per subnet and non-iterable stake obj

* run black

* Add root get_weights command to btcli (#1536)

* Add root get_weights command to btcli

* Use a percentage for viewing weights instead of float values

* run black, fix cli test

---------

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Fix typo (#1543)

Co-authored-by: philanthrope <ifrit98@gmail.com>

* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)

Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* Merge master (#1552)

Release/6.1.0 (#1550)



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Streaming fix (#1551)

* yield chunks immediately in process_streaming_responss so clients can access

* break streaming into separate call funcs

* update docstrings, types

* black

* duplicate debug msg

* add warning for mismatched streaming arg + subclass

* Fix typos (#1553)

* Release/6.1.0 (#1550)

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Fix typo (#1543)

Co-authored-by: philanthrope <ifrit98@gmail.com>

* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)

Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* fix typos

---------

Co-authored-by: philanthrope <ifrit98@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Normalize weights in r get weights table (#1556)

* Normalize weights in r get weights table

* use numpy and make table look nicer

* apply black

* add max 1 to prevent div0

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.software>

* Dendrite & Synapse updates and fixes (#1555)

* remove tensor header objects to not overflow headers

* update tests to reflect removal of tensor headers

* ensure consistent method for calling  in synapse methods

* fix dendrite UnClosesedSession error

* fix docstring and add tests for close/aclose

* rm extra delete

* run black

* add default synapse dict() consistency test

* call del on session after close_session(), fix tests

* update dendrite dummy clsname

* add dendrite.query finally block

* fix test

* rm root flag in metagraph (#1558)

* rm root flag in metagraph

* run black

* typo

* Max Faucet Runs == 3 (#1560)

add exceptions

* replace unknown wallet params (chain mismatch) with key values (#1559)

* replace unknown wallet params (chain mismatch) with key values

* run black

* rm debug prints

* Remove PoW registration cli and associated extrinsic (#1557)

* Remove PoW registration cli and associated extrinsic

* run black

* no mo pow, no mo pow tests

* remove now deprecated PoW reregister routine

* remove deprecated tests

* more test fixes

* remove _do_pow call

* return PoW but still kill reregister (unused)

* run black

* return test to networks choices in btcli, fix chain_endpoint selection

* fix pow args

* Add btcli wallet balance (#1564)

* begin adding balance command

* skip validator that hasn't set weights yet on root

* finish balances command

* formatter

* issue warning for nonexistent coldkeypub.txt rather than break

* Dendrite fixes (#1561)

* make sure a session exists before trying to close it

* don't double iterate over async generator, simply return it

* black

* less DRY violations

* fix typehints

* Master into staging (#1570)

Release/6.2.0 (#1567)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------



* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------



* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* Improve development workflow documentation

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

* Merge releases 4.0.0 and 4.0.1 back to staging (#1306)

* bump version

* Fix permissions for release github script (#1224)



* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------



* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------



* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------







* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

* [Release] v4.0.0 (#1271)

* bump version

* Fix permissions for release github script (#1224)



* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------



* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------



* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------







* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

---------








* fix my delegates

* fix perms on changelog script

* update version

* fix changelog script

* Catch bad endpoint protocol (#1296)

* catch protocol not good

* add protocol 4

* catch assertion and return bool

* catch assertion errors

* changelog

---------








* Update DEVELOPMENT_WORKFLOW.md

* final fixes

* staging updates and fixes (#1540)

* fix cli test

* fix double-counted hotkeys per subnet and non-iterable stake obj (#1539)

* fix double-counted hotkeys per subnet and non-iterable stake obj

* run black

* Add root get_weights command to btcli (#1536)

* Add root get_weights command to btcli

* Use a percentage for viewing weights instead of float values

* run black, fix cli test

---------



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* Merge master (#1552)

Release/6.1.0 (#1550)



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------











* Streaming fix (#1551)

* yield chunks immediately in process_streaming_responss so clients can access

* break streaming into separate call funcs

* update docstrings, types

* black

* duplicate debug msg

* add warning for mismatched streaming arg + subclass

* Fix typos (#1553)

* Release/6.1.0 (#1550)



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------











* fix typos

---------












* Normalize weights in r get weights table (#1556)

* Normalize weights in r get weights table

* use numpy and make table look nicer

* apply black

* add max 1 to prevent div0

---------



* Dendrite & Synapse updates and fixes (#1555)

* remove tensor header objects to not overflow headers

* update tests to reflect removal of tensor headers

* ensure consistent method for calling  in synapse methods

* fix dendrite UnClosesedSession error

* fix docstring and add tests for close/aclose

* rm extra delete

* run black

* add default synapse dict() consistency test

* call del on session after close_session(), fix tests

* update dendrite dummy clsname

* add dendrite.query finally block

* fix test

* rm root flag in metagraph (#1558)

* rm root flag in metagraph

* run black

* typo

* Max Faucet Runs == 3 (#1560)

add exceptions

* replace unknown wallet params (chain mismatch) with key values (#1559)

* replace unknown wallet params (chain mismatch) with key values

* run black

* rm debug prints

* Remove PoW registration cli and associated extrinsic (#1557)

* Remove PoW registration cli and associated extrinsic

* run black

* no mo pow, no mo pow tests

* remove now deprecated PoW reregister routine

* remove deprecated tests

* more test fixes

* remove _do_pow call

* return PoW but still kill reregister (unused)

* run black

* return test to networks choices in btcli, fix chain_endpoint selection

* fix pow args

* Add btcli wallet balance (#1564)

* begin adding balance command

* skip validator that hasn't set weights yet on root

* finish balances command

* formatter

* issue warning for nonexistent coldkeypub.txt rather than break

* Dendrite fixes (#1561)

* make sure a session exists before trying to close it

* don't double iterate over async generator, simply return it

* black

* less DRY violations

* fix typehints

* add versioning

* update changelog

* remove unused registration utils

* fix typos

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: “quac88” <“mac2@thrasher.com”>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <shaabana@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>
Co-authored-by: omahs <73983677+omahs@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.dev>
Co-authored-by: Cameron Fairchild <cameron@fairchild.software>

* adding logging.exception (#1569)

* adding logging.exception

* Update network.py (#1568)

* Release/6.2.0 (#1567)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* Improve development workflow documentation

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and…
ifrit98 added a commit that referenced this pull request Nov 28, 2023
* Release/6.2.0 (#1567)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* Improve development workflow documentation

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

* Merge releases 4.0.0 and 4.0.1 back to staging (#1306)

* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

* [Release] v4.0.0 (#1271)

* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* fix my delegates

* fix perms on changelog script

* update version

* fix changelog script

* Catch bad endpoint protocol (#1296)

* catch protocol not good

* add protocol 4

* catch assertion and return bool

* catch assertion errors

* changelog

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Update DEVELOPMENT_WORKFLOW.md

* final fixes

* staging updates and fixes (#1540)

* fix cli test

* fix double-counted hotkeys per subnet and non-iterable stake obj (#1539)

* fix double-counted hotkeys per subnet and non-iterable stake obj

* run black

* Add root get_weights command to btcli (#1536)

* Add root get_weights command to btcli

* Use a percentage for viewing weights instead of float values

* run black, fix cli test

---------

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Fix typo (#1543)

Co-authored-by: philanthrope <ifrit98@gmail.com>

* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)

Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* Merge master (#1552)

Release/6.1.0 (#1550)



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Streaming fix (#1551)

* yield chunks immediately in process_streaming_responss so clients can access

* break streaming into separate call funcs

* update docstrings, types

* black

* duplicate debug msg

* add warning for mismatched streaming arg + subclass

* Fix typos (#1553)

* Release/6.1.0 (#1550)

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Fix typo (#1543)

Co-authored-by: philanthrope <ifrit98@gmail.com>

* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)

Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* fix typos

---------

Co-authored-by: philanthrope <ifrit98@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Normalize weights in r get weights table (#1556)

* Normalize weights in r get weights table

* use numpy and make table look nicer

* apply black

* add max 1 to prevent div0

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.software>

* Dendrite & Synapse updates and fixes (#1555)

* remove tensor header objects to not overflow headers

* update tests to reflect removal of tensor headers

* ensure consistent method for calling  in synapse methods

* fix dendrite UnClosesedSession error

* fix docstring and add tests for close/aclose

* rm extra delete

* run black

* add default synapse dict() consistency test

* call del on session after close_session(), fix tests

* update dendrite dummy clsname

* add dendrite.query finally block

* fix test

* rm root flag in metagraph (#1558)

* rm root flag in metagraph

* run black

* typo

* Max Faucet Runs == 3 (#1560)

add exceptions

* replace unknown wallet params (chain mismatch) with key values (#1559)

* replace unknown wallet params (chain mismatch) with key values

* run black

* rm debug prints

* Remove PoW registration cli and associated extrinsic (#1557)

* Remove PoW registration cli and associated extrinsic

* run black

* no mo pow, no mo pow tests

* remove now deprecated PoW reregister routine

* remove deprecated tests

* more test fixes

* remove _do_pow call

* return PoW but still kill reregister (unused)

* run black

* return test to networks choices in btcli, fix chain_endpoint selection

* fix pow args

* Add btcli wallet balance (#1564)

* begin adding balance command

* skip validator that hasn't set weights yet on root

* finish balances command

* formatter

* issue warning for nonexistent coldkeypub.txt rather than break

* Dendrite fixes (#1561)

* make sure a session exists before trying to close it

* don't double iterate over async generator, simply return it

* black

* less DRY violations

* fix typehints

* add versioning

* update changelog

* remove unused registration utils

* fix typos

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: “quac88” <“mac2@thrasher.com”>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <shaabana@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>
Co-authored-by: omahs <73983677+omahs@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.dev>
Co-authored-by: Cameron Fairchild <cameron@fairchild.software>

* Release/6.3.0 (#1582)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* Improve development workflow documentation

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

* Merge releases 4.0.0 and 4.0.1 back to staging (#1306)

* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

* [Release] v4.0.0 (#1271)

* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* fix my delegates

* fix perms on changelog script

* update version

* fix changelog script

* Catch bad endpoint protocol (#1296)

* catch protocol not good

* add protocol 4

* catch assertion and return bool

* catch assertion errors

* changelog

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Update DEVELOPMENT_WORKFLOW.md

* final fixes

* staging updates and fixes (#1540)

* fix cli test

* fix double-counted hotkeys per subnet and non-iterable stake obj (#1539)

* fix double-counted hotkeys per subnet and non-iterable stake obj

* run black

* Add root get_weights command to btcli (#1536)

* Add root get_weights command to btcli

* Use a percentage for viewing weights instead of float values

* run black, fix cli test

---------

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Fix typo (#1543)

Co-authored-by: philanthrope <ifrit98@gmail.com>

* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)

Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* Merge master (#1552)

Release/6.1.0 (#1550)



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Streaming fix (#1551)

* yield chunks immediately in process_streaming_responss so clients can access

* break streaming into separate call funcs

* update docstrings, types

* black

* duplicate debug msg

* add warning for mismatched streaming arg + subclass

* Fix typos (#1553)

* Release/6.1.0 (#1550)

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Fix typo (#1543)

Co-authored-by: philanthrope <ifrit98@gmail.com>

* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)

Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* fix typos

---------

Co-authored-by: philanthrope <ifrit98@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Normalize weights in r get weights table (#1556)

* Normalize weights in r get weights table

* use numpy and make table look nicer

* apply black

* add max 1 to prevent div0

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.software>

* Dendrite & Synapse updates and fixes (#1555)

* remove tensor header objects to not overflow headers

* update tests to reflect removal of tensor headers

* ensure consistent method for calling  in synapse methods

* fix dendrite UnClosesedSession error

* fix docstring and add tests for close/aclose

* rm extra delete

* run black

* add default synapse dict() consistency test

* call del on session after close_session(), fix tests

* update dendrite dummy clsname

* add dendrite.query finally block

* fix test

* rm root flag in metagraph (#1558)

* rm root flag in metagraph

* run black

* typo

* Max Faucet Runs == 3 (#1560)

add exceptions

* replace unknown wallet params (chain mismatch) with key values (#1559)

* replace unknown wallet params (chain mismatch) with key values

* run black

* rm debug prints

* Remove PoW registration cli and associated extrinsic (#1557)

* Remove PoW registration cli and associated extrinsic

* run black

* no mo pow, no mo pow tests

* remove now deprecated PoW reregister routine

* remove deprecated tests

* more test fixes

* remove _do_pow call

* return PoW but still kill reregister (unused)

* run black

* return test to networks choices in btcli, fix chain_endpoint selection

* fix pow args

* Add btcli wallet balance (#1564)

* begin adding balance command

* skip validator that hasn't set weights yet on root

* finish balances command

* formatter

* issue warning for nonexistent coldkeypub.txt rather than break

* Dendrite fixes (#1561)

* make sure a session exists before trying to close it

* don't double iterate over async generator, simply return it

* black

* less DRY violations

* fix typehints

* Master into staging (#1570)

Release/6.2.0 (#1567)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------



* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------



* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* Improve development workflow documentation

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

* Merge releases 4.0.0 and 4.0.1 back to staging (#1306)

* bump version

* Fix permissions for release github script (#1224)



* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------



* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------



* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------







* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

* [Release] v4.0.0 (#1271)

* bump version

* Fix permissions for release github script (#1224)



* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------



* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------



* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------







* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

---------








* fix my delegates

* fix perms on changelog script

* update version

* fix changelog script

* Catch bad endpoint protocol (#1296)

* catch protocol not good

* add protocol 4

* catch assertion and return bool

* catch assertion errors

* changelog

---------








* Update DEVELOPMENT_WORKFLOW.md

* final fixes

* staging updates and fixes (#1540)

* fix cli test

* fix double-counted hotkeys per subnet and non-iterable stake obj (#1539)

* fix double-counted hotkeys per subnet and non-iterable stake obj

* run black

* Add root get_weights command to btcli (#1536)

* Add root get_weights command to btcli

* Use a percentage for viewing weights instead of float values

* run black, fix cli test

---------



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* Merge master (#1552)

Release/6.1.0 (#1550)



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------











* Streaming fix (#1551)

* yield chunks immediately in process_streaming_responss so clients can access

* break streaming into separate call funcs

* update docstrings, types

* black

* duplicate debug msg

* add warning for mismatched streaming arg + subclass

* Fix typos (#1553)

* Release/6.1.0 (#1550)



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------











* fix typos

---------












* Normalize weights in r get weights table (#1556)

* Normalize weights in r get weights table

* use numpy and make table look nicer

* apply black

* add max 1 to prevent div0

---------



* Dendrite & Synapse updates and fixes (#1555)

* remove tensor header objects to not overflow headers

* update tests to reflect removal of tensor headers

* ensure consistent method for calling  in synapse methods

* fix dendrite UnClosesedSession error

* fix docstring and add tests for close/aclose

* rm extra delete

* run black

* add default synapse dict() consistency test

* call del on session after close_session(), fix tests

* update dendrite dummy clsname

* add dendrite.query finally block

* fix test

* rm root flag in metagraph (#1558)

* rm root flag in metagraph

* run black

* typo

* Max Faucet Runs == 3 (#1560)

add exceptions

* replace unknown wallet params (chain mismatch) with key values (#1559)

* replace unknown wallet params (chain mismatch) with key values

* run black

* rm debug prints

* Remove PoW registration cli and associated extrinsic (#1557)

* Remove PoW registration cli and associated extrinsic

* run black

* no mo pow, no mo pow tests

* remove now deprecated PoW reregister routine

* remove deprecated tests

* more test fixes

* remove _do_pow call

* return PoW but still kill reregister (unused)

* run black

* return test to networks choices in btcli, fix chain_endpoint selection

* fix pow args

* Add btcli wallet balance (#1564)

* begin adding balance command

* skip validator that hasn't set weights yet on root

* finish balances command

* formatter

* issue warning for nonexistent coldkeypub.txt rather than break

* Dendrite fixes (#1561)

* make sure a session exists before trying to close it

* don't double iterate over async generator, simply return it

* black

* less DRY violations

* fix typehints

* add versioning

* update changelog

* remove unused registration utils

* fix typos

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: “quac88” <“mac2@thrasher.com”>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <shaabana@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>
Co-authored-by: omahs <73983677+omahs@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.dev>
Co-authored-by: Cameron Fairchild <cameron@fairchild.software>

* adding logging.exception (#1569)

* adding logging.exception

* Update network.py (#1568)

* Release/6.2.0 (#1567)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* Improve development workflow documentation

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* …
ifrit98 added a commit that referenced this pull request Nov 30, 2023
* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* Improve development workflow documentation

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

* Merge releases 4.0.0 and 4.0.1 back to staging (#1306)

* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

* [Release] v4.0.0 (#1271)

* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* fix my delegates

* fix perms on changelog script

* update version

* fix changelog script

* Catch bad endpoint protocol (#1296)

* catch protocol not good

* add protocol 4

* catch assertion and return bool

* catch assertion errors

* changelog

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Update DEVELOPMENT_WORKFLOW.md

* final fixes

* staging updates and fixes (#1540)

* fix cli test

* fix double-counted hotkeys per subnet and non-iterable stake obj (#1539)

* fix double-counted hotkeys per subnet and non-iterable stake obj

* run black

* Add root get_weights command to btcli (#1536)

* Add root get_weights command to btcli

* Use a percentage for viewing weights instead of float values

* run black, fix cli test

---------

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Fix typo (#1543)

Co-authored-by: philanthrope <ifrit98@gmail.com>

* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)

Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* Merge master (#1552)

Release/6.1.0 (#1550)



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Streaming fix (#1551)

* yield chunks immediately in process_streaming_responss so clients can access

* break streaming into separate call funcs

* update docstrings, types

* black

* duplicate debug msg

* add warning for mismatched streaming arg + subclass

* Fix typos (#1553)

* Release/6.1.0 (#1550)

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Fix typo (#1543)

Co-authored-by: philanthrope <ifrit98@gmail.com>

* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)

Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* fix typos

---------

Co-authored-by: philanthrope <ifrit98@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Normalize weights in r get weights table (#1556)

* Normalize weights in r get weights table

* use numpy and make table look nicer

* apply black

* add max 1 to prevent div0

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.software>

* Dendrite & Synapse updates and fixes (#1555)

* remove tensor header objects to not overflow headers

* update tests to reflect removal of tensor headers

* ensure consistent method for calling  in synapse methods

* fix dendrite UnClosesedSession error

* fix docstring and add tests for close/aclose

* rm extra delete

* run black

* add default synapse dict() consistency test

* call del on session after close_session(), fix tests

* update dendrite dummy clsname

* add dendrite.query finally block

* fix test

* rm root flag in metagraph (#1558)

* rm root flag in metagraph

* run black

* typo

* Max Faucet Runs == 3 (#1560)

add exceptions

* replace unknown wallet params (chain mismatch) with key values (#1559)

* replace unknown wallet params (chain mismatch) with key values

* run black

* rm debug prints

* Remove PoW registration cli and associated extrinsic (#1557)

* Remove PoW registration cli and associated extrinsic

* run black

* no mo pow, no mo pow tests

* remove now deprecated PoW reregister routine

* remove deprecated tests

* more test fixes

* remove _do_pow call

* return PoW but still kill reregister (unused)

* run black

* return test to networks choices in btcli, fix chain_endpoint selection

* fix pow args

* Add btcli wallet balance (#1564)

* begin adding balance command

* skip validator that hasn't set weights yet on root

* finish balances command

* formatter

* issue warning for nonexistent coldkeypub.txt rather than break

* Dendrite fixes (#1561)

* make sure a session exists before trying to close it

* don't double iterate over async generator, simply return it

* black

* less DRY violations

* fix typehints

* Master into staging (#1570)

Release/6.2.0 (#1567)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------



* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------



* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* Improve development workflow documentation

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

* Merge releases 4.0.0 and 4.0.1 back to staging (#1306)

* bump version

* Fix permissions for release github script (#1224)



* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------



* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------



* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------







* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

* [Release] v4.0.0 (#1271)

* bump version

* Fix permissions for release github script (#1224)



* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------



* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------



* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------







* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

---------








* fix my delegates

* fix perms on changelog script

* update version

* fix changelog script

* Catch bad endpoint protocol (#1296)

* catch protocol not good

* add protocol 4

* catch assertion and return bool

* catch assertion errors

* changelog

---------








* Update DEVELOPMENT_WORKFLOW.md

* final fixes

* staging updates and fixes (#1540)

* fix cli test

* fix double-counted hotkeys per subnet and non-iterable stake obj (#1539)

* fix double-counted hotkeys per subnet and non-iterable stake obj

* run black

* Add root get_weights command to btcli (#1536)

* Add root get_weights command to btcli

* Use a percentage for viewing weights instead of float values

* run black, fix cli test

---------



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* Merge master (#1552)

Release/6.1.0 (#1550)



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------











* Streaming fix (#1551)

* yield chunks immediately in process_streaming_responss so clients can access

* break streaming into separate call funcs

* update docstrings, types

* black

* duplicate debug msg

* add warning for mismatched streaming arg + subclass

* Fix typos (#1553)

* Release/6.1.0 (#1550)



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------











* fix typos

---------












* Normalize weights in r get weights table (#1556)

* Normalize weights in r get weights table

* use numpy and make table look nicer

* apply black

* add max 1 to prevent div0

---------



* Dendrite & Synapse updates and fixes (#1555)

* remove tensor header objects to not overflow headers

* update tests to reflect removal of tensor headers

* ensure consistent method for calling  in synapse methods

* fix dendrite UnClosesedSession error

* fix docstring and add tests for close/aclose

* rm extra delete

* run black

* add default synapse dict() consistency test

* call del on session after close_session(), fix tests

* update dendrite dummy clsname

* add dendrite.query finally block

* fix test

* rm root flag in metagraph (#1558)

* rm root flag in metagraph

* run black

* typo

* Max Faucet Runs == 3 (#1560)

add exceptions

* replace unknown wallet params (chain mismatch) with key values (#1559)

* replace unknown wallet params (chain mismatch) with key values

* run black

* rm debug prints

* Remove PoW registration cli and associated extrinsic (#1557)

* Remove PoW registration cli and associated extrinsic

* run black

* no mo pow, no mo pow tests

* remove now deprecated PoW reregister routine

* remove deprecated tests

* more test fixes

* remove _do_pow call

* return PoW but still kill reregister (unused)

* run black

* return test to networks choices in btcli, fix chain_endpoint selection

* fix pow args

* Add btcli wallet balance (#1564)

* begin adding balance command

* skip validator that hasn't set weights yet on root

* finish balances command

* formatter

* issue warning for nonexistent coldkeypub.txt rather than break

* Dendrite fixes (#1561)

* make sure a session exists before trying to close it

* don't double iterate over async generator, simply return it

* black

* less DRY violations

* fix typehints

* add versioning

* update changelog

* remove unused registration utils

* fix typos

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: “quac88” <“mac2@thrasher.com”>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <shaabana@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>
Co-authored-by: omahs <73983677+omahs@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.dev>
Co-authored-by: Cameron Fairchild <cameron@fairchild.software>

* adding logging.exception (#1569)

* adding logging.exception

* Update network.py (#1568)

* Release/6.2.0 (#1567)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* Improve development workflow documentation

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

* Merge releases 4.0.0 and 4.0.1 back to staging (#1306)

* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

* [Release] v4.0.0 (#1271)

* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* fix my delegates

* fix perms on changelog script

* update version

* fix changelog script

* Catch bad endpoint protocol (#1296)

* catch protocol not good

* add protocol 4

* catch assertion and return bool

* catch assertion errors

* changelog

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Update DEVELOPMENT_WORKFLOW.md

* final fixes

* staging updates and fixes (#1540)

* fix cli test

* fix double-counted hotkeys per subnet and non-iterable stake obj (#1539)

* fix double-counted hotkeys per subnet and non-iterable stake obj

* run black

* Add root get_weights command to btcli (#1536)

* Add root get_weights command to btcli

* Use a percentage for viewing weights instead of float values

* run black, fix cli test

---------

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Fix typo (#1543)

Co-authored-by: philanthrope <ifrit98@gmail.com>

* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)

Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* Merge master (#1552)

Release/6.1.0 (#1550)



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Streaming fix (#1551)

* yield chunks immediately in process_streaming_responss so clients can access

* break streaming into separate call funcs

* update docstrings, types

* black

* duplicate debug msg

* add warning for mismatched streaming arg + subclass

* Fix typos (#1553)

* Release/6.1.0 (#1550)

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Fix typo (#1543)

Co-authored-by: philanthrope <ifrit98@gmail.com>

* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)

Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* fix typos

---------

Co-authored-by: philanthrope <ifrit98@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Normalize weights in r get weights table (#1556)

* Normalize weights in r get weights table

* use numpy and make table look nicer

* apply black

* add max 1 to prevent div0

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.software>

* Dendrite & Synapse updates and fixes (#1555)

* remove tensor header objects to not overflow headers

* update tests to reflect removal of tensor headers

* ensure consistent method for calling  in synapse methods

* fix dendrite UnClosesedSession error

* fix docstring and add tests for close/aclose

* rm extra delete

* run black

* add default synapse dict() consistency test

* call del on session after close_session(), fix tests

* update dendrite dummy clsname

* add dendrite.query finally block

* fix test

* rm root flag in metagraph (#1558)

* rm root flag in metagraph

* run black

* typo

* Max Faucet Runs == 3 (#1560)

add exceptions

* replace unknown wallet params (chain mismatch) with key values (#1559)

* replace unknown wallet params (chain mismatch) with key values

* run black

* rm debug prints

* Remove PoW registration cli and associated extrinsic (#1557)

* Remove PoW registration cli and associated extrinsic

* run black

* no mo pow, no mo pow tests

* remove now deprecated PoW reregister routine

* remove deprecated tests

* more test fixes

* remove _do_pow call

* return PoW but still kill reregister (unused)

* run black

* return test to networks choices in btcli, fix chain_endpoint selection

* fix pow args

* Add btcli wallet balance (#1564)

* begin adding balance command

* skip validator that hasn't set weights yet on root

* finish balances command

* formatter

* issue warning for nonexistent coldkeypub.txt rather than break

* Dendrite fixes (#1561)

* make sure a session exists before trying to close it

* don't double iterate over async generator, simply return it

* black

* less DRY violations

* fix typehints

* add versioning

* update changelog

* remove unused registration utils

* fix typos

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: “quac88” <“mac2@thrasher.com”>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <shaabana@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>
Co-authored-by: omahs <73983677+omahs@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.dev>
Co-authored-by: Cameron Fairchild <cameron@fairchild.software>

* Update network.py

small spelling fix `weights_rate_Limit` -> `weights_rate_limit`

* Reformat

---------

Co-authored-by: philanthrope <ifrit98@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: “quac88” <“mac2@thrasher.com”>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <shaabana@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>
Co-authored-by: omahs <73983677+omahs@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.dev>
Co-authored-by: Cameron Fairchild <cameron@fairchild.software>

* Subtensor Registry  (#1562)

* subtensor identity query

* formatter

* adds identified field

* black and additional requirement

* black

---------

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* add instructions for upgrading bittensor with outdated version check (#1571)

* add instructions for upgrading bittensor with outdated version check

* run black

* Add identity commands to btcli (#1566)

* subtensor identity query

* formatter

* add get/set identity btcli command

* check for values > 64 bytes max on chain

* run black

* update identity funcs for hotkey option

* fix incorrect bytes limit for idendity

* run black

* add check for 1 tao cost

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Add set_delegate_take command to btcli (#1563)

* Add set_delegate_take command

* formatter

* string info update

---------

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Subtensor archive (#1575)

* add archive network option to subtensor

* add /

* fix archive resolution

* Bugfix/list delegates (#1577)

* make this legible/visible

* run black

* don't return result twice in query() (#1574)

* rename logging.py so doesn't circ import (#1572)

* add AxonInfo.<to|from>_string() (#1565)

* add AxonInfo.<to|from>_string()

* add error handling

* don't print __is_set for recursive objects (#1573)

* Adds docstrings for CLI for Sphynx documentation (#1579)

* Release/6.2.0 (#1567)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for lo…
Eugene-hu added a commit that referenced this pull request Dec 1, 2023
* Release/6.2.0 (#1567)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* Improve development workflow documentation

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

* Merge releases 4.0.0 and 4.0.1 back to staging (#1306)

* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

* [Release] v4.0.0 (#1271)

* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* fix my delegates

* fix perms on changelog script

* update version

* fix changelog script

* Catch bad endpoint protocol (#1296)

* catch protocol not good

* add protocol 4

* catch assertion and return bool

* catch assertion errors

* changelog

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Update DEVELOPMENT_WORKFLOW.md

* final fixes

* staging updates and fixes (#1540)

* fix cli test

* fix double-counted hotkeys per subnet and non-iterable stake obj (#1539)

* fix double-counted hotkeys per subnet and non-iterable stake obj

* run black

* Add root get_weights command to btcli (#1536)

* Add root get_weights command to btcli

* Use a percentage for viewing weights instead of float values

* run black, fix cli test

---------

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Fix typo (#1543)

Co-authored-by: philanthrope <ifrit98@gmail.com>

* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)

Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* Merge master (#1552)

Release/6.1.0 (#1550)



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Streaming fix (#1551)

* yield chunks immediately in process_streaming_responss so clients can access

* break streaming into separate call funcs

* update docstrings, types

* black

* duplicate debug msg

* add warning for mismatched streaming arg + subclass

* Fix typos (#1553)

* Release/6.1.0 (#1550)

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Fix typo (#1543)

Co-authored-by: philanthrope <ifrit98@gmail.com>

* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)

Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* fix typos

---------

Co-authored-by: philanthrope <ifrit98@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Normalize weights in r get weights table (#1556)

* Normalize weights in r get weights table

* use numpy and make table look nicer

* apply black

* add max 1 to prevent div0

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.software>

* Dendrite & Synapse updates and fixes (#1555)

* remove tensor header objects to not overflow headers

* update tests to reflect removal of tensor headers

* ensure consistent method for calling  in synapse methods

* fix dendrite UnClosesedSession error

* fix docstring and add tests for close/aclose

* rm extra delete

* run black

* add default synapse dict() consistency test

* call del on session after close_session(), fix tests

* update dendrite dummy clsname

* add dendrite.query finally block

* fix test

* rm root flag in metagraph (#1558)

* rm root flag in metagraph

* run black

* typo

* Max Faucet Runs == 3 (#1560)

add exceptions

* replace unknown wallet params (chain mismatch) with key values (#1559)

* replace unknown wallet params (chain mismatch) with key values

* run black

* rm debug prints

* Remove PoW registration cli and associated extrinsic (#1557)

* Remove PoW registration cli and associated extrinsic

* run black

* no mo pow, no mo pow tests

* remove now deprecated PoW reregister routine

* remove deprecated tests

* more test fixes

* remove _do_pow call

* return PoW but still kill reregister (unused)

* run black

* return test to networks choices in btcli, fix chain_endpoint selection

* fix pow args

* Add btcli wallet balance (#1564)

* begin adding balance command

* skip validator that hasn't set weights yet on root

* finish balances command

* formatter

* issue warning for nonexistent coldkeypub.txt rather than break

* Dendrite fixes (#1561)

* make sure a session exists before trying to close it

* don't double iterate over async generator, simply return it

* black

* less DRY violations

* fix typehints

* add versioning

* update changelog

* remove unused registration utils

* fix typos

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: “quac88” <“mac2@thrasher.com”>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <shaabana@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>
Co-authored-by: omahs <73983677+omahs@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.dev>
Co-authored-by: Cameron Fairchild <cameron@fairchild.software>

* Release/6.3.0 (#1582)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* Improve development workflow documentation

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

* Merge releases 4.0.0 and 4.0.1 back to staging (#1306)

* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

* [Release] v4.0.0 (#1271)

* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* fix my delegates

* fix perms on changelog script

* update version

* fix changelog script

* Catch bad endpoint protocol (#1296)

* catch protocol not good

* add protocol 4

* catch assertion and return bool

* catch assertion errors

* changelog

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Update DEVELOPMENT_WORKFLOW.md

* final fixes

* staging updates and fixes (#1540)

* fix cli test

* fix double-counted hotkeys per subnet and non-iterable stake obj (#1539)

* fix double-counted hotkeys per subnet and non-iterable stake obj

* run black

* Add root get_weights command to btcli (#1536)

* Add root get_weights command to btcli

* Use a percentage for viewing weights instead of float values

* run black, fix cli test

---------

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Fix typo (#1543)

Co-authored-by: philanthrope <ifrit98@gmail.com>

* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)

Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* Merge master (#1552)

Release/6.1.0 (#1550)



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Streaming fix (#1551)

* yield chunks immediately in process_streaming_responss so clients can access

* break streaming into separate call funcs

* update docstrings, types

* black

* duplicate debug msg

* add warning for mismatched streaming arg + subclass

* Fix typos (#1553)

* Release/6.1.0 (#1550)

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Fix typo (#1543)

Co-authored-by: philanthrope <ifrit98@gmail.com>

* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)

Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* fix typos

---------

Co-authored-by: philanthrope <ifrit98@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Normalize weights in r get weights table (#1556)

* Normalize weights in r get weights table

* use numpy and make table look nicer

* apply black

* add max 1 to prevent div0

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.software>

* Dendrite & Synapse updates and fixes (#1555)

* remove tensor header objects to not overflow headers

* update tests to reflect removal of tensor headers

* ensure consistent method for calling  in synapse methods

* fix dendrite UnClosesedSession error

* fix docstring and add tests for close/aclose

* rm extra delete

* run black

* add default synapse dict() consistency test

* call del on session after close_session(), fix tests

* update dendrite dummy clsname

* add dendrite.query finally block

* fix test

* rm root flag in metagraph (#1558)

* rm root flag in metagraph

* run black

* typo

* Max Faucet Runs == 3 (#1560)

add exceptions

* replace unknown wallet params (chain mismatch) with key values (#1559)

* replace unknown wallet params (chain mismatch) with key values

* run black

* rm debug prints

* Remove PoW registration cli and associated extrinsic (#1557)

* Remove PoW registration cli and associated extrinsic

* run black

* no mo pow, no mo pow tests

* remove now deprecated PoW reregister routine

* remove deprecated tests

* more test fixes

* remove _do_pow call

* return PoW but still kill reregister (unused)

* run black

* return test to networks choices in btcli, fix chain_endpoint selection

* fix pow args

* Add btcli wallet balance (#1564)

* begin adding balance command

* skip validator that hasn't set weights yet on root

* finish balances command

* formatter

* issue warning for nonexistent coldkeypub.txt rather than break

* Dendrite fixes (#1561)

* make sure a session exists before trying to close it

* don't double iterate over async generator, simply return it

* black

* less DRY violations

* fix typehints

* Master into staging (#1570)

Release/6.2.0 (#1567)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------



* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------



* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* Improve development workflow documentation

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

* Merge releases 4.0.0 and 4.0.1 back to staging (#1306)

* bump version

* Fix permissions for release github script (#1224)



* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------



* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------



* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------







* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

* [Release] v4.0.0 (#1271)

* bump version

* Fix permissions for release github script (#1224)



* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------



* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------



* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------







* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

---------








* fix my delegates

* fix perms on changelog script

* update version

* fix changelog script

* Catch bad endpoint protocol (#1296)

* catch protocol not good

* add protocol 4

* catch assertion and return bool

* catch assertion errors

* changelog

---------








* Update DEVELOPMENT_WORKFLOW.md

* final fixes

* staging updates and fixes (#1540)

* fix cli test

* fix double-counted hotkeys per subnet and non-iterable stake obj (#1539)

* fix double-counted hotkeys per subnet and non-iterable stake obj

* run black

* Add root get_weights command to btcli (#1536)

* Add root get_weights command to btcli

* Use a percentage for viewing weights instead of float values

* run black, fix cli test

---------



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* Merge master (#1552)

Release/6.1.0 (#1550)



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------











* Streaming fix (#1551)

* yield chunks immediately in process_streaming_responss so clients can access

* break streaming into separate call funcs

* update docstrings, types

* black

* duplicate debug msg

* add warning for mismatched streaming arg + subclass

* Fix typos (#1553)

* Release/6.1.0 (#1550)



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------











* fix typos

---------












* Normalize weights in r get weights table (#1556)

* Normalize weights in r get weights table

* use numpy and make table look nicer

* apply black

* add max 1 to prevent div0

---------



* Dendrite & Synapse updates and fixes (#1555)

* remove tensor header objects to not overflow headers

* update tests to reflect removal of tensor headers

* ensure consistent method for calling  in synapse methods

* fix dendrite UnClosesedSession error

* fix docstring and add tests for close/aclose

* rm extra delete

* run black

* add default synapse dict() consistency test

* call del on session after close_session(), fix tests

* update dendrite dummy clsname

* add dendrite.query finally block

* fix test

* rm root flag in metagraph (#1558)

* rm root flag in metagraph

* run black

* typo

* Max Faucet Runs == 3 (#1560)

add exceptions

* replace unknown wallet params (chain mismatch) with key values (#1559)

* replace unknown wallet params (chain mismatch) with key values

* run black

* rm debug prints

* Remove PoW registration cli and associated extrinsic (#1557)

* Remove PoW registration cli and associated extrinsic

* run black

* no mo pow, no mo pow tests

* remove now deprecated PoW reregister routine

* remove deprecated tests

* more test fixes

* remove _do_pow call

* return PoW but still kill reregister (unused)

* run black

* return test to networks choices in btcli, fix chain_endpoint selection

* fix pow args

* Add btcli wallet balance (#1564)

* begin adding balance command

* skip validator that hasn't set weights yet on root

* finish balances command

* formatter

* issue warning for nonexistent coldkeypub.txt rather than break

* Dendrite fixes (#1561)

* make sure a session exists before trying to close it

* don't double iterate over async generator, simply return it

* black

* less DRY violations

* fix typehints

* add versioning

* update changelog

* remove unused registration utils

* fix typos

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: “quac88” <“mac2@thrasher.com”>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <shaabana@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>
Co-authored-by: omahs <73983677+omahs@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.dev>
Co-authored-by: Cameron Fairchild <cameron@fairchild.software>

* adding logging.exception (#1569)

* adding logging.exception

* Update network.py (#1568)

* Release/6.2.0 (#1567)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* Improve development workflow documentation

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test f…
unconst added a commit that referenced this pull request Dec 14, 2023
* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* Improve development workflow documentation

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

* Merge releases 4.0.0 and 4.0.1 back to staging (#1306)

* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

* [Release] v4.0.0 (#1271)

* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* fix my delegates

* fix perms on changelog script

* update version

* fix changelog script

* Catch bad endpoint protocol (#1296)

* catch protocol not good

* add protocol 4

* catch assertion and return bool

* catch assertion errors

* changelog

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Update DEVELOPMENT_WORKFLOW.md

* final fixes

* staging updates and fixes (#1540)

* fix cli test

* fix double-counted hotkeys per subnet and non-iterable stake obj (#1539)

* fix double-counted hotkeys per subnet and non-iterable stake obj

* run black

* Add root get_weights command to btcli (#1536)

* Add root get_weights command to btcli

* Use a percentage for viewing weights instead of float values

* run black, fix cli test

---------

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Fix typo (#1543)

Co-authored-by: philanthrope <ifrit98@gmail.com>

* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)

Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* Merge master (#1552)

Release/6.1.0 (#1550)



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Streaming fix (#1551)

* yield chunks immediately in process_streaming_responss so clients can access

* break streaming into separate call funcs

* update docstrings, types

* black

* duplicate debug msg

* add warning for mismatched streaming arg + subclass

* Fix typos (#1553)

* Release/6.1.0 (#1550)

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Fix typo (#1543)

Co-authored-by: philanthrope <ifrit98@gmail.com>

* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)

Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* fix typos

---------

Co-authored-by: philanthrope <ifrit98@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Normalize weights in r get weights table (#1556)

* Normalize weights in r get weights table

* use numpy and make table look nicer

* apply black

* add max 1 to prevent div0

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.software>

* Dendrite & Synapse updates and fixes (#1555)

* remove tensor header objects to not overflow headers

* update tests to reflect removal of tensor headers

* ensure consistent method for calling  in synapse methods

* fix dendrite UnClosesedSession error

* fix docstring and add tests for close/aclose

* rm extra delete

* run black

* add default synapse dict() consistency test

* call del on session after close_session(), fix tests

* update dendrite dummy clsname

* add dendrite.query finally block

* fix test

* rm root flag in metagraph (#1558)

* rm root flag in metagraph

* run black

* typo

* Max Faucet Runs == 3 (#1560)

add exceptions

* replace unknown wallet params (chain mismatch) with key values (#1559)

* replace unknown wallet params (chain mismatch) with key values

* run black

* rm debug prints

* Remove PoW registration cli and associated extrinsic (#1557)

* Remove PoW registration cli and associated extrinsic

* run black

* no mo pow, no mo pow tests

* remove now deprecated PoW reregister routine

* remove deprecated tests

* more test fixes

* remove _do_pow call

* return PoW but still kill reregister (unused)

* run black

* return test to networks choices in btcli, fix chain_endpoint selection

* fix pow args

* Add btcli wallet balance (#1564)

* begin adding balance command

* skip validator that hasn't set weights yet on root

* finish balances command

* formatter

* issue warning for nonexistent coldkeypub.txt rather than break

* Dendrite fixes (#1561)

* make sure a session exists before trying to close it

* don't double iterate over async generator, simply return it

* black

* less DRY violations

* fix typehints

* Master into staging (#1570)

Release/6.2.0 (#1567)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------



* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------



* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* Improve development workflow documentation

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

* Merge releases 4.0.0 and 4.0.1 back to staging (#1306)

* bump version

* Fix permissions for release github script (#1224)



* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------



* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------



* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------







* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

* [Release] v4.0.0 (#1271)

* bump version

* Fix permissions for release github script (#1224)



* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------



* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------



* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------







* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

---------








* fix my delegates

* fix perms on changelog script

* update version

* fix changelog script

* Catch bad endpoint protocol (#1296)

* catch protocol not good

* add protocol 4

* catch assertion and return bool

* catch assertion errors

* changelog

---------








* Update DEVELOPMENT_WORKFLOW.md

* final fixes

* staging updates and fixes (#1540)

* fix cli test

* fix double-counted hotkeys per subnet and non-iterable stake obj (#1539)

* fix double-counted hotkeys per subnet and non-iterable stake obj

* run black

* Add root get_weights command to btcli (#1536)

* Add root get_weights command to btcli

* Use a percentage for viewing weights instead of float values

* run black, fix cli test

---------



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* Merge master (#1552)

Release/6.1.0 (#1550)



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------











* Streaming fix (#1551)

* yield chunks immediately in process_streaming_responss so clients can access

* break streaming into separate call funcs

* update docstrings, types

* black

* duplicate debug msg

* add warning for mismatched streaming arg + subclass

* Fix typos (#1553)

* Release/6.1.0 (#1550)



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------











* fix typos

---------












* Normalize weights in r get weights table (#1556)

* Normalize weights in r get weights table

* use numpy and make table look nicer

* apply black

* add max 1 to prevent div0

---------



* Dendrite & Synapse updates and fixes (#1555)

* remove tensor header objects to not overflow headers

* update tests to reflect removal of tensor headers

* ensure consistent method for calling  in synapse methods

* fix dendrite UnClosesedSession error

* fix docstring and add tests for close/aclose

* rm extra delete

* run black

* add default synapse dict() consistency test

* call del on session after close_session(), fix tests

* update dendrite dummy clsname

* add dendrite.query finally block

* fix test

* rm root flag in metagraph (#1558)

* rm root flag in metagraph

* run black

* typo

* Max Faucet Runs == 3 (#1560)

add exceptions

* replace unknown wallet params (chain mismatch) with key values (#1559)

* replace unknown wallet params (chain mismatch) with key values

* run black

* rm debug prints

* Remove PoW registration cli and associated extrinsic (#1557)

* Remove PoW registration cli and associated extrinsic

* run black

* no mo pow, no mo pow tests

* remove now deprecated PoW reregister routine

* remove deprecated tests

* more test fixes

* remove _do_pow call

* return PoW but still kill reregister (unused)

* run black

* return test to networks choices in btcli, fix chain_endpoint selection

* fix pow args

* Add btcli wallet balance (#1564)

* begin adding balance command

* skip validator that hasn't set weights yet on root

* finish balances command

* formatter

* issue warning for nonexistent coldkeypub.txt rather than break

* Dendrite fixes (#1561)

* make sure a session exists before trying to close it

* don't double iterate over async generator, simply return it

* black

* less DRY violations

* fix typehints

* add versioning

* update changelog

* remove unused registration utils

* fix typos

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: “quac88” <“mac2@thrasher.com”>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <shaabana@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>
Co-authored-by: omahs <73983677+omahs@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.dev>
Co-authored-by: Cameron Fairchild <cameron@fairchild.software>

* adding logging.exception (#1569)

* adding logging.exception

* Update network.py (#1568)

* Release/6.2.0 (#1567)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* Improve development workflow documentation

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

* Merge releases 4.0.0 and 4.0.1 back to staging (#1306)

* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

* [Release] v4.0.0 (#1271)

* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* fix my delegates

* fix perms on changelog script

* update version

* fix changelog script

* Catch bad endpoint protocol (#1296)

* catch protocol not good

* add protocol 4

* catch assertion and return bool

* catch assertion errors

* changelog

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Update DEVELOPMENT_WORKFLOW.md

* final fixes

* staging updates and fixes (#1540)

* fix cli test

* fix double-counted hotkeys per subnet and non-iterable stake obj (#1539)

* fix double-counted hotkeys per subnet and non-iterable stake obj

* run black

* Add root get_weights command to btcli (#1536)

* Add root get_weights command to btcli

* Use a percentage for viewing weights instead of float values

* run black, fix cli test

---------

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Fix typo (#1543)

Co-authored-by: philanthrope <ifrit98@gmail.com>

* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)

Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* Merge master (#1552)

Release/6.1.0 (#1550)



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Streaming fix (#1551)

* yield chunks immediately in process_streaming_responss so clients can access

* break streaming into separate call funcs

* update docstrings, types

* black

* duplicate debug msg

* add warning for mismatched streaming arg + subclass

* Fix typos (#1553)

* Release/6.1.0 (#1550)

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Fix typo (#1543)

Co-authored-by: philanthrope <ifrit98@gmail.com>

* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)

Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* fix typos

---------

Co-authored-by: philanthrope <ifrit98@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Normalize weights in r get weights table (#1556)

* Normalize weights in r get weights table

* use numpy and make table look nicer

* apply black

* add max 1 to prevent div0

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.software>

* Dendrite & Synapse updates and fixes (#1555)

* remove tensor header objects to not overflow headers

* update tests to reflect removal of tensor headers

* ensure consistent method for calling  in synapse methods

* fix dendrite UnClosesedSession error

* fix docstring and add tests for close/aclose

* rm extra delete

* run black

* add default synapse dict() consistency test

* call del on session after close_session(), fix tests

* update dendrite dummy clsname

* add dendrite.query finally block

* fix test

* rm root flag in metagraph (#1558)

* rm root flag in metagraph

* run black

* typo

* Max Faucet Runs == 3 (#1560)

add exceptions

* replace unknown wallet params (chain mismatch) with key values (#1559)

* replace unknown wallet params (chain mismatch) with key values

* run black

* rm debug prints

* Remove PoW registration cli and associated extrinsic (#1557)

* Remove PoW registration cli and associated extrinsic

* run black

* no mo pow, no mo pow tests

* remove now deprecated PoW reregister routine

* remove deprecated tests

* more test fixes

* remove _do_pow call

* return PoW but still kill reregister (unused)

* run black

* return test to networks choices in btcli, fix chain_endpoint selection

* fix pow args

* Add btcli wallet balance (#1564)

* begin adding balance command

* skip validator that hasn't set weights yet on root

* finish balances command

* formatter

* issue warning for nonexistent coldkeypub.txt rather than break

* Dendrite fixes (#1561)

* make sure a session exists before trying to close it

* don't double iterate over async generator, simply return it

* black

* less DRY violations

* fix typehints

* add versioning

* update changelog

* remove unused registration utils

* fix typos

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: “quac88” <“mac2@thrasher.com”>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <shaabana@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>
Co-authored-by: omahs <73983677+omahs@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.dev>
Co-authored-by: Cameron Fairchild <cameron@fairchild.software>

* Update network.py

small spelling fix `weights_rate_Limit` -> `weights_rate_limit`

* Reformat

---------

Co-authored-by: philanthrope <ifrit98@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: “quac88” <“mac2@thrasher.com”>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <shaabana@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>
Co-authored-by: omahs <73983677+omahs@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.dev>
Co-authored-by: Cameron Fairchild <cameron@fairchild.software>

* Subtensor Registry  (#1562)

* subtensor identity query

* formatter

* adds identified field

* black and additional requirement

* black

---------

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* add instructions for upgrading bittensor with outdated version check (#1571)

* add instructions for upgrading bittensor with outdated version check

* run black

* Add identity commands to btcli (#1566)

* subtensor identity query

* formatter

* add get/set identity btcli command

* check for values > 64 bytes max on chain

* run black

* update identity funcs for hotkey option

* fix incorrect bytes limit for idendity

* run black

* add check for 1 tao cost

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Add set_delegate_take command to btcli (#1563)

* Add set_delegate_take command

* formatter

* string info update

---------

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Subtensor archive (#1575)

* add archive network option to subtensor

* add /

* fix archive resolution

* Bugfix/list delegates (#1577)

* make this legible/visible

* run black

* don't return result twice in query() (#1574)

* rename logging.py so doesn't circ import (#1572)

* add AxonInfo.<to|from>_string() (#1565)

* add AxonInfo.<to|from>_string()

* add error handling

* don't print __is_set for recursive objects (#1573)

* Adds docstrings for CLI for Sphynx documentation (#1579)

* Release/6.2.0 (#1567)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for lo…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants