Merge pull request #1712 from filecoin-project/frrist/fix-broken-stuff
construct cron actor state correctly
This commit is contained in:
commit
3c673f0086
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user