channeldb: export now function

To allow mocking when testing other packages.
This commit is contained in:
Joost Jager
2019-11-15 12:18:06 +01:00
parent 1371e5affc
commit e234f88b82
3 changed files with 5 additions and 4 deletions

View File

@@ -1244,7 +1244,7 @@ func (d *DB) updateInvoice(hash lntypes.Hash, invoices, settleIndex *bbolt.Bucke
// Update invoice state.
invoice.State = update.State
now := d.now()
now := d.Now()
// Update htlc set.
for key, htlcUpdate := range update.Htlcs {