-
Notifications
You must be signed in to change notification settings - Fork 116
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 custom channels min remote reserve #934
Add custom channels min remote reserve #934
Conversation
github.com/jackc/pgconn v1.14.3 | ||
github.com/jackc/pgerrcode v0.0.0-20240316143900-6e2875d9b438 | ||
github.com/jessevdk/go-flags v1.4.0 | ||
github.com/jessevdk/go-flags v1.5.0 |
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.
Looks like you updated all available dependencies with go mod update
. Please only update what's really required (lndclient
) to avoid side effects.
@@ -92,7 +98,8 @@ func (l *LndPbstChannelFunder) OpenChannel(ctx context.Context, | |||
// taproot channel, that uses the PSBT funding flow. | |||
taprootCommitType := lnrpc.CommitmentType_SIMPLE_TAPROOT | |||
openChanStream, errChan, err := l.lnd.Client.OpenChannelStream( | |||
ctx, route.NewVertex(&req.PeerPub), req.ChanAmt, 0, true, | |||
ctx, route.NewVertex(&req.PeerPub), req.ChanAmt, | |||
CustomChannelRemoteReserve, true, |
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.
The field you're setting here is the push amount. Are you sure we want to donate those 1k sats to the remote party?
@@ -103,6 +110,7 @@ func (l *LndPbstChannelFunder) OpenChannel(ctx context.Context, | |||
}, | |||
}, | |||
}), | |||
lndclient.WithRemoteReserve(CustomChannelRemoteReserve), |
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.
👍
Integrated the commits from this PR into #939. |
Description
This PR adds a new const value of
1062
for the remote channel reserve for custom channels. We also use that const value as the push amount when opening the channel.