-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
chore(sdk): Add NodePrimitives::Transaction
and NodePrimitives::SignedTx
#12330
Conversation
crates/node/types/src/lib.rs
Outdated
/// Signed version of the transaction type. | ||
type SignedTx; | ||
/// Transaction type. | ||
type Transaction; |
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.
should those be integrated into a Block
trait instead, because for block we also need those, 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.
think it makes sense to have these parallel to block too, so we can ref them without the trait bound Block
on NodePrimitives::Block
.
in which cases would we deal with an unsigned transaction? I believe only signed transactions are sent over p2p and stored in database |
Ref #11253, #11240