mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-10-11 07:03:02 +02:00
rpcserver: startTime defaults to the unix epoch
Fixes https://github.com/lightningnetwork/lnd/issues/3357. When start_time isn't specified, its default value is 0. This meant when users explicitly specified a start_time of 0, we would incorrectly set start_time to 24 hours in the past. Now, n0 means n0.
This commit is contained in:
@@ -3532,7 +3532,7 @@ var forwardingHistoryCommand = cli.Command{
|
||||
payment circuits (HTLCs) over a particular time range (--start_time and
|
||||
--end_time). The start and end times are meant to be expressed in
|
||||
seconds since the Unix epoch. If --start_time isn't provided,
|
||||
then 24 hours ago is used. If --end_time isn't provided,
|
||||
then the Unix epoch (01-01-1970) is used. If --end_time isn't provided,
|
||||
then the current time is used.
|
||||
|
||||
The max number of events returned is 50k. The default number is 100,
|
||||
|
Reference in New Issue
Block a user