Skip to content

feat: add crate template#2

Merged
gakonst merged 1 commit intomasterfrom
matt/add-crate-template
Sep 26, 2022
Merged

feat: add crate template#2
gakonst merged 1 commit intomasterfrom
matt/add-crate-template

Conversation

@mattsse
Copy link
Collaborator

@mattsse mattsse commented Sep 21, 2022

add reth template with some sensible default clippy configs

see also https://github.com/rust-lang/rust-clippy

https://doc.rust-lang.org/rustdoc/write-documentation/the-doc-attribute.html

This is intended to be temporarily included in this monorepo so all new crates will use same default clippy config etc...

alternatively, there's clippy.toml but this is unstable and not everything is supported

@mattsse mattsse force-pushed the matt/add-crate-template branch from cdd47b4 to 57a2b2d Compare September 22, 2022 18:16
Copy link
Collaborator

@rakita rakita left a comment

Choose a reason for hiding this comment

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

This seems nice :)

@gakonst gakonst merged commit 6f973a6 into master Sep 26, 2022
@gakonst gakonst deleted the matt/add-crate-template branch September 27, 2022 17:56
joshieDo added a commit that referenced this pull request Jan 26, 2023
clabby pushed a commit to clabby/reth that referenced this pull request Mar 5, 2023
rkrasiuk added a commit that referenced this pull request May 9, 2023
clabby added a commit to clabby/reth that referenced this pull request Aug 13, 2023
Resolution checkpoint

Resolution checkpoint paradigmxyz#2

Resolution checkpoint paradigmxyz#3

x

Resolution checkpoint paradigmxyz#4

Resolution checkpoint paradigmxyz#5

Resolution checkpoint paradigmxyz#6

Resolution checkpoint paradigmxyz#7

Resolution checkpoint paradigmxyz#8

Resolve checkpoint paradigmxyz#9 (transaction primitive)

Resolve checkpoint paradigmxyz#10 (rpc api transactions)

Resolve checkpoint paradigmxyz#11 (building w/o feature flag)

Start review

Compiling with and without `optimism` feature flag

Remove `DepositTx` from txpool mock tests, they never go into the txpool

fmt

code lint

fix signature tests

Co-authored-by: nicolas <48695862+merklefruit@users.noreply.github.com>

Use free CI runners (revert before upstream)

Co-authored-by: refcell <abigger87@gmail.com>

Signature test fixes

Co-authored-by refcell <abigger87@gmail.com>

Fix Receipt proptest

Co-authored-by BB <brian.t.bland@gmail.com>

lint

Fix variable-length compact for txtype/transaction

Co-authored-by: Brian Bland <brian.t.bland@gmail.com>

Fix basefee tests

Remove unnecessary rpc deps

Co-authored-by: Brian Bland <brian.t.bland@gmail.com>
Co-authored-by: refcell <abigger87@gmail.com>
Co-authored-by: nicolas <48695862+merklefruit@users.noreply.github.com>
Co-authored-by: Roberto <bayardo@alum.mit.edu>
clabby added a commit to clabby/reth that referenced this pull request Aug 13, 2023
Resolution checkpoint

Resolution checkpoint paradigmxyz#2

Resolution checkpoint paradigmxyz#3

x

Resolution checkpoint paradigmxyz#4

Resolution checkpoint paradigmxyz#5

Resolution checkpoint paradigmxyz#6

Resolution checkpoint paradigmxyz#7

Resolution checkpoint paradigmxyz#8

Resolve checkpoint paradigmxyz#9 (transaction primitive)

Resolve checkpoint paradigmxyz#10 (rpc api transactions)

Resolve checkpoint paradigmxyz#11 (building w/o feature flag)

Start review

Compiling with and without `optimism` feature flag

Remove `DepositTx` from txpool mock tests, they never go into the txpool

fmt

code lint

fix signature tests

Co-authored-by: nicolas <48695862+merklefruit@users.noreply.github.com>

Use free CI runners (revert before upstream)

Co-authored-by: refcell <abigger87@gmail.com>

Signature test fixes

Co-authored-by refcell <abigger87@gmail.com>

Fix Receipt proptest

Co-authored-by BB <brian.t.bland@gmail.com>

lint

Fix variable-length compact for txtype/transaction

Co-authored-by: Brian Bland <brian.t.bland@gmail.com>

Fix basefee tests

Remove unnecessary rpc deps

Co-authored-by: Brian Bland <brian.t.bland@gmail.com>
Co-authored-by: refcell <abigger87@gmail.com>
Co-authored-by: nicolas <48695862+merklefruit@users.noreply.github.com>
Co-authored-by: Roberto <bayardo@alum.mit.edu>
tcoratger pushed a commit to tcoratger/reth that referenced this pull request Jul 16, 2024
AshinGau added a commit to AshinGau/reth that referenced this pull request Sep 11, 2024
…gmxyz#2)

Improve asynchronous framework and yield IO operations.

Add test in `grevm_test.rs`. This may not be standardized, but the
entire framework is not yet perfect and the mock difficulty is
relatively high, so the main process was written separately for testing.
The file will be deleted later.

Comparison of two tests:
1. `test_parallel_without_yield`: not yield IO operations, and are
running with CPU operations. Total time of 12s.
2. `test_parallel_with_yield`: yield IO operations, and are running in
separate thread pool. Total time of 5s.
AshinGau added a commit to AshinGau/reth that referenced this pull request Oct 13, 2024
…gmxyz#2)

Improve asynchronous framework and yield IO operations.

Add test in `grevm_test.rs`. This may not be standardized, but the
entire framework is not yet perfect and the mock difficulty is
relatively high, so the main process was written separately for testing.
The file will be deleted later.

Comparison of two tests:
1. `test_parallel_without_yield`: not yield IO operations, and are
running with CPU operations. Total time of 12s.
2. `test_parallel_with_yield`: yield IO operations, and are running in
separate thread pool. Total time of 5s.
liamaharon added a commit to liamaharon/reth that referenced this pull request Oct 19, 2024
zilayo referenced this pull request in zilayo/reth May 29, 2025
fix: hardcode tx gas used to avoid invalid block payload
jenpaff pushed a commit that referenced this pull request Oct 6, 2025
yongkangc added a commit that referenced this pull request Feb 6, 2026
Previously, after on_save_blocks committed blocks (fsync #1), the
persistence thread ran pruning in a separate MDBX write transaction
with its own commit (fsync #2). During this entire pruning pass, the
persistence thread could not process new requests.

Merge pruning into the same write transaction as save_blocks by calling
Pruner::run_with_provider() with the existing provider_rw before commit.
This eliminates the second fsync entirely — one write transaction, one
commit, one fsync per cycle.

Prune errors are caught and logged but do not prevent block persistence.
This preserves the existing guarantee that blocks are always committed
regardless of prune outcome.

Based on bench metrics (rf7d8): save p50=305ms, prune p50=128ms firing
every other save. Prune accounts for 14.9% of total persistence wall
time (53s / 356s). This change eliminates ~128ms of redundant fsync
latency on every prune cycle.

Amp-Thread-ID: https://ampcode.com/threads/T-019c3183-3b50-7379-8a4b-42f7a68aac22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants