Skip to content

Commit

Permalink
lnd forward starttime filter is in seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
JssDWt committed Mar 28, 2024
1 parent bd796ab commit e7a097a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lnd/forwards_sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func (s *ForwardSync) forwardsSynchronizeOnce(ctx context.Context) {

for {
forwardHistory, err := s.client.client.ForwardingHistory(context.Background(), &lnrpc.ForwardingHistoryRequest{
StartTime: startTime,
StartTime: startTime / 1_000_000_000,
NumMaxEvents: 10000,
})
if err != nil {
Expand All @@ -84,7 +84,7 @@ func (s *ForwardSync) forwardsSynchronizeOnce(ctx context.Context) {
}
startTime = f.TimestampNs
}
s.store.InsertForwards(ctx, forwards, s.nodeid)
err = s.store.InsertForwards(ctx, forwards, s.nodeid)
if err != nil {
log.Printf("forwardsSynchronizeOnce(%x) - store.InsertForwards() error: %v", s.nodeid, err)
return
Expand Down

0 comments on commit e7a097a

Please sign in to comment.