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:
commit
686c92ba02
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user