mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-07-12 22:22:36 +02:00
routing+lnrpc+lncli: allow setting min htlc policy
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user