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: integrate blobstore in pool #4266

Merged
merged 2 commits into from
Aug 18, 2023
Merged

feat: integrate blobstore in pool #4266

merged 2 commits into from
Aug 18, 2023

Conversation

mattsse
Copy link
Collaborator

@mattsse mattsse commented Aug 18, 2023

another incremental change that adds the blobstore to the Pool type

needs a few followups, but best to keep these small

@mattsse mattsse requested a review from Rjected August 18, 2023 12:30
@mattsse mattsse added M-changelog This change should be included in the changelog A-tx-pool Related to the transaction mempool labels Aug 18, 2023
@codecov
Copy link

codecov bot commented Aug 18, 2023

Codecov Report

Merging #4266 (400d7b4) into main (efab153) will increase coverage by 0.08%.
Report is 5 commits behind head on main.
The diff coverage is 56.41%.

Impacted file tree graph

Files Changed Coverage Δ
bin/reth/src/node/mod.rs 11.85% <0.00%> (-0.02%) ⬇️
crates/transaction-pool/src/pool/mod.rs 46.24% <53.33%> (+0.25%) ⬆️
crates/transaction-pool/src/lib.rs 41.31% <60.00%> (-0.25%) ⬇️
crates/transaction-pool/src/metrics.rs 33.33% <100.00%> (+13.33%) ⬆️
crates/transaction-pool/src/test_utils/mod.rs 100.00% <100.00%> (ø)

... and 29 files with indirect coverage changes

Flag Coverage Δ
integration-tests 16.85% <56.41%> (-0.06%) ⬇️
unit-tests 63.86% <56.41%> (+0.09%) ⬆️

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

Components Coverage Δ
reth binary 26.13% <0.00%> (-0.01%) ⬇️
blockchain tree 82.56% <ø> (ø)
pipeline 90.07% <ø> (ø)
storage (db) 74.77% <ø> (+0.05%) ⬆️
trie 94.85% <ø> (+0.13%) ⬆️
txpool 49.65% <57.89%> (+0.59%) ⬆️
networking 77.62% <ø> (+0.10%) ⬆️
rpc 58.65% <ø> (+0.01%) ⬆️
consensus 63.53% <ø> (ø)
revm 32.03% <ø> (-0.12%) ⬇️
payload builder 6.82% <ø> (ø)
primitives 86.26% <ø> (-0.06%) ⬇️

#[derive(Metrics)]
#[metrics(scope = "transaction_pool")]
pub struct BlobStoreMetrics {
/// Number of failed inserts into the blobstore
Copy link
Member

Choose a reason for hiding this comment

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

Should we also have other metrics? Blob size, inserts, removes etc. (not only failures)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

will definitely add

but would like to include these prs asap

Copy link
Member

@Rjected Rjected left a comment

Choose a reason for hiding this comment

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

LGTM

//!
//! Blob transaction can be quite large hence they are stored in a separate blobstore. The pool is
//! responsible for inserting blob data for new transactions into the blobstore.
//! See als [ValidTransaction](validate::ValidTransaction)
Copy link
Member

Choose a reason for hiding this comment

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

typo nit: see also

@mattsse mattsse enabled auto-merge August 18, 2023 17:35
@mattsse mattsse added this pull request to the merge queue Aug 18, 2023
Merged via the queue into main with commit 8516fef Aug 18, 2023
24 checks passed
@mattsse mattsse deleted the matt/integrate-blob-store branch August 18, 2023 17:53
PlamenHristov pushed a commit to PlamenHristov/reth that referenced this pull request Aug 19, 2023
alessandromazza98 pushed a commit to alessandromazza98/reth that referenced this pull request Aug 19, 2023
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 M-changelog This change should be included in the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants