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

fix: unlock shadow-object balance when a bucket is force deleted #586

Conversation

alexgao001
Copy link
Collaborator

Description

In the force delete bucket scenario, there might be objects being updated, should unlock the shadow object balance.

Rationale

tell us why we need these changes...

Example

add an example CLI or API response...

Changes

Notable changes:

  • add each change in a bullet point here
  • ...

Potential Impacts

  • add potential impacts for other components here
  • ...

@@ -341,6 +341,15 @@ func (k Keeper) ForceDeleteBucket(ctx sdk.Context, bucketId sdkmath.Uint, cap ui
return false, deleted, err
}
k.SetInternalBucketInfo(ctx, bucketInfo.Id, internalBucketInfo)

// if an object is updating, also need to unlock the shadowObject fee
if objectInfo.IsUpdating {
Copy link
Contributor

Choose a reason for hiding this comment

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

Isn't this a hardfork?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Because this feature not eanbled on testnet I think, so it is not hardfork?

@forcodedancing forcodedancing added this pull request to the merge queue Mar 8, 2024
Merged via the queue into bnb-chain:master with commit 98f40b7 Mar 8, 2024
5 checks passed
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.

4 participants