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

feat(txpool) - add flag for local tx propagation #3977

Merged
merged 2 commits into from
Jul 28, 2023

Conversation

0xprames
Copy link
Contributor

should close #3966

@0xprames 0xprames requested a review from mattsse as a code owner July 28, 2023 04:13
@codecov
Copy link

codecov bot commented Jul 28, 2023

Codecov Report

Merging #3977 (143de80) into main (d8677b4) will decrease coverage by 0.02%.
Report is 1 commits behind head on main.
The diff coverage is 0.00%.

❗ Current head 143de80 differs from pull request most recent head d3f4137. Consider uploading reports for the commit d3f4137 to get more accurate results

Impacted file tree graph

Files Changed Coverage Δ
crates/transaction-pool/src/validate/eth.rs 0.00% <0.00%> (ø)

... and 9 files with indirect coverage changes

Flag Coverage Δ
integration-tests 16.32% <0.00%> (-0.03%) ⬇️
unit-tests 64.22% <0.00%> (-0.02%) ⬇️

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

Components Coverage Δ
reth binary 26.21% <ø> (ø)
blockchain tree 83.04% <ø> (ø)
pipeline 89.82% <ø> (ø)
storage (db) 74.30% <ø> (ø)
trie 94.70% <ø> (ø)
txpool 45.40% <0.00%> (-0.15%) ⬇️
networking 77.62% <ø> (-0.04%) ⬇️
rpc 58.51% <ø> (ø)
consensus 64.46% <ø> (ø)
revm 33.08% <ø> (ø)
payload builder 6.61% <ø> (ø)
primitives 87.81% <ø> (-0.01%) ⬇️

Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

nice

this is functionally complete, only have a few nits

crates/transaction-pool/src/validate/eth.rs Outdated Show resolved Hide resolved
crates/transaction-pool/src/validate/eth.rs Outdated Show resolved Hide resolved
crates/transaction-pool/src/validate/eth.rs Outdated Show resolved Hide resolved
@@ -185,6 +188,11 @@ impl EthTransactionValidatorBuilder {
self.eip1559 = eip1559;
self
}
/// Sets the local transaction propagation toggle
Copy link
Collaborator

Choose a reason for hiding this comment

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

This needs a bit more context:

basically if set to true (default), all locally received transactions (via RPC for example) will be propagated over the network

Copy link
Contributor Author

Choose a reason for hiding this comment

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

makes sense, added a bit more context

crates/transaction-pool/src/validate/eth.rs Outdated Show resolved Hide resolved
@mattsse mattsse added A-rpc Related to the RPC implementation A-tx-pool Related to the transaction mempool A-networking Related to networking in general labels Jul 28, 2023
@0xprames 0xprames requested a review from mattsse July 28, 2023 14:10
Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

nice, tysm

@mattsse mattsse added this pull request to the merge queue Jul 28, 2023
Merged via the queue into paradigmxyz:main with commit 15bb1c9 Jul 28, 2023
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-networking Related to networking in general A-rpc Related to the RPC implementation A-tx-pool Related to the transaction mempool
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adding a config value for passing local transactions or not
2 participants