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

add max_total_htlc_out to listpeerchannels #7193

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Lagrang3
Copy link
Collaborator

@Lagrang3 Lagrang3 commented Apr 2, 2024

Add to listpeerchannels a field max_total_htlc_out_msat to represent the maximum value we can send on a payment considering the max_htlc_value_in_flight set by our peer. That is, the sum of all HTLCs in this channel cannot exceed max_total_htlc_out_msat.

This field is relevant to renepay as discussed in #7159 (comment), since the payment plugin needs to know how much can be sent through each local channel, besides spendable_msat and maximum_htlc_out_msat.

Changelog-Added: JSON-RPC: `listpeerchannels` new output field `max_total_htlc_out_msat` to indicate the maximum value we can send on a payment considering the `max_htlc_value_in_flight` set by our peer.
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

1 participant