multi: distinguish between htlc in and out constraints

This commit is contained in:
Joost Jager
2019-11-15 10:09:27 +01:00
parent d8fd6fae23
commit ddb98fcc41
11 changed files with 48 additions and 39 deletions

View File

@ -92,7 +92,7 @@ func (c *chanController) OpenChannel(target *btcec.PublicKey,
}
// TODO(halseth): make configurable?
minHtlc := lnwire.NewMSatFromSatoshis(1)
minHtlcIn := lnwire.NewMSatFromSatoshis(1)
// Construct the open channel request and send it to the server to begin
// the funding workflow.
@ -102,7 +102,7 @@ func (c *chanController) OpenChannel(target *btcec.PublicKey,
subtractFees: true,
localFundingAmt: amt,
pushAmt: 0,
minHtlc: minHtlc,
minHtlcIn: minHtlcIn,
fundingFeePerKw: feePerKw,
private: c.private,
remoteCsvDelay: 0,