Skip to content

refactor: extract init from node-core#8373

Merged
mattsse merged 7 commits intoparadigmxyz:mainfrom
wlawt:issue-8171-node-core
May 25, 2024
Merged

refactor: extract init from node-core#8373
mattsse merged 7 commits intoparadigmxyz:mainfrom
wlawt:issue-8171-node-core

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

@wlawt wlawt force-pushed the issue-8171-node-core branch from 8efb414 to 5cf3dd6 Compare May 23, 2024 18:25
@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 clean up/refactor of existing code label May 23, 2024
@wlawt wlawt force-pushed the issue-8171-node-core branch from 42d0916 to ed3ae98 Compare May 23, 2024 20:13
@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 wlawt force-pushed the issue-8171-node-core branch from 42d0916 to 08db132 Compare May 23, 2024 20:19
@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

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-debt A clean up/refactor of existing code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants