diff options
author | obscuren <geffobscura@gmail.com> | 2015-03-24 05:05:12 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-03-24 05:05:12 +0800 |
commit | 7b8a47f4846cd821ecc1f96e381980f7bca1922b (patch) | |
tree | 705533520f1e63911112c016367b2ff8a010eb7b | |
parent | 0eaa023ffa48af300dde8361a2dcbeaa754bc2c1 (diff) | |
download | dexon-7b8a47f4846cd821ecc1f96e381980f7bca1922b.tar dexon-7b8a47f4846cd821ecc1f96e381980f7bca1922b.tar.gz dexon-7b8a47f4846cd821ecc1f96e381980f7bca1922b.tar.bz2 dexon-7b8a47f4846cd821ecc1f96e381980f7bca1922b.tar.lz dexon-7b8a47f4846cd821ecc1f96e381980f7bca1922b.tar.xz dexon-7b8a47f4846cd821ecc1f96e381980f7bca1922b.tar.zst dexon-7b8a47f4846cd821ecc1f96e381980f7bca1922b.zip |
removed legacy code
-rw-r--r-- | core/block_processor.go | 1 | ||||
-rw-r--r-- | core/types/block.go | 3 | ||||
-rw-r--r-- | tests/blocktest.go | 3 |
3 files changed, 2 insertions, 5 deletions
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 } diff --git a/tests/blocktest.go b/tests/blocktest.go index 34bd69ac8..d813ebeec 100644 --- a/tests/blocktest.go +++ b/tests/blocktest.go @@ -13,9 +13,9 @@ import ( "strings" "github.com/ethereum/go-ethereum/common" + "github.com/ethereum/go-ethereum/core/state" "github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/rlp" - "github.com/ethereum/go-ethereum/core/state" ) // Block Test JSON Format @@ -172,7 +172,6 @@ func mustConvertGenesis(testGenesis btHeader) *types.Block { hdr.Number = big.NewInt(0) b := types.NewBlockWithHeader(hdr) b.Td = new(big.Int) - b.Reward = new(big.Int) return b } |