Showing 1 of 1 files from the diff.

@@ -248,22 +248,23 @@
Loading
248 248
    if (this.options.migrate === 0 || total === 0)
249 249
      await b.write();
250 250
251 -
    if (total > 0) {
252 -
      if (this.options.migrate === 0) {
253 -
        this.logger.warning('Regenerated %d change addresses.', total);
254 -
        this.logger.warning('Rescanning...');
255 -
256 -
        await this.scan();
257 -
      } else {
258 -
        throw new Error(
259 -
          'Wallet is corrupted.\n' +
260 -
          'Back up wallet and then restart with\n' +
261 -
          '`hsd --wallet-migrate=0` or `hs-wallet --migrate=0`\n' +
262 -
          '(Full node required)'
263 -
        );
264 -
      }
265 -
    } else {
251 +
    if (total === 0) {
266 252
      this.logger.info('All change addresses present.');
253 +
      return;
254 +
    }
255 +
256 +
    if (this.options.migrate === 0) {
257 +
      this.logger.warning('Regenerated %d change addresses.', total);
258 +
      this.logger.warning('Rescanning...');
259 +
260 +
      await this.scan();
261 +
    } else {
262 +
      throw new Error(
263 +
        'Wallet is corrupted.\n' +
264 +
        'Back up wallet and then restart with\n' +
265 +
        '`hsd --wallet-migrate=0` or `hs-wallet --migrate=0`\n' +
266 +
        '(Full node required)'
267 +
      );
267 268
    }
268 269
  }
269 270
Files Coverage
lib 62.63%
Project Totals (129 files) 62.63%
Notifications are pending CI completion. Periodically Codecov will check the CI state, when complete notifications will be submitted. Push notifications now.

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading