wallet: improve logging (minor)

This commit is contained in:
Steven Bower 2018-08-10 20:28:45 +00:00 committed by Braydon Fuller
parent 4a634f1f73
commit fe5a6d7eff
No known key found for this signature in database
GPG Key ID: F24F232D108B3AD4
2 changed files with 2 additions and 0 deletions

View File

@ -915,6 +915,7 @@ class TXDB {
if (!block)
return 0;
this.logger.debug('Rescan: reverting block %d', height);
const hashes = block.toArray();
for (let i = hashes.length - 1; i >= 0; i--) {

View File

@ -176,6 +176,7 @@ class WalletDB extends EventEmitter {
*/
async open() {
this.logger.info('Opening WalletDB...');
await this.db.open();
await this.db.verify(layout.V.encode(), 'wallet', 7);