hack in an initial value for LastPerEpochReward for the genesis block

This commit is contained in:
Jeromy 2020-05-12 15:57:18 -07:00
parent 12e373fd43
commit 141c77e17e

View File

@ -15,6 +15,8 @@ func SetupRewardActor(bs bstore.Blockstore) (*types.Actor, error) {
cst := cbor.NewCborStore(bs)
st := reward.ConstructState()
st.LastPerEpochReward = types.FromFil(100)
hcid, err := cst.Put(context.TODO(), st)
if err != nil {
return nil, err