Skip to content

Commit

Permalink
Merge pull request #1497 from filecoin-project/fix/gas-rewards
Browse files Browse the repository at this point in the history
use gas used in block rewards
  • Loading branch information
magik6k authored Apr 2, 2020
2 parents f6adbc3 + aa23266 commit 31571cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chain/stmgr/stmgr.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 31571cf

Please sign in to comment.