Merge pull request #1497 from filecoin-project/fix/gas-rewards

use gas used in block rewards
This commit is contained in:
Łukasz Magiera 2020-04-02 06:18:33 +02:00 committed by GitHub
commit 31571cf655

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 {