-
Notifications
You must be signed in to change notification settings - Fork 45
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(genesis): Add task for processing genesis state #8
Conversation
case builtin.VerifiedRegistryActorCodeID: | ||
// TODO | ||
default: | ||
return fmt.Errorf("unknown actor in genesis state. address: %s code: %s head: %s", addr, genesisAct.Code, genesisAct.Head) |
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.
Seems drastic to abort just because we have an unknown actor. Maybe log and continue.
} | ||
} | ||
return &genesismodel.GenesisMinerTaskResult{ | ||
stateModel, |
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.
Use field names here otherwise this will break if we add a field
4a0e996
to
7a288c1
Compare
- only handles miner state, as more models are added the genesis task processing logic will need to be extended to include new models in the genesis state. special handling is required here since *most* task processing work by comparing the state of actors across two tipsets, since there isn't a tipset before the genesis block we need special handling.
7a288c1
to
c94c7f7
Compare
@iand I have addressed the feedback and rebased onto master, this is ready for another look when you are available. |
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.
LGTM
only handles miner state, as more models are added the genesis task
processing logic will need to be extended to include new models in the
genesis state.
special handling is required here since most task processing works by
comparing the state of actors across two tipsets, since there isn't a
tipset before the genesis block we need special handling.
to follow #7