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

wip: 🚧 benchmark a few more extrinsics of the File System pallet #295

Merged
merged 9 commits into from
Dec 30, 2024

Conversation

TDemeco
Copy link
Contributor

@TDemeco TDemeco commented Dec 19, 2024

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 for bsp_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.

@TDemeco TDemeco requested review from ffarall and snowmead December 19, 2024 19:23
@@ -400,7 +400,6 @@ where

if response == BucketMoveRequestResponse::Rejected {
<PendingBucketsToMove<T>>::remove(&bucket_id);
Copy link
Contributor

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.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed

Copy link
Contributor Author

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

@@ -400,7 +400,6 @@ where

if response == BucketMoveRequestResponse::Rejected {
<PendingBucketsToMove<T>>::remove(&bucket_id);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed

@TDemeco TDemeco merged commit b5d132d into main Dec 30, 2024
24 checks passed
@TDemeco TDemeco deleted the wip/initial-file-system-benchmarking branch December 30, 2024 18:18
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.

3 participants