Merge pull request #377 from nodar-chkuaselidze/fix/rescan-log
walletdb: fix scan log
This commit is contained in:
commit
4188a8431f
@ -441,12 +441,12 @@ class WalletDB extends EventEmitter {
|
|||||||
|
|
||||||
assert((height >>> 0) === height, 'WDB: Must pass in a height.');
|
assert((height >>> 0) === height, 'WDB: Must pass in a height.');
|
||||||
|
|
||||||
await this.rollback(height);
|
|
||||||
|
|
||||||
this.logger.info(
|
this.logger.info(
|
||||||
'WalletDB is scanning %d blocks.',
|
'WalletDB is scanning %d blocks.',
|
||||||
this.state.height - height + 1);
|
this.state.height - height + 1);
|
||||||
|
|
||||||
|
await this.rollback(height);
|
||||||
|
|
||||||
const tip = await this.getTip();
|
const tip = await this.getTip();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user