mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-05-31 02:01:46 +02:00
cmd: fix default timeout for estimateroutefee
This commit is contained in:
parent
f2d9868906
commit
85d89a5b41
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user