-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Bank module supports the function of dynamically adding blacklist #5371
Comments
Right now the blacklist is solely intended for module accounts which are known at compile-time and are static. We never intended to support dynamic capabilities because you cannot dynamically generate module accounts post-chain-start. That being said, can you please list some specific uses cases where we'd want to blacklist accounts dynamically? |
Scenario 1: We have implemented a Scenario 2: Use the port in the IBC module to generate the relevant escrow account for recording the locked tokens. My understanding is to facilitate the tracking of the total amount of tokens transferred through the port. The transfer will also cause the port to transfer the total amount of tokens, although there is no major harm. The above case about the dynamic blacklist function may not be very appropriate, but I think that applications developed based on cosmos-sdk in the future may have more use cases |
@zhiqiang-bianjie understood. I can see how this will be beneficial. I propose we update Then,
|
We may have to kick this out to 0.40. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Summary
Members of the blacklist should support dynamic addition and deletion, but should not be fixed when the network is started, so for users who use cosmos-sdk to develop other applications, the scalability is not very good.
Problem Definition
The custody account of each module of the system may be dynamically generated. If you need to add to the blacklist list, if you want the bank module to introduce the function of dynamically adding a blacklist
Proposal
The bank module provides interfaces that can be dynamically added and removed. The blacklist requires persistent storage.
For Admin Use
The text was updated successfully, but these errors were encountered: