This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Calculate and refund weight for identity pallet #5680
Merged
Merged
Changes from all commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
bd03eb7
add old_registrar_count as param to estimate weight
apopiak eeaf09f
cast count to Weight
apopiak abf2bf2
add weight calculation for set_identity
apopiak b4cb9de
remove superfluous weight comment
apopiak 77e4568
add detailed weight estimation for set_subs
apopiak 3c6bb77
adjust benchmarking code to the new API
apopiak 6a64c7e
add second parameter to set_subs benchmark
apopiak 31ba72f
rename o to p
apopiak d4feebe
calculate weight based on benchmarks
apopiak f34aad1
Merge remote-tracking branch 'origin' into apopiak-weight-params
apopiak dd023c1
Merge remote-tracking branch 'origin/master' into apopiak-weight-params
apopiak 6d08bc1
use try_mutate for registrars
apopiak fa04aab
fix weight number typo
apopiak 3fb9789
update weights for set_subs + add weights for clear_identity and requ…
apopiak 9d027ba
improve naming and docs
apopiak 6c0dfa9
add weight calculation for cancel_request
apopiak d662f5a
fix benchmark
apopiak 1316345
fix tests
apopiak c699699
fix arithmetic overflow in balances triggered by tests
apopiak 269f50b
add weight calcluations for more dispatchables
apopiak 8dec341
add weight calculation for provide_judgement
apopiak 155f193
mark param as unused
apopiak d6f68ff
add MaxRegistrars associated type used for weight estimation
apopiak ba839d6
check that MaxRegistrars is not exceeded
apopiak 4719cc5
add remaining weight calculations
apopiak 05343cb
Merge branch 'master' into apopiak-weight-params
shawntabrizi 6dce9f1
use weight refunds to use more constants in weight estimation
apopiak 34825db
Merge branch 'apopiak-weight-params' of github.com:paritytech/substra…
apopiak 21ee413
adjust usage of clear_identity
apopiak 9316e8e
refund request_judgement weights and remove param
apopiak 94624ba
refund weights for cancel_request and remove param
apopiak 8574053
add remaining refunds and remove params
apopiak cb04804
refund weight for set_subs and remove param
apopiak e0bbfcc
make comment more specific
apopiak f5ffbb5
add range note to benchmarking docs
apopiak 1072ff8
fix inconsistencies before review
apopiak e4724da
Merge branch 'master' of github.com:paritytech/substrate into apopiak…
apopiak 98718d9
fix actual weight calculation for add_registrar
apopiak 02f8cab
remove duplicate balance ops weights + refund on all dispatchables
apopiak File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
As a follow up, we can just change the macro syntax to
MIN ..= MAX
, which I also think solve this syntax mismatch right?