Skip to content

Give us a self when reading a custom onion message#1809

Merged
TheBlueMatt merged 1 commit intolightningdevkit:mainfrom
valentinewallace:2022-10-custom-om-self
Oct 27, 2022
Merged

Give us a self when reading a custom onion message#1809
TheBlueMatt merged 1 commit intolightningdevkit:mainfrom
valentinewallace:2022-10-custom-om-self

Conversation

@valentinewallace
Copy link
Copy Markdown
Contributor

Needed for the bindings and gives a bit more flexibility for users as well

@valentinewallace valentinewallace force-pushed the 2022-10-custom-om-self branch 2 times, most recently from 518dcc0 to 70566de Compare October 27, 2022 16:43
Comment thread lightning/src/onion_message/messenger.rs Outdated
Comment thread lightning/src/onion_message/messenger.rs Outdated
@valentinewallace valentinewallace force-pushed the 2022-10-custom-om-self branch 2 times, most recently from af59fc9 to 224a987 Compare October 27, 2022 18:37
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Oct 27, 2022

Codecov Report

❌ Patch coverage is 93.75000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 90.67%. Comparing base (2e343e7) to head (150c87a).
⚠️ Report is 7089 commits behind head on main.

Files with missing lines Patch % Lines
lightning/src/ln/peer_handler.rs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1809      +/-   ##
==========================================
- Coverage   90.72%   90.67%   -0.06%     
==========================================
  Files          87       87              
  Lines       47364    47910     +546     
  Branches    47364    47910     +546     
==========================================
+ Hits        42970    43441     +471     
- Misses       4394     4469      +75     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@TheBlueMatt
Copy link
Copy Markdown
Collaborator

Can you drop the second commit? It actually needs cfg(anchors) and @tnull is gonna do it in #1790

Copy link
Copy Markdown
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.

LGTM. Just a couple of nits.

Comment thread lightning/src/onion_message/messenger.rs Outdated
Comment thread lightning/src/onion_message/functional_tests.rs Outdated
+ remove MaybeReadableArgs trait as it is now unused
+ remove onion_utils::DecodeInput as it would've now needed to be parameterized
by the CustomOnionMessageHandler trait, and we'd like to avoid either
implementing DecodeInput in messenger or having onion_utils depend on
onion_message::*

Co-authored-by: Matt Corallo <git@bluematt.me>
Co-authored-by: Valentine Wallace <vwallace@protonmail.com>
@TheBlueMatt TheBlueMatt merged commit 6957fb6 into lightningdevkit:main Oct 27, 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.

4 participants