use gas used in block rewards

This commit is contained in:
whyrusleeping 2020-04-01 21:16:16 -07:00
parent f6adbc369a
commit aa23266c6f

View File

@ -172,7 +172,7 @@ func (sm *StateManager) ApplyBlocks(ctx context.Context, pstate cid.Cid, bms []B
}
receipts = append(receipts, &r.MessageReceipt)
gasReward = big.Add(gasReward, big.NewInt(r.GasUsed))
gasReward = big.Add(gasReward, big.Mul(m.GasPrice, big.NewInt(r.GasUsed)))
penalty = big.Add(penalty, r.Penalty)
if cb != nil {