Skip to content

Conversation

@tnull
Copy link
Contributor

@tnull tnull commented Feb 13, 2025

Previously, we would only track the fees paid, but not the actual amount that was sent.

This seems like an obvious omission and has us issuing unnecessary store lookups just to be able to log the amount in LDK Node.

///
/// [`ChannelManager::send_payment`]: crate::ln::channelmanager::ChannelManager::send_payment
payment_hash: PaymentHash,
/// The total amount that was paid, across all paths.
Copy link
Contributor

Choose a reason for hiding this comment

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

LGTM. Might be worth noting that fees are excluded from this number? We do that on the equivalent Route method.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added a note in a fixup commit.

@valentinewallace
Copy link
Contributor

Feel free to squash!

Previously, we would only track the fees paid, but not the actual amount
that was sent.
@tnull tnull force-pushed the 2025-02-track-amount-in-payment-sent branch from ecc1f22 to e5d46c5 Compare February 14, 2025 15:05
@tnull
Copy link
Contributor Author

tnull commented Feb 14, 2025

Feel free to squash!

Squashed without further changes.

@TheBlueMatt TheBlueMatt merged commit a6b8a22 into lightningdevkit:main Feb 14, 2025
24 of 26 checks passed
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.

3 participants