-
Notifications
You must be signed in to change notification settings - Fork 44
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: add new actor dump: miner #1264
Conversation
01854d7
to
0591960
Compare
0591960
to
c251896
Compare
67fceaf
to
7323593
Compare
7323593
to
528d74b
Compare
@@ -58,6 +58,7 @@ type ChainAPI interface { | |||
|
|||
type StateAPI interface { | |||
StateGetActor(ctx context.Context, addr address.Address, tsk types.TipSetKey) (*types.Actor, error) | |||
StateLookupRobustAddress(ctx context.Context, addr address.Address, tsk types.TipSetKey) (address.Address, error) |
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.
This Lotus API will use the ForEach
to iterate address map. Maybe we could implement a new map: key is actor_id, value is robust address.
624ab93
to
f3bc311
Compare
return err | ||
} | ||
|
||
err = minerDumpObj.UpdateBalanceRelated(minerActor.Actor, minerState) |
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.
UpdateBalanceInfo
We have implemented a miner actor dump task, which allows us to comprehensively inspect the current status of miners and easily analyze the historical behavior of a specific miner.
Use the
StateLookupRobustAddress
to get the miner address.