Merge pull request #377 from nodar-chkuaselidze/fix/rescan-log

walletdb: fix scan log
This commit is contained in:
Christopher Jeffrey (JJ) 2018-04-06 16:03:50 -07:00 committed by GitHub
commit 4188a8431f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -441,12 +441,12 @@ class WalletDB extends EventEmitter {
assert((height >>> 0) === height, 'WDB: Must pass in a height.');
await this.rollback(height);
this.logger.info(
'WalletDB is scanning %d blocks.',
this.state.height - height + 1);
await this.rollback(height);
const tip = await this.getTip();
try {