diff options
author | Matthew Wampler-Doty <matthew.wampler.doty@gmail.com> | 2015-02-28 09:56:24 +0800 |
---|---|---|
committer | Matthew Wampler-Doty <matthew.wampler.doty@gmail.com> | 2015-02-28 09:56:24 +0800 |
commit | ba1f4bbe9132103af67c0c46f81c913d6a595d77 (patch) | |
tree | ba97bceff77f9f8e53855f123459ab70335f2f86 /core | |
parent | 3820a65299831331f215e158d287fe3df3b69ea6 (diff) | |
download | dexon-ba1f4bbe9132103af67c0c46f81c913d6a595d77.tar dexon-ba1f4bbe9132103af67c0c46f81c913d6a595d77.tar.gz dexon-ba1f4bbe9132103af67c0c46f81c913d6a595d77.tar.bz2 dexon-ba1f4bbe9132103af67c0c46f81c913d6a595d77.tar.lz dexon-ba1f4bbe9132103af67c0c46f81c913d6a595d77.tar.xz dexon-ba1f4bbe9132103af67c0c46f81c913d6a595d77.tar.zst dexon-ba1f4bbe9132103af67c0c46f81c913d6a595d77.zip |
Exposing stuff for ethash
Diffstat (limited to 'core')
-rw-r--r-- | core/block_processor.go | 3 | ||||
-rw-r--r-- | core/chain_manager_test.go | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/core/block_processor.go b/core/block_processor.go index 7eaeb5be0..efad35bf4 100644 --- a/core/block_processor.go +++ b/core/block_processor.go @@ -105,6 +105,9 @@ func (self *BlockProcessor) ApplyTransaction(coinbase *state.StateObject, stated return receipt, txGas, err } +func (self *BlockProcessor) ChainManager() *ChainManager { + return self.bc +} func (self *BlockProcessor) ApplyTransactions(coinbase *state.StateObject, statedb *state.StateDB, block *types.Block, txs types.Transactions, transientProcess bool) (types.Receipts, types.Transactions, types.Transactions, types.Transactions, error) { var ( diff --git a/core/chain_manager_test.go b/core/chain_manager_test.go index b76ac187c..e6614212f 100644 --- a/core/chain_manager_test.go +++ b/core/chain_manager_test.go @@ -14,9 +14,7 @@ import ( "github.com/ethereum/go-ethereum/ethdb" "github.com/ethereum/go-ethereum/ethutil" "github.com/ethereum/go-ethereum/event" - "github.com/ethereum/go-ethereum/pow" "github.com/ethereum/go-ethereum/rlp" - "github.com/ethereum/go-ethereum/state" ) func init() { |