Skip to content

chore: extract validate tx impl from trait impl#4993

Merged
mattsse merged 1 commit intomainfrom
matt/extract-validate-tx-from-trait-impl
Oct 12, 2023
Merged

chore: extract validate tx impl from trait impl#4993
mattsse merged 1 commit intomainfrom
matt/extract-validate-tx-from-trait-impl

Conversation

@mattsse
Copy link
Collaborator

@mattsse mattsse commented Oct 12, 2023

this moves the impl of validate_transaction to type implementation to make it easier to use.

this is also prep for something like validate_many

@mattsse mattsse requested a review from Rjected October 12, 2023 10:54
@mattsse mattsse added C-debt A clean up/refactor of existing code A-tx-pool Related to the transaction mempool labels Oct 12, 2023
@codecov
Copy link

codecov bot commented Oct 12, 2023

Codecov Report

Merging #4993 (b36e891) into main (d2845af) will decrease coverage by 0.02%.
The diff coverage is 0.00%.

Impacted file tree graph

Files Coverage Δ
crates/transaction-pool/src/validate/mod.rs 71.87% <ø> (+7.98%) ⬆️
crates/transaction-pool/src/validate/eth.rs 7.48% <0.00%> (-0.38%) ⬇️

... and 3 files with indirect coverage changes

Flag Coverage Δ
integration-tests 15.42% <0.00%> (+<0.01%) ⬆️
unit-tests 62.56% <0.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
reth binary 30.62% <ø> (ø)
blockchain tree 80.64% <ø> (ø)
pipeline 88.45% <ø> (ø)
storage (db) 74.40% <ø> (ø)
trie 94.48% <ø> (-0.04%) ⬇️
txpool 48.92% <0.00%> (-0.09%) ⬇️
networking 76.06% <ø> (-0.02%) ⬇️
rpc 57.95% <ø> (ø)
consensus 63.01% <ø> (ø)
revm 27.79% <ø> (ø)
payload builder 7.96% <ø> (ø)
primitives 86.36% <ø> (ø)

Copy link
Contributor

@rkrasiuk rkrasiuk left a comment

Choose a reason for hiding this comment

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

lgtm

@mattsse mattsse added this pull request to the merge queue Oct 12, 2023
Merged via the queue into main with commit f7bffee Oct 12, 2023
@mattsse mattsse deleted the matt/extract-validate-tx-from-trait-impl branch October 12, 2023 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-tx-pool Related to the transaction mempool C-debt A clean up/refactor of existing code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants