routing+lnrpc+lncli: allow setting min htlc policy

This commit is contained in:
Joost Jager
2019-11-15 11:24:58 +01:00
parent 74c2df658e
commit b6eb3a69ba
7 changed files with 633 additions and 567 deletions

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