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

Revolution #1450

Merged
merged 343 commits into from
Oct 2, 2023
Merged

Revolution #1450

merged 343 commits into from
Oct 2, 2023

Conversation

unconst
Copy link
Contributor

@unconst unconst commented Jul 13, 2023

No description provided.

ifrit98 and others added 26 commits September 13, 2023 19:01
* standardize bittensor imports

* run black

* standardize typehints

* run black and add Calalble

* add responses

* fix typehints
* remove unnecessary traces

* added blacklist reason to trace

---------

Co-authored-by: isabella618033 <isabella618033@gmail.com>
* (WIP) Refactor synapse and dendrite to verify body hash in signature

* EUREKA!

* cleanup print statements

* remove (now) unnecessary metaclass override protection

* remove metaclass from Synapse def

* fix commit

* remove print statements

* run black

* add typehints for request

* (WIP) update synapse tests

* move hash to utils

* remove extra logging

* fix repackaging request, inspect body and hash to compare against header hashes

* remove streaming example, moved to subnet-1 template

* put blacklist first so we don't load the body if we're gonna blacklist anyway

* fix axon tests

* fix bt. import

* fix typehint bt.

* fix test relative to header changes

* run black

* add reason to error logging

* create dependency for all forward_fn routes to verify body before passing to synapse function

* fix test (again)

* add md5 hash option

* remove extra trace
add check for missing field
* Add dereg stake to overview command

* fix typo

* use default dict instead

* pass lambda for default factory

* remove lambda arg in def factory

* run black

---------

Co-authored-by: ifrit98 <ifrit98@gmail.com>
Updates command examples to new format
root metagraph fixes
* simplify hashing for request verification

* add override protection for  property

* run black

* update synapse tests

* update default json b64 value for hash_fields

* remove print statement

* run black
* merge master into revolution

* remove depreicated content
* add msgpack-numpy to ci

* revamp parsing to correct VCS link
update dockerfile to pytorch dep 2.0.1
* fix for metagraph root weights

* black
* add no_prompt confirmation for wallet update command

* fix bool flag bug in cli (argparse)

* unskip tests

* use instantiated subtensor for root and senate incase cli.config is None

* run black

* unskip and update cli tests

* adds simple test for btcli root senate_vote

* black

---------

Co-authored-by: p-ferreira <pe_drojunior@hotmail.com>
* rm md5 -> sha3

* pass required_hash_fields as attach argument

* make default_verify async

* move req_hash_fields to a field instead of prop

* black

* make verify_body_integirty member of self to accesss required_hash_fields

* correct default value

* proper request name for key

* update tests

* black

* parse required_hash_fields directly from protocol definition itself

* run black

* move parsing req_hash_fields below signature checks

* remove arg docstring for attach()
* fixes for root=True

* run black

---------

Co-authored-by: ifrit98 <ifrit98@gmail.com>
@ifrit98 ifrit98 self-requested a review October 2, 2023 17:56
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.

Re(volution) time! 💯

@eduardogr eduardogr merged commit 2867a32 into master Oct 2, 2023
9 checks passed
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.

None yet

9 participants