wallet: fix depth incrementation.
This commit is contained in:
parent
bd76939f4c
commit
319ec82997
@ -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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user