Merge pull request #1712 from filecoin-project/frrist/fix-broken-stuff

construct cron actor state correctly
This commit is contained in:
Whyrusleeping 2020-05-12 16:27:17 -07:00 committed by GitHub
commit 3c673f0086
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,11 +13,7 @@ import (
func SetupCronActor(bs bstore.Blockstore) (*types.Actor, error) {
cst := cbor.NewCborStore(bs)
cas := &cron.State{Entries: []cron.Entry{{
Receiver: builtin.StoragePowerActorAddr,
MethodNum: builtin.MethodsPower.OnEpochTickEnd,
},
}}
cas := cron.ConstructState(cron.BuiltInEntries())
stcid, err := cst.Put(context.TODO(), cas)
if err != nil {