routing+lnrpc+lncli: allow setting min htlc policy

This commit is contained in:
Joost Jager committed 2019-12-11 00:17:08 +01:00
1 parent 74c2df658e
commit b6eb3a69ba
7 files changed
+633 -567

No files matched your search

+5
View File
@@ -160,6 +160,11 @@ func (r *Manager) updateEdge(chanPoint wire.OutPoint,
edge.MaxHTLC = amtMax
}
// If a new min htlc is specified, update the edge.
if newSchema.MinHTLC != nil {
edge.MinHTLC = *newSchema.MinHTLC
}
// If the MaxHtlc flag wasn't already set, we can set it now.
edge.MessageFlags |= lnwire.ChanUpdateOptionMaxHtlc