-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
storageminer: Setup actor on init #81
Conversation
ae04dbf
to
8a8c3de
Compare
The no such actor is probably because youre trying to send the createMiner message from an actor that has no funds (aka, doesnt exist yet). We probably need part of the flow to wait for the account it created to receive money. So we can create the new key, then say "send at least X FIL to this address". then once we see the account has funds, move on. I'm all ears if you have better ideas about making that nicer |
8a8c3de
to
2c3ca43
Compare
2c3ca43
to
a825b3b
Compare
Did some more digging, it looks like the StorageMarket actor isn't, and then The error comes from https://github.com/filecoin-project/go-lotus/blob/master/chain/vm/mkactor.go#L37
I guess we should probably be setting the state up in genesis block? |
return err | ||
} | ||
|
||
k, err := wallet.GenerateKey(types.KTSecp256k1) // TODO: review: is this right? |
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.
Yep, this works, though we will want to use BLS keys everywhere we can
* fix actor state inspection and serialization * checkpoint acessors and new ipc bundle * address comments
Not sure how correct this is, but it's an attempt to move something on this front
Also, miming now fails with: