Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

db: Add a field to the Tx table which holds the block index #94

Merged
merged 5 commits into from
May 19, 2020

Commits on May 18, 2020

  1. db: Add a field to the Tx table which holds the block index

    This new field is the index of the transaction within a block. There
    is no easy way to write a migration for this, so the database needs to
    be dropped and recreated.
    
    Closes: #91
    erikd committed May 18, 2020
    Configuration menu
    Copy the full SHA
    b7b100a View commit details
    Browse the repository at this point in the history
  2. schema: Flatten the migrations

    The addition of a 'block_index' column to the 'tx' table required
    that the database be dropped and recreated, so it makes sense to
    flatten the migrations in the same PR.
    erikd committed May 18, 2020
    Configuration menu
    Copy the full SHA
    1073225 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c8e18f4 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1a8dbc9 View commit details
    Browse the repository at this point in the history
  5. extended: Be more conservative on when Epoch table is updated

    Only update last row of the epoch table when the block being processed
    is within 15 blocks (5 minutes) of the tip.
    
    This improves sync speed of the current epoch.
    erikd committed May 18, 2020
    Configuration menu
    Copy the full SHA
    9aa1bd8 View commit details
    Browse the repository at this point in the history