-
Notifications
You must be signed in to change notification settings - Fork 113
Allow pushing some msats on channel open #63
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
Conversation
f489ed8 to
5022c26
Compare
|
Rebased on main after #13 has been merged. |
src/test/functional_tests.rs
Outdated
| if details.is_empty() || details[0].funding_txo.is_none() { | ||
| std::thread::sleep(Duration::from_secs(1)); | ||
| } else { | ||
| assert_eq!(details[0].inbound_capacity_msat, 39000000); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to refresh my own understanding, why is this not 40000000? A reserve?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, our current default for the channel reserve is max(1%, 1000sats), which is why we have 1000sats less inbound liquidity here (cf. https://docs.rs/lightning/latest/lightning/util/config/struct.ChannelHandshakeConfig.html#structfield.their_channel_reserve_proportional_millionths).
e678b1f to
03bb853
Compare
|
Rebased on main and addressed feedback. |
jkczyz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Please squash.
03bb853 to
98474f3
Compare
|
Squashed without further changes. |
We had so far omitted the
push_msatfield, but it's likely useful, so we add it here.