mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-12-08 20:03:10 +01:00
cmd: fix default timeout for estimateroutefee
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user