From ba1f4bbe9132103af67c0c46f81c913d6a595d77 Mon Sep 17 00:00:00 2001 From: Matthew Wampler-Doty Date: Fri, 27 Feb 2015 20:56:24 -0500 Subject: [PATCH] Exposing stuff for ethash --- core/block_processor.go | 3 +++ core/chain_manager_test.go | 2 -- pow/block.go | 2 ++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/core/block_processor.go b/core/block_processor.go index 7eaeb5be09..efad35bf4f 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 b76ac187c0..e6614212f2 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() { diff --git a/pow/block.go b/pow/block.go index 86a6aa1b02..129f96fd32 100644 --- a/pow/block.go +++ b/pow/block.go @@ -7,4 +7,6 @@ type Block interface { HashNoNonce() []byte Nonce() []byte Number() *big.Int + MixDigest() []byte + SeedHash() []byte }