Skip to content

Commit

Permalink
wdb: rename timeFn to nowFn.
Browse files Browse the repository at this point in the history
  • Loading branch information
nodech committed Jun 26, 2024
1 parent e93bd53 commit 106fbfa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/wallet/walletdb.js
Original file line number Diff line number Diff line change
Expand Up @@ -2681,9 +2681,9 @@ class WalletOptions {
this.preloadAll = options.preloadAll;
}

if (options.timeFn != null) {
assert(typeof options.timeFn === 'function');
this.nowFn = options.timeFn;
if (options.nowFn != null) {
assert(typeof options.nowFn === 'function');
this.nowFn = options.nowFn;
}

return this;
Expand Down

0 comments on commit 106fbfa

Please sign in to comment.