mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-10-01 01:12:35 +02:00
chore: allow 0 failure amount on import mission control
This commit is contained in:
@@ -66,8 +66,9 @@ func importMissionControl(ctx *cli.Context) error {
|
||||
return fmt.Errorf("please provide amount in msat: %w", err)
|
||||
}
|
||||
|
||||
if amt <= 0 {
|
||||
return errors.New("amount must be >0")
|
||||
// Allow 0 value as failure amount.
|
||||
if !ctx.IsSet("failure") && amt <= 0 {
|
||||
return errors.New("success amount must be >0")
|
||||
}
|
||||
|
||||
client := routerrpc.NewRouterClient(conn)
|
||||
|
Reference in New Issue
Block a user