multi: distinguish between htlc in and out constraints

This commit is contained in:
Joost Jager committed 2019-12-11 00:16:57 +01:00
1 parent d8fd6fae23
commit ddb98fcc41
11 files changed
+48 -39

No files matched your search

+3 -2
View File
@@ -985,6 +985,7 @@ func newServer(listenAddrs []net.Addr, chanDB *channeldb.DB,
return nil, fmt.Errorf("unable to find channel")
},
DefaultRoutingPolicy: cc.routingPolicy,
DefaultMinHtlcIn: cc.minHtlcIn,
NumRequiredConfs: func(chanAmt btcutil.Amount,
pushAmt lnwire.MilliSatoshi) uint16 {
// For large channels we increase the number
@@ -3084,8 +3085,8 @@ type openChanReq struct {
private bool
// minHtlc is the minimum incoming htlc that we accept.
minHtlc lnwire.MilliSatoshi
// minHtlcIn is the minimum incoming htlc that we accept.
minHtlcIn lnwire.MilliSatoshi
remoteCsvDelay uint16