From 319ec82997ff991165b6f2ccd528d659389353bc Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Thu, 4 Jan 2018 15:07:48 -0800 Subject: [PATCH] wallet: fix depth incrementation. --- lib/wallet/wallet.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/wallet/wallet.js b/lib/wallet/wallet.js index dc1fc7fd..aa2ef288 100644 --- a/lib/wallet/wallet.js +++ b/lib/wallet/wallet.js @@ -618,7 +618,7 @@ class Wallet extends EventEmitter { this.accountDepth += 1; this.save(b); - if (this.accountDepth === 0) + if (this.accountDepth === 1) this.increment(b); await b.write();