Skip to content

Bump internet2 and microservices to v0.8#589

Merged
h4sh3d merged 5 commits intofarcaster-project:mainfrom
sedited:depsInet0.8
Jul 26, 2022
Merged

Bump internet2 and microservices to v0.8#589
h4sh3d merged 5 commits intofarcaster-project:mainfrom
sedited:depsInet0.8

Conversation

@sedited
Copy link
Copy Markdown
Contributor

@sedited sedited commented Jul 25, 2022

This PR does extensive changes to the node by removing the lightning dependencies (which became annoying to keep with the new microservices api definitons) and switching to the new internet2 address format.

internet2-address-types

With internet2 dropping most of the lightning-specific behavior, we could get rid of things like the default lightning port and lightning compatibility messages like Ping and Pong. This allowed me to remove the lightning dependencies entirely.

The minimum supported rust version had to be bumped because internet2 0.8 requires it.

I also got rid of the reply and message file that we practically did not use. This mandated however that we define our own Failure type, which was another bi-product of navigating around an otherwise complicated change introduced by microservices 0.8. I added a TODO to add further failure codes eventually.

@sedited sedited linked an issue Jul 25, 2022 that may be closed by this pull request
@sedited sedited force-pushed the depsInet0.8 branch 3 times, most recently from 4f971bb to 0c9d2d2 Compare July 25, 2022 15:20
@sedited sedited force-pushed the depsInet0.8 branch 4 times, most recently from 770c253 to ef7b455 Compare July 26, 2022 09:56
@sedited sedited marked this pull request as ready for review July 26, 2022 12:53
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

Merging #589 (11822db) into main (8b1e391) will increase coverage by 0.0%.
The diff coverage is 0.0%.

@@          Coverage Diff          @@
##            main    #589   +/-   ##
=====================================
  Coverage    9.2%    9.2%           
=====================================
  Files         34      32    -2     
  Lines      10744   10690   -54     
=====================================
- Hits         990     988    -2     
+ Misses      9754    9702   -52     
Impacted Files Coverage Δ
src/cli/command.rs 0.0% <0.0%> (ø)
src/cli/opts.rs 0.0% <ø> (ø)
src/config.rs 0.0% <ø> (ø)
src/databased/runtime.rs 41.8% <ø> (ø)
src/error.rs 0.0% <ø> (ø)
src/farcasterd/runtime.rs 0.0% <0.0%> (ø)
src/grpcd/runtime.rs 0.0% <0.0%> (ø)
src/lib.rs 5.1% <ø> (-0.3%) ⬇️
src/opts.rs 0.0% <0.0%> (ø)
src/peerd/opts.rs 0.0% <0.0%> (ø)
... and 24 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 8b1e391...11822db. Read the comment docs.

Comment thread src/farcasterd/runtime.rs Outdated
Comment thread src/lib.rs
#[macro_use]
extern crate amplify_derive;
#[macro_use]
extern crate lnpbp;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

NICE ! 🎉

@h4sh3d h4sh3d merged commit c062a61 into farcaster-project:main Jul 26, 2022
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.

remove lightning encoding completely Update internet2 Attempt removal of lnp_core dependency

3 participants