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

TransactionView: InstructionsIterator #2580

Merged
merged 1 commit into from
Aug 14, 2024

Conversation

apfitzge
Copy link

Problem

Summary of Changes

  • Add instructions_iter to TransactionMeta to allow iterating over instructions

Fixes #

/// # Safety
/// - This function must be called with the same `bytes` slice that was
/// used to create the `TransactionMeta` instance.
pub unsafe fn instructions_iter<'a>(&self, bytes: &'a [u8]) -> InstructionsIterator<'a> {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was on the fence about whether this should return the actual type or just an impl Iterator/ExactSizeIterator.

Anyone got strong feelings on this one way or another?

@apfitzge apfitzge mentioned this pull request Aug 13, 2024
14 tasks
@apfitzge apfitzge force-pushed the instructions_iterator branch from 91f64d2 to 7ae6f37 Compare August 13, 2024 21:10
@apfitzge apfitzge marked this pull request as ready for review August 14, 2024 13:31
@apfitzge apfitzge self-assigned this Aug 14, 2024
@apfitzge apfitzge merged commit 472d848 into anza-xyz:master Aug 14, 2024
52 checks passed
@apfitzge apfitzge deleted the instructions_iterator branch August 14, 2024 15:50
ray-kast pushed a commit to abklabs/agave that referenced this pull request Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants