From 85d89a5b41d64d7ad3ce0ab50b2a597e21db29d4 Mon Sep 17 00:00:00 2001 From: Slyghtning Date: Fri, 29 Nov 2024 10:20:03 +0100 Subject: [PATCH 1/2] 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 bac729cd8a..2fdf97cba0 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") From 440cdb3172dbfffa97c78e38252d6268a73a2c02 Mon Sep 17 00:00:00 2001 From: Slyghtning Date: Fri, 29 Nov 2024 10:23:10 +0100 Subject: [PATCH 2/2] docs: update release notes --- docs/release-notes/release-notes-0.19.0.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/release-notes/release-notes-0.19.0.md b/docs/release-notes/release-notes-0.19.0.md index 377255bbf9..a46832afe6 100644 --- a/docs/release-notes/release-notes-0.19.0.md +++ b/docs/release-notes/release-notes-0.19.0.md @@ -60,6 +60,9 @@ * [Make the contract resolutions for the channel arbitrator optional]( https://github.com/lightningnetwork/lnd/pull/9253) + * [Fixed a bug](https://github.com/lightningnetwork/lnd/pull/9322) that caused + estimateroutefee to ignore the default payment timeout. + # New Features * [Support](https://github.com/lightningnetwork/lnd/pull/8390) for