-
Notifications
You must be signed in to change notification settings - Fork 46
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
feat: track verifreg actor claim HAMT changes #1141
Conversation
frrist
commented
Feb 22, 2023
- request made here: https://github.com/protocol/pldw/issues/177#issuecomment-1372920524
7c10e7e
to
42115c7
Compare
schemas/v1/17_verifreg_claims.go
Outdated
sector BIGINT NOT NULL, | ||
event {{ .SchemaName | default "public"}}.verified_registry_event_type NOT NULL, | ||
|
||
PRIMARY KEY(height, state_root, provider, claim_id) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could a claim_id
be the same for different provider
s? If not, perhaps the PRIMARY KEY
could be simplified to the following:
PRIMARY KEY(height, state_root, claim_id
to make it faster.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@anorth or @ZenGround0 as authors of FIP-45 could you either of you comment on the uniqueness of ClaimIDs? Are they globally unique (like DealIDs) or unique per provider (like sectorIDs to miners)? The FIP doesn't seem to specify this, or I can't find where it does, at least.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ZenGround0 and I looked at the in the office together, and the answer is: ClaimID is a globally unique ID meaning I should (and will) change the PK definition not to include the provider in the constraint.
* feat: track verified registry actor claim HAMT changes - addresses request made here: https://github.com/protocol/pldw/issues/177#issuecomment-1372920524
* deps: update to lotus 1.20.0-rc2 * chore: update actor gen - clean up types, remove lily actors types, replace with go-state-types * Frrist/receipt events schema (#1132) * feat: implement actor event task and schema - track the value of EventRoots contained in message receipts. * feat: implement message param schema and task - create a table that records raw message parameters * feat: track raw receipt return value * fix schema index's after rebase on master * fix: use builtin lotus method to get events - it handles the case of legacy events * fixup! Frrist/receipt events schema (#1132) * deps: replace deprecated blocks package - use github.com/ipfs/go-libipfs/blocks instead * deps: update to v1.20.0 release * feat: track verifreg actor claim HAMT changes (#1141) * feat: track verified registry actor claim HAMT changes - addresses request made here: https://github.com/protocol/pldw/issues/177#issuecomment-1372920524 * fix: correctly diff new actor version (#1145) * fix: correctly diff new actor version - closes #1144 * chore: remove unused metrics * metric: track GettActorStateChanges duration * feat: update lotus deps to support vm para/ret marshal (#1150) - use lotus deps from filecoin-project/lotus#10372 * fix: resolve the duplication issue of db migration version --------- Co-authored-by: Terry <terry@TerrydeMacBook-Pro.local>