channeldb: inject clock into database

Use our standard clock mock for database time queries.
This commit is contained in:
Joost Jager
2020-01-20 10:57:34 +01:00
parent ad0a89b844
commit b600ecda86
7 changed files with 29 additions and 15 deletions

View File

@@ -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.