Class: MigrateAccountLookahead

MigrateAccountLookahead(options)

Migrate account for new lookahead entry. Applies to WalletDB v1

Constructor

new MigrateAccountLookahead(options)

Create migration object.

Parameters:
Name Type Description
options WalletMigratorOptions
Source:

Members

options :WalletMigratorOptions

Type:
  • WalletMigratorOptions
Source:

Methods

accountEncode(raw) → {Buffer}

Parameters:
Name Type Description
raw Buffer
Source:
Returns:
Type
Buffer

(async) check() → {Promise.<MigrationType>}

We always migrate account.

Source:
Returns:
Type
Promise.<MigrationType>

(async) migrate(b) → {Promise}

Actual migration

Parameters:
Name Type Description
b Batch
Source:
Returns:
Type
Promise

(async) migrateWallet(b, wid) → {Promise}

Parameters:
Name Type Description
b Batch
wid Number
Source:
Returns:
Type
Promise