Skip to content

Commit

Permalink
Merge pull request #9322 from hieblmi/fix-estimate-route-fee
Browse files Browse the repository at this point in the history
cmd: fix default timeout for estimateroutefee
  • Loading branch information
guggero authored Nov 29, 2024
2 parents f2d9868 + 440cdb3 commit f6aff58
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 1 addition & 3 deletions cmd/commands/cmd_payments.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
3 changes: 3 additions & 0 deletions docs/release-notes/release-notes-0.19.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f6aff58

Please sign in to comment.