Class: MigrateBidRevealEntries

MigrateBidRevealEntries(options)

Applies to WalletDB v2 Migrate bid reveal entries.

  • Adds height to the blind bid entries.
    • NOTE: This can not be recovered if the bid is not owned by the wallet. Wallet does not store transactions for not-owned bids.
  • Add Bid Outpoint information to the reveal (BidReveal) entries.
    • NOTE: This information can not be recovered for not-owned reveals. Wallet does not store transactions for not-owned reveals.
  • Add new BID -> REVEAL index. (layout.E)
    • NOTE: This information can not be recovered for not-owned reveals. Wallet does not store transactions for not-owned reveals.

Constructor

new MigrateBidRevealEntries(options)

Create Bid Reveal Entries migration object.

Parameters:
Name Type Description
options WalletMigratorOptions
Source:

Members

options :WalletMigratorOptions

Type:
  • WalletMigratorOptions
Source:

Methods

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

We always migrate.

Source:
Returns:
Type
Promise.<MigrationType>

(async) migrate(b) → {Promise}

Actual migration

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

(async) migrateBids(wid) → {Promise}

Migrate bids, add height to the entries.

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

(async) migrateReveals(wid) → {Promise}

Migrate reveals and index Bid2Reveal

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