-
Notifications
You must be signed in to change notification settings - Fork 5
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
wip: 🚧 benchmark a few more extrinsics of the File System pallet #295
Conversation
pallets/file-system/src/utils.rs
Outdated
@@ -400,7 +400,6 @@ where | |||
|
|||
if response == BucketMoveRequestResponse::Rejected { | |||
<PendingBucketsToMove<T>>::remove(&bucket_id); |
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.
you could also just call this once since we delete it whether the msp rejects or accepts the request.
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.
Agreed
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.
I refactored this! Also the MoveBucketAccepted event was being emitted twice so I removed the call from utils.rs
pallets/file-system/src/utils.rs
Outdated
@@ -400,7 +400,6 @@ where | |||
|
|||
if response == BucketMoveRequestResponse::Rejected { | |||
<PendingBucketsToMove<T>>::remove(&bucket_id); |
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.
Agreed
This PR adds the benchmark code for
request_move_bucket
,msp_respond_move_bucket_request
,update_bucket_privacy
,create_and_associate_collection_with_bucket
,delete_bucket
,bsp_volunteer
and the partial setup forbsp_confirm_storing
. To keep going with the rest of the extrinsics, a script to generate varios non-inclusion and inclusion forest proofs and file key proofs is needed, which is currently being worked on.