From 85d89a5b41d64d7ad3ce0ab50b2a597e21db29d4 Mon Sep 17 00:00:00 2001 From: Slyghtning Date: Fri, 29 Nov 2024 10:20:03 +0100 Subject: [PATCH] cmd: fix default timeout for estimateroutefee --- cmd/commands/cmd_payments.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cmd/commands/cmd_payments.go b/cmd/commands/cmd_payments.go index bac729cd8..2fdf97cba 100644 --- a/cmd/commands/cmd_payments.go +++ b/cmd/commands/cmd_payments.go @@ -1920,9 +1920,7 @@ func estimateRouteFee(ctx *cli.Context) error { case ctx.IsSet("pay_req"): req.PaymentRequest = StripPrefix(ctx.String("pay_req")) - if ctx.IsSet("timeout") { - req.Timeout = uint32(ctx.Duration("timeout").Seconds()) - } + req.Timeout = uint32(ctx.Duration("timeout").Seconds()) default: return fmt.Errorf("fee estimation arguments missing")