-
Notifications
You must be signed in to change notification settings - Fork 300
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
Generic processing pipeline #3467
Generic processing pipeline #3467
Conversation
9f6ae8e
to
6df881d
Compare
From here, block-verification (replay) and block-production (banking) can be made generic independently. |
Is it necessary to have |
The goal is for |
What will the interfaces taks |
Yeah they will take |
Yeah it gets a little hairy when you have methods on |
Yeah not opposed to an approach like this; think naming can't be Something like pub trait RuntimeTransactionTrait: StaticMeta + SVMTransaction {
// temporary conversion fns we need
} Then for many of our processing functions we don't even need @tao-stones / @jstarry any thoughts on a name here, do you like this approach more? |
I like this approach - taking trait instead of concrete As for naming, I feel |
How about I just completely made up the executable bit. |
6ae908b
to
29653f8
Compare
29653f8
to
cd3ae51
Compare
solana_svm_transaction::svm_transaction::SVMTransaction, | ||
}; | ||
|
||
pub trait TransactionWithMeta: StaticMeta + SVMTransaction { |
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.
CI still running, but I'll check w/ you now. @tao-stones @buffalojoec is this kind of what you had in mind?
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.
Eventually these trait fns go away and TransactionWithMeta
will be a glorified alias
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.
Yessir, that's basically what I was thinking. Looks good to me, and keeps things clean at the SVM level. As long as you don't mind carrying this alias around for a bit :)
Sorry I still don't really understand why we need |
Chatted with @apfitzge and I think I'm understanding things better now. Kinda spaced on the goal of being able to pass the upcoming |
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 approach looks good to me
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
Fixes #