Also allow to increase take, add tests#313
Conversation
distributedstatemachine
left a comment
There was a problem hiding this comment.
Looks good! The only thing we need to do with is PR is either rebase off development , or merge into stao branch. v1.0.0 has alot of changes and we would need to capture them here. I think it would also be nice to test the delegate take rate limits
distributedstatemachine
left a comment
There was a problem hiding this comment.
Looks good! The only thing we need to do with is PR is either rebase off development , or merge into stao branch. v1.0.0 has alot of changes and we would need to capture them here. I think it would also be nice to test the delegate take rate limits
distributedstatemachine
left a comment
There was a problem hiding this comment.
Looks good! The only thing we need to do with is PR is either rebase off development , or merge into stao branch. v1.0.0 has alot of changes and we would need to capture them here. I think it would also be nice to test the delegate take rate limits
I also think it might make sense , so rate limit at the signed extension level , so people dont bombard the chain with these calls
|
Ok
You can use pre_dispatch hooks on the signed extensions to filter this out . Here is an example of how we use them to filter out some transactions |
…s on delegate creation - in progress
Co-authored-by: cuteolaf <OliverLim818@gmail.com>
Co-authored-by: cuteolaf <OliverLim818@gmail.com>
Co-authored-by: cuteolaf <OliverLim818@gmail.com>
Co-authored-by: cuteolaf <OliverLim818@gmail.com>
Co-authored-by: cuteolaf <OliverLim818@gmail.com>
Co-authored-by: cuteolaf <OliverLim818@gmail.com>
Co-authored-by: cuteolaf <OliverLim818@gmail.com>
…s on delegate creation - in progress
…r/subtensor into feature/increase_delegate_take
|
@distributedstatemachine , I made changes you requested, and also I rebased the branch to stao (with Polkadot 1.0). Would it make sense to close this PR and open a new one to stao branch instead? |
|
Also, we could probably close decrease_take branch because this branch incorporates all changes from there. |
Yes this makes sense
Sounds good to me! |
Added:
increase_takeinsubtensorpalletsudo_set_tx_rate_limit_delegate_takeinadmin-utilspalletFor the code review, please check if this check is needed in
do_decrease_take, I removed it because I think it should not be there:subtensor/pallets/subtensor/src/staking.rs
Line 141 in c174374
This PR closes #314