29e2fb38f8
* Miners do now verify their own header, not their state. * Changed old putTx and putReceipts to be exported * Moved writing of transactions and receipts out of the block processer in to the chain manager. Closes #1386 * Miner post ChainHeadEvent & ChainEvent. Closes #1388
20 lines
434 B
Go
20 lines
434 B
Go
package core
|
|
|
|
import (
|
|
"github.com/ethereum/go-ethereum/accounts"
|
|
"github.com/ethereum/go-ethereum/common"
|
|
"github.com/ethereum/go-ethereum/event"
|
|
)
|
|
|
|
// TODO move this to types?
|
|
type Backend interface {
|
|
AccountManager() *accounts.Manager
|
|
BlockProcessor() *BlockProcessor
|
|
ChainManager() *ChainManager
|
|
TxPool() *TxPool
|
|
BlockDb() common.Database
|
|
StateDb() common.Database
|
|
ExtraDb() common.Database
|
|
EventMux() *event.TypeMux
|
|
}
|