-
Notifications
You must be signed in to change notification settings - Fork 126
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
Documentation improvement for runtime #400
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Partial review. Needs some changes in the first file.
@@ -624,6 +710,9 @@ pub mod pallet { | |||
Ok(()) | |||
} | |||
|
|||
/// The extrinsic sets the network rate limit for the network. | |||
/// It is only callable by the root account. | |||
/// The extrinsic will call the Subtensor pallet to set the network rate limit. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some docstrings say "for the network" and others "for the subnet". We should clarify how "for the network" differs from "for the subnet", and also clarify "for the network" if root account still synonymous with the subnet owner?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how about we use "for the network" if there is no netuid in the parameter. and "for the subnet" with specific netuid.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But first, what does "for the network" mean here? What is it referring to? Normally these things refer to subnets but I guess that's not it? I am not getting the meaning of "network rate limit for the network" here. Also it now says "callable by the root account"... I am not getting this either. Root account is doing what here? When we know that, we can tweak the wording then.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the network is subtensor blockchain in the context. I think subnet is separate network, they are connected by its own connection method. but sutnet's validators are also playing important role in subtensor blockchain.
I think we need the terminology for our blockchain, the whole system including chain and all subnets.
The root account is a special account in substrate based chain, it can call any function and we can set the different privilege for normal account and root account. At the beginning of blockchain launch, it is a special real account. Later, it is from governance.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, often "network" is used to refer to the entire blockchain network collectively, so "all of finney" for example
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good once any pending tweaks are added 👍🏻
Description
The pr add all missed doc for all crates. make sure the compilation is successful with the check of #[deny(missing_docs)]
Related Issue(s)
Type of Change
Breaking Change
No
Checklist
cargo fmt
andcargo clippy
to ensure my code is formatted and linted correctlyScreenshots (if applicable)
Please include any relevant screenshots or GIFs that demonstrate the changes made.
Additional Notes
The pr will fix #304