-
Notifications
You must be signed in to change notification settings - Fork 105
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(pallet_gear): Introduce invariant: all user non-reply messages go to mailbox #4060
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As far as I remember, it was discussed to impl the invariant in the way that every gasLESS messages sent to user requires MB threshold so further inserted in mailbox in case of user sending. At this point it applies for all messages, which is incorrect with initial idea. Furthermore, isn't the implementation panic when sends with gas = 1 to user? Seems like this.
Discussed: the issue is that 0 gas limit for gasful messages is a legit case. So that's going to be re-introduced. |
@breathx ptal |
Release notes: All instant (no delay) user non-reply ("handle") messages are now sent to mailbox.
Completely removes
safe_gasful_send
as it introduced some implicit risky invariants. All user messages now go to mailbox, except for reply messages (as it was before)