Skip to content

Include htlc_maximum/minimum in ChannelDetails #1287

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

Closed
TheBlueMatt opened this issue Jan 27, 2022 · 6 comments · Fixed by #1378
Closed

Include htlc_maximum/minimum in ChannelDetails #1287

TheBlueMatt opened this issue Jan 27, 2022 · 6 comments · Fixed by #1378
Labels
good first issue Good for newcomers

Comments

@TheBlueMatt
Copy link
Collaborator

This is useful in the router and we should also pass it as described at #1199 (comment)

@bennyhodl
Copy link

Should getting the minimum htlc value be get_holder_htlc_minimum_msat or get_counterparty_htlc_minimum_msat?

For routing it should be the counterparty's minimum htlc value correct?

@TheBlueMatt
Copy link
Collaborator Author

TheBlueMatt commented Feb 3, 2022

Good question, I assume both, though, yes, for invoice hints we specifically care about our counterparty's parameters as that is what the counterparty applies on htlcs towards us. Presumably in the CounteraprtyForwardingInfo struct.

@bennyhodl
Copy link

So in ChannelDetails we would want both holder & counterparty min/max?

API doesn't implement max htlc for counterparty and holder for Channel struct. It just implements the max by taking the minimum of self.channel_value_satoshis * 1000 * 9 / 10 and holder_max_htlc_value_in_flight_msat in get_announced_htlc_max_msat

@TheBlueMatt
Copy link
Collaborator Author

Oops, sorry I took a while to get back to you here, I'll continue discussion on the PR, thanks!

@ViktorTigerstrom
Copy link
Contributor

I could pick this up and continue working on it. Unless you would like to pick it up again @BennyBlockchain?

@TheBlueMatt
Copy link
Collaborator Author

Sounds great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants