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

feat: add max buckets per account into storage module params #123

Merged
merged 1 commit into from
Mar 20, 2023

Conversation

fynnss
Copy link
Contributor

@fynnss fynnss commented Mar 20, 2023

Description

To prevent an excessive number of bucket creations from affecting domain name redirection performance or other performacce problem, it's important to place a limit on the number of buckets that each user can create.

Rationale

NA

Example

  1. The Storage Provider (SP) retrieves the "MaxBucketsPerAccount" parameter from the blockchain.
  2. When a user sends a GetApproval request, the SP checks the number of buckets associated to the user's account. If the count greater than the specified limit in the "MaxBucketsPerAccount" parameter, the request is denied.

Changes

Notable changes:

  • NA

@fynnss fynnss requested review from joeylichang and RenRick March 20, 2023 03:12
@fynnss fynnss added the r4r label Mar 20, 2023
@fynnss fynnss force-pushed the fynn/add_bucket_limit_params branch from 500878e to 743be80 Compare March 20, 2023 03:21
@fynnss fynnss force-pushed the fynn/add_bucket_limit_params branch from 743be80 to 40d984e Compare March 20, 2023 03:26
Copy link

@RenRick RenRick left a comment

Choose a reason for hiding this comment

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

LGTM

@joeylichang
Copy link

LGTM

@fynnss fynnss merged commit 43b3524 into develop Mar 20, 2023
@unclezoro unclezoro deleted the fynn/add_bucket_limit_params branch April 18, 2023 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants