mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-30 07:35:07 +02:00
channeldb: inject clock into database
Use our standard clock mock for database time queries.
This commit is contained in:
@@ -1348,7 +1348,7 @@ func (d *DB) updateInvoice(hash lntypes.Hash, invoices, settleIndex *bbolt.Bucke
|
||||
return &invoice, nil
|
||||
}
|
||||
|
||||
now := d.Now()
|
||||
now := d.clock.Now()
|
||||
|
||||
// Update invoice state if the update descriptor indicates an invoice
|
||||
// state change.
|
||||
|
Reference in New Issue
Block a user