From 7b8a47f4846cd821ecc1f96e381980f7bca1922b Mon Sep 17 00:00:00 2001 From: obscuren Date: Mon, 23 Mar 2015 22:05:12 +0100 Subject: removed legacy code --- core/block_processor.go | 1 - core/types/block.go | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'core') diff --git a/core/block_processor.go b/core/block_processor.go index 0fb698614..dfac6e0cc 100644 --- a/core/block_processor.go +++ b/core/block_processor.go @@ -126,7 +126,6 @@ func (self *BlockProcessor) ApplyTransactions(coinbase *state.StateObject, state cumulativeSum.Add(cumulativeSum, new(big.Int).Mul(txGas, tx.GasPrice())) } - block.Reward = cumulativeSum if block.GasUsed().Cmp(totalUsedGas) != 0 { return nil, ValidationError(fmt.Sprintf("gas used error (%v / %v)", block.GasUsed(), totalUsedGas)) } diff --git a/core/types/block.go b/core/types/block.go index 6f26358fb..a4fb44040 100644 --- a/core/types/block.go +++ b/core/types/block.go @@ -99,7 +99,6 @@ type Block struct { Td *big.Int receipts Receipts - Reward *big.Int } // StorageBlock defines the RLP encoding of a Block stored in the @@ -134,7 +133,7 @@ func NewBlock(parentHash common.Hash, coinbase common.Address, root common.Hash, GasLimit: new(big.Int), } header.SetNonce(nonce) - block := &Block{header: header, Reward: new(big.Int)} + block := &Block{header: header} return block } -- cgit v1.2.3