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
commit 686c92ba02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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