mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-28 22:50:58 +02:00
lnd: remove openChanReq, call InitFundingWorkflow with InitFundingMsg
This commit is contained in:
24
pilot.go
24
pilot.go
@@ -97,18 +97,18 @@ func (c *chanController) OpenChannel(target *btcec.PublicKey,
|
||||
|
||||
// Construct the open channel request and send it to the server to begin
|
||||
// the funding workflow.
|
||||
req := &openChanReq{
|
||||
targetPubkey: target,
|
||||
chainHash: *c.netParams.GenesisHash,
|
||||
subtractFees: true,
|
||||
localFundingAmt: amt,
|
||||
pushAmt: 0,
|
||||
minHtlcIn: c.chanMinHtlcIn,
|
||||
fundingFeePerKw: feePerKw,
|
||||
private: c.private,
|
||||
remoteCsvDelay: 0,
|
||||
minConfs: c.minConfs,
|
||||
maxValueInFlight: 0,
|
||||
req := &InitFundingMsg{
|
||||
TargetPubkey: target,
|
||||
ChainHash: *c.netParams.GenesisHash,
|
||||
SubtractFees: true,
|
||||
LocalFundingAmt: amt,
|
||||
PushAmt: 0,
|
||||
MinHtlcIn: c.chanMinHtlcIn,
|
||||
FundingFeePerKw: feePerKw,
|
||||
Private: c.private,
|
||||
RemoteCsvDelay: 0,
|
||||
MinConfs: c.minConfs,
|
||||
MaxValueInFlight: 0,
|
||||
}
|
||||
|
||||
updateStream, errChan := c.server.OpenChannel(req)
|
||||
|
Reference in New Issue
Block a user