-
Notifications
You must be signed in to change notification settings - Fork 18
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
Consider restricting the creation of sudt/xudt cells with empty amount #82
Comments
You're correct, these cells are meaningless as they can't be spent anymore. Note that these cells can be recycled by attaching them to a minting transaction(normal transaction can't consume it). |
can we combine a zero udt cell with a non-zero udt cell as inputs and transfer them to one output cell? |
yeah now users have to do additional tasks to consolidate these cells but it's sort of cumbersome. I understand your comment in #83 (comment) that production scripts can't be upgraded but if this is really considered... can it be batched in the next hardfork? |
The hardfork cannot upgrade such a script. Instead, you can deploy a new one with a patch to the mainnet, and then perform a migration. |
Ok. Thanks for the confirmation. |
There are xudt/sudt cells with zero balance being created. For example: This CAT++ transaction, output 3 is an xudt cell with zero balance.
The creation of this type of cells either by mistakes or by intention are meaningless.
Restricting them can help keep CKB UTXO set minimal and lightweight.
The text was updated successfully, but these errors were encountered: