Merge pull request #1713 from filecoin-project/feat/hack-reward-initial-value

hack in an initial value for LastPerEpochReward for the genesis block
This commit is contained in:
Whyrusleeping
2020-05-12 16:39:48 -07:00
committed by GitHub
+2
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