Merge pull request #9322 from hieblmi/fix-estimate-route-fee

cmd: fix default timeout for estimateroutefee
This commit is contained in:
Oliver Gugger
2024-11-29 11:21:25 +01:00
committed by GitHub
2 changed files with 4 additions and 3 deletions

View File

@@ -1920,9 +1920,7 @@ func estimateRouteFee(ctx *cli.Context) error {
case ctx.IsSet("pay_req"): case ctx.IsSet("pay_req"):
req.PaymentRequest = StripPrefix(ctx.String("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: default:
return fmt.Errorf("fee estimation arguments missing") return fmt.Errorf("fee estimation arguments missing")

View File

@@ -60,6 +60,9 @@
* [Make the contract resolutions for the channel arbitrator optional]( * [Make the contract resolutions for the channel arbitrator optional](
https://github.com/lightningnetwork/lnd/pull/9253) 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 # New Features
* [Support](https://github.com/lightningnetwork/lnd/pull/8390) for * [Support](https://github.com/lightningnetwork/lnd/pull/8390) for