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

added fn_add_htlc #2042

Merged
merged 1 commit into from
Jul 8, 2023
Merged

added fn_add_htlc #2042

merged 1 commit into from
Jul 8, 2023

Conversation

ffaex
Copy link

@ffaex ffaex commented Feb 20, 2023

A possible use case for this function might be if someone would be getting data of htlcs from lightning core via this rpc call: https://lightning.readthedocs.io/lightning-listhtlcs.7.html.

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, thanks! Please reword your commit message to describe what the function does in a short (< 80 chars) title and a (80-char-line-wrapped) description that describes why this is useful. It doesn't need to be super detailed, but more than what you have now would be great.

You don't need to open a new PR to change what you have, just force-push the new commit onto the same branch and the PR will update.

lightning/src/routing/router.rs Outdated Show resolved Hide resolved
@codecov-commenter
Copy link

Codecov Report

Base: 90.77% // Head: 87.20% // Decreases project coverage by -3.58% ⚠️

Coverage data is based on head (945d4c8) compared to base (f6a9382).
Patch coverage: 66.66% of modified lines in pull request are covered.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2042      +/-   ##
==========================================
- Coverage   90.77%   87.20%   -3.58%     
==========================================
  Files          94      101       +7     
  Lines       49603    44178    -5425     
  Branches    49603    44178    -5425     
==========================================
- Hits        45028    38525    -6503     
- Misses       4575     5653    +1078     
Impacted Files Coverage Δ
lightning/src/routing/router.rs 92.66% <66.66%> (+1.75%) ⬆️
lightning/src/chain/chaininterface.rs 41.17% <0.00%> (-54.48%) ⬇️
lightning/src/util/errors.rs 32.14% <0.00%> (-41.94%) ⬇️
lightning-rapid-gossip-sync/src/error.rs 23.07% <0.00%> (-39.43%) ⬇️
lightning/src/util/time.rs 42.85% <0.00%> (-38.69%) ⬇️
lightning/src/util/byte_utils.rs 64.28% <0.00%> (-35.72%) ⬇️
lightning/src/offers/parse.rs 61.36% <0.00%> (-32.64%) ⬇️
lightning/src/util/config.rs 33.33% <0.00%> (-32.58%) ⬇️
lightning/src/lib.rs 71.42% <0.00%> (-28.58%) ⬇️
lightning/src/util/logger.rs 59.64% <0.00%> (-26.49%) ⬇️
... and 96 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Contributor

@dunxen dunxen 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. Just some small nits :)

lightning/src/routing/router.rs Outdated Show resolved Hide resolved
lightning/src/routing/router.rs Outdated Show resolved Hide resolved
@TheBlueMatt
Copy link
Collaborator

Can you squash the commits down into one commit and wrap the lines so that they aren't longer than 70 chars? See https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#rebasing-changes for squashing/rebase instructions.

which is used by router

One would use that function if he would get data from for example
c-lightning lightning.readthedocs.io/lightning-listhtlcs.7.html
and would like to use that with ldk's router
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.

Grrrr, somehow I totally missed that you'd responded by pushing here!

@TheBlueMatt TheBlueMatt merged commit 0d3adb8 into lightningdevkit:main Jul 8, 2023
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.

None yet

4 participants