-
Notifications
You must be signed in to change notification settings - Fork 47
Closed
Labels
P0P0: Critical BlockerP0: Critical Blockerkind/schemaChanges or Improvments to the lily schemaChanges or Improvments to the lily schema
Description
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
Labels
P0P0: Critical BlockerP0: Critical Blockerkind/schemaChanges or Improvments to the lily schemaChanges or Improvments to the lily schema