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(pallet_gear): Introduce invariant: all user non-reply messages go to mailbox #4060

Merged
merged 15 commits into from
Jul 30, 2024

Conversation

techraed
Copy link
Member

@techraed techraed commented Jul 16, 2024

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)

@techraed techraed added A0-pleasereview PR is ready to be reviewed by the team D2-node Gear Node B1-releasenotes The feature deserves to be added to the Release Notes C2-refactoring Refactoring proposal labels Jul 16, 2024
@techraed techraed requested review from ark0f and breathx July 16, 2024 11:48
@techraed techraed self-assigned this Jul 16, 2024
Cargo.lock Outdated Show resolved Hide resolved
core-processor/src/ext.rs Outdated Show resolved Hide resolved
core-processor/src/ext.rs Outdated Show resolved Hide resolved
pallets/gear/src/tests.rs Outdated Show resolved Hide resolved
pallets/gear/src/tests.rs Outdated Show resolved Hide resolved
@techraed techraed changed the title feat(pallet_gear): Introduce invariant: all user non-reply messages go to mailbox. feat(pallet_gear): Introduce invariant: all user non-reply messages go to mailbox Jul 19, 2024
Copy link
Member

@breathx breathx left a 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.

@techraed
Copy link
Member Author

techraed commented Jul 24, 2024

Discussed: the issue is that 0 gas limit for gasful messages is a legit case. So that's going to be re-introduced.

@techraed techraed requested a review from breathx July 24, 2024 14:06
@techraed
Copy link
Member Author

@breathx ptal

core-processor/src/ext.rs Show resolved Hide resolved
@techraed techraed added A2-mergeoncegreen PR is ready to merge after CI passes and removed A0-pleasereview PR is ready to be reviewed by the team labels Jul 30, 2024
@techraed techraed merged commit 9ad743c into master Jul 30, 2024
18 checks passed
@techraed techraed deleted the st-mailbox-invariant branch July 30, 2024 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A2-mergeoncegreen PR is ready to merge after CI passes B1-releasenotes The feature deserves to be added to the Release Notes C2-refactoring Refactoring proposal D2-node Gear Node
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants