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

Extract Power Actor Claimed Power HAMT #171

Closed
frrist opened this issue Oct 28, 2020 · 0 comments · Fixed by #172
Closed

Extract Power Actor Claimed Power HAMT #171

frrist opened this issue Oct 28, 2020 · 0 comments · Fixed by #172
Assignees
Labels
kind/enhancement Improvement to an existing feature

Comments

@frrist
Copy link
Member

frrist commented Oct 28, 2020

Description

The power actors state maintains a map (HAMT) of miner addresses to claimed power. Extracting the state of the Claimed HAMT will yield information on the power of every miner on the network.

Acceptance criteria

  • Extract the state of the claimed power hamt to a table power_actor_claims.
    e.g.
type PowerActorClaim struct {
	Height          int64  `pg:",pk,notnull,use_zero"`
	StateRoot       string `pg:",pk,notnull"`
	MinerID         string `pg:",notnull"`
	RawBytePower    string `pg:",notnull"`
	QualityAdjPower string `pg:",notnull"`
}

Where to begin

@frrist frrist added the kind/enhancement Improvement to an existing feature label Oct 28, 2020
frrist added a commit that referenced this issue Oct 29, 2020
@frrist frrist self-assigned this Oct 29, 2020
frrist added a commit that referenced this issue Nov 2, 2020
frrist added a commit that referenced this issue Nov 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement Improvement to an existing feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant