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

chore(sdk): Add NodePrimitives::Transaction and NodePrimitives::SignedTx #12330

Merged
merged 6 commits into from
Nov 9, 2024

Conversation

emhane
Copy link
Member

@emhane emhane commented Nov 5, 2024

Ref #11253, #11240

@emhane emhane added C-debt Refactor of code section that is hard to understand or maintain A-sdk Related to reth's use as a library labels Nov 5, 2024
Comment on lines 27 to 30
/// Signed version of the transaction type.
type SignedTx;
/// Transaction type.
type Transaction;
Copy link
Collaborator

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?

Copy link
Member Author

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.

@emhane emhane requested a review from mattsse November 6, 2024 13:46
@klkvr
Copy link
Collaborator

klkvr commented Nov 6, 2024

in which cases would we deal with an unsigned transaction? I believe only signed transactions are sent over p2p and stored in database

@emhane
Copy link
Member Author

emhane commented Nov 8, 2024

re-request review @mattsse @klkvr

@mattsse mattsse enabled auto-merge November 9, 2024 08:10
@mattsse mattsse requested a review from gakonst as a code owner November 9, 2024 09:04
@mattsse mattsse added this pull request to the merge queue Nov 9, 2024
Merged via the queue into main with commit 430fe0d Nov 9, 2024
41 checks passed
@mattsse mattsse deleted the emhane/node-primitives branch November 9, 2024 09:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-sdk Related to reth's use as a library C-debt Refactor of code section that is hard to understand or maintain
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants