wallet: fix depth incrementation.

This commit is contained in:
Christopher Jeffrey 2018-01-04 15:07:48 -08:00
parent bd76939f4c
commit 319ec82997
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -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();