diff --git a/lib/wallet/walletdb.js b/lib/wallet/walletdb.js index 0bafc9db9..1e0568007 100644 --- a/lib/wallet/walletdb.js +++ b/lib/wallet/walletdb.js @@ -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;