mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-06-15 19:31:35 +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"):
|
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")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user