Skip to content

Refactor dependencies #609

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

Merged
merged 4 commits into from
Apr 29, 2020
Merged

Conversation

dr-orlovsky
Copy link
Contributor

@dr-orlovsky dr-orlovsky commented Apr 27, 2020

This code adopts new bitcoin hash types and migrates on the latest crate version, i.e. closes #578

Since bitcoin crate includes both bitcoin_hashes and secp256k1, this creates dependency conflicts in projects using rust-lightning. So I have started with removing this additional dependencies in the first two commits before adopting new hash type system

@jkczyz jkczyz self-requested a review April 27, 2020 15:07
@codecov
Copy link

codecov bot commented Apr 27, 2020

Codecov Report

Merging #609 into master will decrease coverage by 0.03%.
The diff coverage is 97.72%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #609      +/-   ##
==========================================
- Coverage   91.10%   91.06%   -0.04%     
==========================================
  Files          34       34              
  Lines       20447    20457      +10     
==========================================
+ Hits        18628    18629       +1     
- Misses       1819     1828       +9     
Impacted Files Coverage Δ
lightning/src/lib.rs 100.00% <ø> (ø)
lightning/src/ln/chanmon_update_fail_tests.rs 97.34% <ø> (ø)
lightning/src/ln/onion_utils.rs 95.02% <ø> (ø)
lightning/src/ln/peer_channel_encryptor.rs 94.40% <ø> (ø)
lightning/src/ln/peer_handler.rs 56.29% <ø> (ø)
lightning/src/util/chacha20poly1305rfc.rs 97.95% <ø> (ø)
lightning/src/util/enforcing_trait_impls.rs 100.00% <ø> (ø)
lightning/src/util/events.rs 20.43% <ø> (ø)
lightning/src/util/macro_logger.rs 89.28% <ø> (ø)
lightning/src/util/ser_macros.rs 96.59% <ø> (ø)
... and 16 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 12e2a81...dde344a. Read the comment docs.

@jkczyz
Copy link
Contributor

jkczyz commented Apr 27, 2020

This is first part of my work on migration to the new bitcoin crate version.

Thanks for going about this refactoring! Any chance you could open an issue for the migration if it doesn't exist yet?

@dr-orlovsky
Copy link
Contributor Author

@jkczyz sorry, not entirely get what do you mean by the issue. This one? #578

@jkczyz
Copy link
Contributor

jkczyz commented Apr 27, 2020

Yes, thank you. Referencing the existing issue in the PR description is sufficient. Let me know when the PR is ready for review.

@dr-orlovsky
Copy link
Contributor Author

It is ready!

@jb55
Copy link

jb55 commented Apr 27, 2020

as someone who has done this refactor in a few of my own projects and looking over this... very nice! utACK c04a038

Copy link
Collaborator

@TheBlueMatt TheBlueMatt 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, two minor comments and please squash the fixup commit into the relevant commits so that each commit individually builds/passes tests.

Copy link
Contributor

@jkczyz jkczyz left a comment

Choose a reason for hiding this comment

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

Concur with @TheBlueMatt regarding the fixup commits. Otherwise, looks good!

@TheBlueMatt TheBlueMatt merged commit ea4ccf6 into lightningdevkit:master Apr 29, 2020
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.

Update to new rust-bitcoin version & type system
4 participants