-
Notifications
You must be signed in to change notification settings - Fork 261
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
runtime-transaction: get_signature_details #2847
runtime-transaction: get_signature_details #2847
Conversation
// array of slots for all possible static and sanitized program_id_index, | ||
// each slot indicates if a program_id_index has not been checked, or is | ||
// already checked with result that can be reused. | ||
flags: [Option<ProgramIdStatus>; FILTER_SIZE as usize], |
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.
Not all variants are used in enum, so Option here should not add additional byte.
} | ||
|
||
#[inline] | ||
fn get_num_signatures_in_instruction(instruction: &SVMInstruction) -> u8 { |
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.
nit: might as well return u64
here
dd87307
to
f834940
Compare
@@ -433,6 +433,18 @@ pub struct TransactionSignatureDetails { | |||
} | |||
|
|||
impl TransactionSignatureDetails { | |||
pub fn new( |
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.
this doesn't strictly need to be part of this PR any more.
but it is necessary if we want to take the precompile details and turn it into the full details
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.
lgtm
Problem
Summary of Changes
get_signature_details
toRuntimeTransaction
(eventually this will be stashed)RuntimeTransaction
Fixes #