-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Update verify policy #18459
Update verify policy #18459
Conversation
Codecov Report
@@ Coverage Diff @@
## master #18459 +/- ##
=========================================
- Coverage 82.5% 82.5% -0.1%
=========================================
Files 436 436
Lines 121850 121851 +1
=========================================
- Hits 100605 100597 -8
- Misses 21245 21254 +9 |
(cherry picked from commit 44289e6) # Conflicts: # runtime/src/message_processor.rs
(cherry picked from commit 44289e6)
* Update verify policy (#18459) (cherry picked from commit 44289e6) # Conflicts: # runtime/src/message_processor.rs * resolve conflicts Co-authored-by: Jack May <[email protected]>
* Update verify policy (#18459) (cherry picked from commit 44289e6) * resolve conflicts Co-authored-by: Jack May <[email protected]>
| if !is_writable // line coverage used to get branch coverage | ||
| || pre.executable() | ||
| || program_id != pre.owner() | ||
| || program_id != post.owner() |
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.
Does this need gated?
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.
n/m. I see #18492 now 😉
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.
Ah, totally missed that in review. Needs gating because you could set executable to be true and get a successful transaction right?
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.
Yup, realized that as soon as I hit merge ;-).
This covers it: #18492
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.
Ah, totally missed that in review. Needs gating because you could set executable to be true and get a successful transaction right?
These get easier to see the more cluster deaths you cause 🙂
Problem
Update the owner and the executable at the same time
Summary of Changes
Catch in the verify stage
Fixes #