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 custom channels min remote reserve #934

Closed

Conversation

GeorgeTsagk
Copy link
Member

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.

@GeorgeTsagk GeorgeTsagk self-assigned this Jun 7, 2024
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
Copy link
Member

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,
Copy link
Member

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),
Copy link
Member

Choose a reason for hiding this comment

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

👍

@guggero
Copy link
Member

guggero commented Jun 8, 2024

Integrated the commits from this PR into #939.

@guggero guggero closed this Jun 8, 2024
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.

2 participants