Skip to content

Define and implement MinerPreCommitInfoV9 schema and extraction #1076

@frrist

Description

@frrist

Description

The on-chain state of miner PreCommit Infos has changed: Previous->Current. Lily must incorporate tracking of this new information.

Acceptance criteria

  • The current MinerPreCommitInfo schema will cease to populate for all miner PreCommit infos after actors v8.
  • Create a new schema/model MinerPreCommitInfoV9 to track new data contained in miner PreCommit infos for all miner actors v9 and above.
    • The new schema will follow similar indexing patterns to the previous and will contain new data contained in miner precommit infos.

New Schema Definition:

CREATE TABLE miner_pre_commit_infos_v9(
    height bigint NOT NULL,
    state_root text NOT NULL,
    miner_id text NOT NULL,
    sector_id bigint NOT NULL,
    
    pre_commit_deposit numeric NOT NULL,
    pre_commit_epoch bigint NOT NULL,
    seal_proof numeric NOT NULL,
    sealed_cid text NOT NULL,
    seal_rand_epoch bigint NOT NULL,
    expiration_epoch bigint NOT NULL,
    deal_ids bigint[], -- new field
    unsealed_cid text -- new field

/* deprecated
    verified_deal_weight numeric NOT NULL,
    is_replace_capacity boolean,
    replace_sector_deadline bigint,
    replace_sector_partition bigint,
    replace_sector_number bigint,
*/
);

Extraction of this new data will follow the same pattern as previous extraction and will include the new fields in the extracted model.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P0P0: Critical Blockerkind/schemaChanges or Improvments to the lily schema

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions