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

Split libsilkworm into silkworm_core & silkworm_db #110

Merged
merged 13 commits into from
Dec 9, 2020
Merged

Split libsilkworm into silkworm_core & silkworm_db #110

merged 13 commits into from
Dec 9, 2020

Conversation

yperbasis
Copy link
Member

Essential Ethereum protocol logic will live in core (block execution, RLP, root hash algorithms, etc), while silkworm_db will contain LMDB access logic and TG-specific things. The reason is two-fold. First, a smaller core library will make Silkworm easier to use for things like eth_call, where TG & LMDB paraphernalia is not required. Second, the smaller core can potentially be compiled into WebAssembly, which is a strategic goal for us (in particular for the Internet Computer project by Dfinity).

Copy link
Member

@canepat canepat left a comment

Choose a reason for hiding this comment

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

Looks good to me

Copy link
Contributor

@AndreaLanfranchi AndreaLanfranchi left a comment

Choose a reason for hiding this comment

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

Is a large change.
OOF now ...please let me check a full compile on Windows tomorrow morning

@yperbasis
Copy link
Member Author

Is a large change.
OOF now ...please let me check a full compile on Windows tomorrow morning

@AndreaLanfranchi Sure, thank you!

@AndreaLanfranchi
Copy link
Contributor

@yperbasis looks good to me too.
I took the liberty to amend a couple of narrow casting warnings.

I still get a lot of warnings though mainly due to CXX17 deprecations on subprojects: abseil cbor and mdb.c mainly

@codecov-io
Copy link

Codecov Report

Merging #110 (e176b41) into master (0fd4aac) will decrease coverage by 0.83%.
The diff coverage is 62.01%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #110      +/-   ##
==========================================
- Coverage   84.09%   83.26%   -0.84%     
==========================================
  Files          51       54       +3     
  Lines        3848     3920      +72     
==========================================
+ Hits         3236     3264      +28     
- Misses        612      656      +44     
Impacted Files Coverage Δ
core/silkworm/chain/config.hpp 64.10% <ø> (ø)
core/silkworm/chain/dao.cpp 0.00% <ø> (ø)
core/silkworm/chain/difficulty.cpp 100.00% <ø> (ø)
core/silkworm/common/log.hpp 88.88% <ø> (ø)
core/silkworm/common/tee.hpp 93.75% <ø> (ø)
core/silkworm/common/util.cpp 98.27% <ø> (ø)
core/silkworm/common/util.hpp 76.92% <ø> (ø)
core/silkworm/crypto/blake2b-ref.c 100.00% <ø> (ø)
core/silkworm/crypto/ecdsa.cpp 96.00% <ø> (ø)
core/silkworm/crypto/snark.cpp 95.28% <ø> (ø)
... and 48 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0fd4aac...e176b41. Read the comment docs.

@yperbasis yperbasis merged commit 9dea447 into master Dec 9, 2020
@yperbasis yperbasis deleted the core branch December 13, 2020 12:14
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.

4 participants