This repository was archived by the owner on Jan 22, 2025. It is now read-only.
Add get_processed_sibling_instruction syscall#22956
Merged
jackcmay merged 1 commit intosolana-labs:v1.9from Feb 8, 2022
Merged
Add get_processed_sibling_instruction syscall#22956jackcmay merged 1 commit intosolana-labs:v1.9from
jackcmay merged 1 commit intosolana-labs:v1.9from
Conversation
df2e6bd to
19ee0a2
Compare
Contributor
|
Just gave this a whirl on https://github.com/CriesofCarrots/solana-program-library/commits/finish-memo-extension |
Codecov Report
@@ Coverage Diff @@
## v1.9 #22956 +/- ##
=========================================
- Coverage 81.2% 81.1% -0.1%
=========================================
Files 531 531
Lines 147632 147930 +298
=========================================
+ Hits 119987 120108 +121
- Misses 27645 27822 +177 |
19ee0a2 to
3f9ccfa
Compare
3f9ccfa to
c1729ee
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
There are scenarios where instructions (top-level or via CPI) would like to know what the last instruction processed was. Some examples are verification of assert instructions or to check for memo instructions. Programs can already check tx level instructions via the
Sysvar1nstructions1111111111111111111111111but there is no way to get information about what inner instructions have been processed.Summary of Changes
Add a syscall that allows a program to query what sibling instructions have been successfully processed.
Summary of Changes
Backport of #22859
Fixes #