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

refactor: extract init from node-core #8373

Merged
merged 7 commits into from May 25, 2024

Conversation

wlawt
Copy link
Contributor

@wlawt wlawt commented May 23, 2024

Resolves #8171 .

Overview

Introduces the reth-db-common crate and moves node-core/init.rs into this new crate.

Test Plan

  • Ran unit tests

@mattsse
Copy link
Collaborator

mattsse commented May 23, 2024

ah cool, I was looking for this actually.
I vaguely remember that there was a previous attempt, could be wrong

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!

only have a style nit

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 the regular lib.rs header including the cfg for unused crates

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done! also cleaned up the unused dependencies

@mattsse mattsse added the C-debt A section of code is hard to understand or change label May 23, 2024
@wlawt wlawt force-pushed the issue-8171-node-core branch 2 times, most recently from 92bc01a to 42d0916 Compare May 23, 2024 20:17
@wlawt
Copy link
Contributor Author

wlawt commented May 23, 2024

how can i fix the fmt issue? when i run the cargo fmt command used in the CI test, it changes a lot of unrelated files cc @mattsse , thank u!

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.

last pedantic nit

to format please run cargo +nightly fmt --all

Cargo.toml Outdated Show resolved Hide resolved
Cargo.toml Outdated Show resolved Hide resolved
Comment on lines -38 to -42
reth-trie.workspace = true
reth-consensus-common.workspace = true
reth-beacon-consensus.workspace = true
reth-etl.workspace = true
reth-codecs.workspace = true
Copy link
Collaborator

Choose a reason for hiding this comment

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

great!

@wlawt wlawt requested a review from mattsse May 24, 2024 16:18
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

@mattsse mattsse enabled auto-merge May 25, 2024 10:00
@mattsse mattsse added this pull request to the merge queue May 25, 2024
Merged via the queue into paradigmxyz:main with commit 7dd7877 May 25, 2024
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-debt A section of code is hard to understand or change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

extract node-core/init.rs from node-core
2 participants