aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2016-08-16 02:14:05 +0800
committerFelix Lange <fjl@twurst.com>2016-08-17 23:39:04 +0800
commit3c09c5f12d21258865677cf565bb9d53a8098d3a (patch)
tree768b7f6f9df8fa7a572d80a04d94e5d31fe3580a /core
parent1a9e66915b415cb1ca2bc2680f8fb4ff1883787c (diff)
downloaddexon-3c09c5f12d21258865677cf565bb9d53a8098d3a.tar
dexon-3c09c5f12d21258865677cf565bb9d53a8098d3a.tar.gz
dexon-3c09c5f12d21258865677cf565bb9d53a8098d3a.tar.bz2
dexon-3c09c5f12d21258865677cf565bb9d53a8098d3a.tar.lz
dexon-3c09c5f12d21258865677cf565bb9d53a8098d3a.tar.xz
dexon-3c09c5f12d21258865677cf565bb9d53a8098d3a.tar.zst
dexon-3c09c5f12d21258865677cf565bb9d53a8098d3a.zip
core, miner: move Backend to miner
This ensures that package core doesn't depend on package accounts and resolves an age-old TODO.
Diffstat (limited to 'core')
-rw-r--r--core/types.go15
1 files changed, 0 insertions, 15 deletions
diff --git a/core/types.go b/core/types.go
index e656bf853..d84d0987f 100644
--- a/core/types.go
+++ b/core/types.go
@@ -19,12 +19,9 @@ package core
import (
"math/big"
- "github.com/ethereum/go-ethereum/accounts"
"github.com/ethereum/go-ethereum/core/state"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/event"
)
// Validator is an interface which defines the standard for block validation.
@@ -63,15 +60,3 @@ type HeaderValidator interface {
type Processor interface {
Process(block *types.Block, statedb *state.StateDB, cfg vm.Config) (types.Receipts, vm.Logs, *big.Int, error)
}
-
-// Backend is an interface defining the basic functionality for an operable node
-// with all the functionality to be a functional, valid Ethereum operator.
-//
-// TODO Remove this
-type Backend interface {
- AccountManager() *accounts.Manager
- BlockChain() *BlockChain
- TxPool() *TxPool
- ChainDb() ethdb.Database
- EventMux() *event.TypeMux
-}